source: pst/scanning/sane.xml@ 6c91a92a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6c91a92a was 89cdb63d, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Fix issues in mozilla apps with freetype-2.6.1 and gconf dependencies.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16554 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 20.8 KB
RevLine 
[2096355]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[5d1668d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[f051506c]6
[89cdb63d]7 <!ENTITY sane-be-download-http "http://fossies.org/linux/misc/sane-backends-&sane-version;.tar.gz">
[4c81bd8]8 <!ENTITY sane-be-download-ftp " ">
[2ea1836]9 <!ENTITY sane-be-md5sum "f9ed5405b3c12f07c6ca51ee60225fe7">
10 <!ENTITY sane-be-size "5.7 MB">
11 <!ENTITY sane-be-buildsize "129 MB (additional 34 MB for tests)">
12 <!ENTITY sane-be-time "1.0 SBU (additional 0.1 SBU for tests)">
[f051506c]13
[f4316cd]14 <!ENTITY sane-fe-download-http "http://alioth.debian.org/frs/download.php/file/1140/sane-frontends-&sane-fe-version;.tar.gz">
15 <!ENTITY sane-fe-download-ftp "ftp://ftp2.sane-project.org/pub/sane/sane-frontends-&sane-fe-version;.tar.gz">
[989db39]16 <!ENTITY sane-fe-md5sum "c63bf7b0bb5f530cf3c08715db721cd3">
17 <!ENTITY sane-fe-size "231 KB">
18 <!ENTITY sane-fe-buildsize "3.0 MB">
19 <!ENTITY sane-fe-time "less than 0.1 SBU">
[5d1668d]20]>
21
[8ba1563]22<sect1 id="sane" xreflabel="SANE-&sane-version;">
[2096355]23 <?dbhtml filename="sane.html"?>
24
25 <sect1info>
26 <othername>$LastChangedBy$</othername>
27 <date>$Date$</date>
28 </sect1info>
29
30 <title>SANE-&sane-version;</title>
31
32 <indexterm zone="sane">
33 <primary sortas="a-SANE">SANE</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to SANE</title>
38
39 <para><application>SANE</application> is short for Scanner Access Now Easy.
[2b3ffa0]40 Scanner access; however, is far from easy, since every vendor has their own
[2096355]41 protocols. The only known protocol that should bring some unity into this
42 chaos is the TWAIN interface, but this is too imprecise to allow a stable
[989db39]43 scanning framework. Therefore, <application>SANE</application> comes with
44 its own protocol, and the vendor drivers can't be used.</para>
[2096355]45
[989db39]46 <para><application>SANE</application> is split into back ends and front
47 ends. The back ends are drivers for the supported scanners and cameras. The
48 front ends are user interfaces to access the backends.</para>
[2096355]49
[60d53ec3]50 &lfs78_checked;
[d92b93c]51
[2096355]52 <bridgehead renderas="sect3">Back Ends Package Information</bridgehead>
53 <itemizedlist spacing='compact'>
54 <listitem>
55 <para>Download (HTTP): <ulink url="&sane-be-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&sane-be-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &sane-be-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &sane-be-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &sane-be-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &sane-be-time;</para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Front Ends Package Information</bridgehead>
75 <itemizedlist spacing='compact'>
76 <listitem>
77 <para>Download (HTTP): <ulink url="&sane-fe-download-http;"/></para>
78 </listitem>
79 <listitem>
80 <para>Download (FTP): <ulink url="&sane-fe-download-ftp;"/></para>
81 </listitem>
82 <listitem>
83 <para>Downlaod MD5 sum: &sane-fe-md5sum;</para>
84 </listitem>
85 <listitem>
86 <para>Download size: &sane-fe-size;</para>
87 </listitem>
88 <listitem>
89 <para>Estimated disk space required: &sane-fe-buildsize;</para>
90 </listitem>
91 <listitem>
92 <para>Estimated build time: &sane-fe-time;</para>
93 </listitem>
94 </itemizedlist>
[d92b93c]95<!--
[272d904]96 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
97 <itemizedlist spacing="compact">
98 <listitem>
99 <para>Required patch:
100 <ulink url="&patch-root;/sane-backends-&sane-version;-v4l-1.patch"/>
101 </para>
102 </listitem>
103 </itemizedlist>
[d92b93c]104-->
[2096355]105 <bridgehead renderas="sect3">SANE Dependencies</bridgehead>
106
107 <bridgehead renderas="sect4">Optional (Back Ends)</bridgehead>
[272d904]108 <para role="optional">
[2b3ffa0]109 <xref linkend="avahi"/>,
110 <xref linkend="cups"/>,
[272d904]111 <xref linkend="libjpeg"/>,
112 <xref linkend="libtiff"/>,
[2b3ffa0]113 <xref linkend="libusb"/>,
[80dbc4c8]114 <xref linkend="v4l-utils"/>,
[2b3ffa0]115 <ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>,
[272d904]116 <ulink url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>,
[80dbc4c8]117 <ulink url="http://www.gphoto.org/">libgphoto2</ulink>, and
[f720ace1]118 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[272d904]119 </para>
[2096355]120
121 <bridgehead renderas="sect4">Optional (Front Ends)</bridgehead>
[272d904]122 <para role="optional">
123 <xref linkend="x-window-system"/>,
124 <xref linkend="gtk2"/>, and
125 <xref linkend="gimp"/>
126 </para>
[2096355]127
[977061b0]128 <para condition="html" role="usernotes">User Notes:
129 <ulink url="&blfs-wiki;/sane"/></para>
130
[2096355]131 </sect2>
132
133 <sect2 role="kernel" id='sane-kernel'>
[37f01429]134 <title>Kernel Configuration, Drivers and Additional Packages</title>
[2096355]135
136 <indexterm zone="sane sane-kernel">
137 <primary sortas="d-Scanning-devices">Scanning devices</primary>
138 </indexterm>
139
140 <para>To access your scanner, you will probably need the related kernel
[989db39]141 drivers and/or additional support packages. A SCSI scanner will need SCSI
142 drivers, a parallel port scanner needs parallel port support (you should
143 use enhanced EPP modes) and perhaps <ulink
[2b3ffa0]144 url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>, and a USB
[37f01429]145 scanner will need the <xref linkend="libusb"/> package. For HP devices, you
146 may need <ulink
147 url="http://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>.
148 Ensure you have the necessary drivers properly configured to access
149 the devices.</para>
[2096355]150
151 </sect2>
152
153 <sect2 role="installation">
154 <title>Installation of SANE</title>
155
156 <sect3>
157 <title>Installation of SANE Back Ends</title>
158
[c67fd68c]159 <para>The <application>SANE</application> daemon should run with its own
[a52e5394]160 group. Create this group by issuing the following commands as the
[c67fd68c]161 <systemitem class="username">root</systemitem> user:</para>
162
[7ebb931]163<screen><userinput>groupadd -g 70 scanner</userinput></screen>
[c67fd68c]164
[2b3ffa0]165 <note>
166 <para>
167 The user building <application>SANE</application>-backends should be
168 a member of the <systemitem class="groupname">scanner</systemitem>
169 group before proceeding. After you have added the user building the
170 package to the <systemitem class="groupname">scanner</systemitem>
171 group, issue the following command to create a new shell:
172 </para>
173
174<screen><userinput>su $(whoami)</userinput></screen>
175
176 <para>
177 Check the output of the <userinput>groups</userinput> command and
178 ensure the user is a member of the
179 <systemitem class="groupname">scanner</systemitem> group.
180 </para>
181 </note>
[272d904]182
[45f715c]183 <para>For a USB scanner, if you are linking to <xref linkend="libusb"/>,
[333a1738]184 include the configure switch --enable-libusb_1_0. Install
[45f715c]185 <application>SANE</application>-backends by running the following
186 commands:</para>
[2096355]187
[c15a47c1]188<screen><userinput>./configure --prefix=/usr \
[2ea1836]189 --sysconfdir=/etc \
190 --localstatedir=/var \
191 --with-group=scanner \
192 --with-docdir=/usr/share/doc/sane-backend-&sane-version; &amp;&amp;
193make</userinput></screen>
[2b3ffa0]194
[4c81bd8]195 <para>If you want to test the results, some files need to be fixed:</para>
196
[2ea1836]197<screen><userinput>sed -i -e 's/Jul 31 07:52:48 2013/Oct 19 13:25:20 2015/' \
198 -e 's/1.0.24git/1.0.25/' \
199 testsuite/tools/data/db.ref \
200 testsuite/tools/data/html-mfgs.ref \
201 testsuite/tools/data/usermap.ref \
202 testsuite/tools/data/html-backends-split.ref \
203 testsuite/tools/data/udev+acl.ref \
[4c81bd8]204 testsuite/tools/data/udev.ref</userinput></screen>
205
[2b3ffa0]206 <para>To test the results, issue: <command>make check</command>.</para>
[9ea2f70]207
[2096355]208 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
209
[2b3ffa0]210<screen role="root"><userinput>make install &amp;&amp;
211install -m 644 -v tools/udev/libsane.rules \
212 /etc/udev/rules.d/65-scanner.rules &amp;&amp;
213chgrp -v scanner /var/lock/sane</userinput></screen>
[2096355]214
[45f715c]215 <para>With the scanner on, run <command>scanimage -L</command> and the
[37f01429]216 name and location of the device should appear. Of course, you need the
217 device drivers configured, in order to run this test.</para>
[45f715c]218
[2096355]219 </sect3>
220
221 <sect3>
222 <title>Installation of SANE Front Ends</title>
223
224 <para>The <application>SANE</application>-frontends package
225 includes the graphical frontends <command>xscanimage</command> and
226 <command>xcam</command>, and a command-line frontend
227 <command>scanadf</command>. You don't need this package if you intend
228 to use one of the more advanced graphical frontends like
229 <xref linkend="xsane"/>. For a list of frontend packages, see
230 <ulink url="http://www.sane-project.org/sane-frontends.html"/>.</para>
231
232 <para>To install <application>SANE</application>-frontends,
233 use the following commands:</para>
234
[272d904]235<screen><userinput>sed -i -e "/SANE_CAP_ALWAYS_SETTABLE/d" src/gtkglue.c &amp;&amp;
[bd4f0143]236./configure --prefix=/usr --mandir=/usr/share/man &amp;&amp;
[2096355]237make</userinput></screen>
238
[989db39]239 <para>This package does not come with a test suite.</para>
240
[2096355]241 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
242
[a52e5394]243<screen role="root"><userinput>make install &amp;&amp;
[989db39]244install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \
245 /usr/share/sane</userinput></screen>
[2096355]246
[989db39]247 <para>If <application>GIMP</application> was linked into the build and
248 you wish <application>GIMP</application> to use
[2096355]249 <command>xscanimage</command> as a scanning plugin, issue the following
250 command as the <systemitem class="username">root</systemitem> user:</para>
251
[989db39]252<screen role="root"><userinput>ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins</userinput></screen>
[2096355]253
[4d6023d2]254 <note>
255 <para>
[c6f0a51]256 If the plugin <command>xscanimage</command> is disabled in
257 <application>GIMP</application>'s menu, in order to enable it,
258 "create" a blank image using the menu or Ctrl-N. After that, it is
259 enabled.
[4d6023d2]260 </para>
261 </note>
262
[2096355]263 </sect3>
264
265 </sect2>
266
267 <sect2 role="commands">
268 <title>Command Explanations</title>
269
270 <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
271 configuration files in <filename class="directory">/etc/sane.d</filename>
272 instead of <filename class="directory">/usr/etc/sane.d</filename>.</para>
273
[2b3ffa0]274 <para><parameter>--with-group=scanner</parameter>: This parameter causes
275 the directory created for the locking files to be group owned by the
276 <systemitem class="groupname">scanner</systemitem> group instead of the
277 default <systemitem class="groupname">uucp</systemitem> group.</para>
278
279 <para><command>exit</command>: This command is used to exit the shell
280 created by the <command>su</command> command.</para>
[2096355]281 </sect2>
282
283 <sect2 role="configuration">
284 <title>Configuring SANE</title>
285
286 <sect3 id="sane-config">
287 <title>Config Files</title>
288
289 <para><filename>/etc/sane.d/*.conf</filename></para>
290
291 <indexterm zone="sane sane-config">
292 <primary sortas="e-etc-sane.d-conf">/etc/sane.d/*.conf</primary>
293 </indexterm>
294
295 </sect3>
296
297 <sect3>
298 <title>Configuration Information</title>
299
300 <sect4>
301 <title>Backend Configuration</title>
302
303 <para>The backend configuration files are located in
304 <filename class='directory'>/etc/sane.d</filename>. Information
305 for configuring the various backends can be found by using the man(5)
306 page for the desired backend. Run
[977061b0]307 <command>man sane-<replaceable>&lt;backend&gt;</replaceable></command>,
[2096355]308 substituting the desired backend.</para>
309
[d47868a]310 <para>Add any desired users to the <systemitem
311 class="groupname">scanner</systemitem> group.</para>
312
[45f715c]313 <para>If you want to access a network scanner, include two lines in
314 <filename>net.conf</filename>, as <systemitem class="username">root</systemitem> user
315 (make sure to replace &lt;server_ip&gt; by the actual value, below):</para>
316
[1c4f3b1f]317<screen role="root"><userinput>cat &gt;&gt; /etc/sane.d/net.conf &lt;&lt; "EOF"
[45f715c]318connect_timeout = 60
319&lt;server_ip&gt;
320EOF</userinput></screen>
321
322 <para>On the server side, include the client ip in the access list of
323 <filename>/etc/sane.d/saned.conf</filename>, restart the
324 <command>saned</command> daemon, and make sure the firewall, if any, is
325 open to the client.</para>
326
[2096355]327 </sect4>
328
[4d6023d2]329 <sect4>
330 <title>Frontend Configuration</title>
331 <para>
332 If you use a desktop environment like <application>Gnome</application>
333 or <application>KDE</application> you may wish to create a
334 <filename>xscanimage.desktop</filename> file so that
335 <application>xscanimage</application> appears in the panel's menus.
336 As the <systemitem class="username">root</systemitem> user:
337 </para>
338
[2a2112b4]339<screen role="root"><userinput>mkdir -pv /usr/share/{applications,pixmaps} &amp;&amp;
[4d6023d2]340
341cat &gt; /usr/share/applications/xscanimage.desktop &lt;&lt; "EOF" &amp;&amp;
342[Desktop Entry]
343Encoding=UTF-8
344Name=XScanImage - Scanning
345Comment=Acquire images from a scanner
346Exec=xscanimage
347Icon=xscanimage
348Terminal=false
349Type=Application
350Categories=Application;Graphics
351EOF
352
353ln -svf ../sane/xscanimage-icon-48x48-2.png /usr/share/pixmaps/xscanimage.png</userinput></screen>
354
355 </sect4>
356
[2096355]357 <sect4>
358 <title>General Information</title>
359
360 <para>For general information about configuring and using
361 <application>SANE</application>, see <command>man sane</command>.
362 Linux-2.6.x brings some special issues into the picture. See
363 <ulink url="http://www.sane-project.org/README.linux"/> for
364 information about using <application>SANE</application> with the
365 Linux-2.6.x kernel. For information about USB scanning devices,
366 run <command>man sane-usb</command>. For information about SCSI
367 devices, run <command>man sane-scsi</command>.</para>
368
369 </sect4>
370
371 <sect4>
372 <title>Configuration and setup of the 'saned' daemon</title>
373
374 <para>The <command>saned</command> daemon is not meant to be used for
[bc6e56d]375 untrusted clients. You should provide <xref linkend="fw-firewall"/>
376 protection to ensure only trusted
[2096355]377 clients access the daemon. Due to the complex security requirements to
[67934af]378 ensure only trusted clients access the daemon, BLFS does not provide
[2096355]379 instructions to configure the <command>saned</command> daemon. If you
380 desire to make the daemon available, ensure you provide adequate
381 security, configure your <filename>[x]inetd.conf</filename> file and
382 send a <userinput>SIGHUP</userinput> to the [x]inetd daemon. Some good
383 information for setting up and securing the <command>saned</command>
384 daemon can be found at
385 <ulink url="http://penguin-breeder.org/sane/saned/"/>.</para>
386
387 </sect4>
388
389 </sect3>
390
391 </sect2>
392
393 <sect2 role="content">
394 <title>Contents</title>
395
396 <bridgehead renderas="sect4">Back Ends:</bridgehead>
397 <segmentedlist>
398 <segtitle>Installed Programs</segtitle>
399 <segtitle>Installed Libraries</segtitle>
400 <segtitle>Installed Directories</segtitle>
401
402 <seglistitem>
403 <seg>gamma4scanimage, sane-config, saned, sane-find-scanner,
404 and scanimage</seg>
405 <seg>libsane.so and numerous scanner backend modules</seg>
[2ea1836]406 <seg>/etc/sane.d, /usr/{include,lib,share}/sane,
[989db39]407 and /usr/share/doc/sane-&sane-version;</seg>
[2096355]408 </seglistitem>
409 </segmentedlist>
410
411 <bridgehead renderas="sect4">Front Ends:</bridgehead>
412 <segmentedlist>
413 <segtitle>Installed Programs</segtitle>
414 <segtitle>Installed Library</segtitle>
[989db39]415 <segtitle>Installed Directories</segtitle>
[2096355]416
417 <seglistitem>
418 <seg>scanadf, xcam, and xscanimage</seg>
[6f19a68e]419 <seg><application>GIMP</application> plugin embedded in
[2096355]420 <command>xscanimage</command></seg>
[989db39]421 <seg>None</seg>
[2096355]422 </seglistitem>
423 </segmentedlist>
424
425 <variablelist>
426 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
427 <?dbfo list-presentation="list"?>
428 <?dbhtml list-presentation="table"?>
429
430 <varlistentry id="gamma4scanimage">
431 <term><command>gamma4scanimage</command></term>
432 <listitem>
433 <para>creates a gamma table in the format expected by
434 <command>scanimage</command>.</para>
435 <indexterm zone="sane gamma4scanimage">
436 <primary sortas="b-gamma4scanimage">gamma4scanimage</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="sane-config-prog">
442 <term><command>sane-config</command></term>
443 <listitem>
444 <para>is a tool used to determine the compiler and linker
445 flags that should be used to compile and link
446 <application>SANE</application>.</para>
447 <indexterm zone="sane sane-config-prog">
448 <primary sortas="b-sane-config">sane-config</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="saned">
454 <term><command>saned</command></term>
455 <listitem>
456 <para>is the <application>SANE</application> daemon that
457 allows remote clients to access image acquisition devices
458 available on the local host.</para>
459 <indexterm zone="sane saned">
460 <primary sortas="b-saned">saned</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="sane-find-scanner">
466 <term><command>sane-find-scanner</command></term>
467 <listitem>
468 <para>is a command-line tool to find SCSI and
469 USB scanners and determine their device files. Its primary
[989db39]470 purpose is to make sure that scanners can be detected by
[2096355]471 <application>SANE</application> backends.</para>
472 <indexterm zone="sane sane-find-scanner">
473 <primary sortas="b-sane-find-scanner">sane-find-scanner</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="scanadf">
479 <term><command>scanadf</command></term>
480 <listitem>
481 <para>is a command-line interface to control image acquisition
482 devices which are equipped with an automatic document feeder
483 (ADF).</para>
484 <indexterm zone="sane scanadf">
485 <primary sortas="b-scanadf">scanadf</primary>
486 </indexterm>
487 </listitem>
488 </varlistentry>
489
490 <varlistentry id="scanimage">
491 <term><command>scanimage</command></term>
492 <listitem>
493 <para>is a command line interface for scanning from image acquisition
494 devices such as flatbed scanners or cameras. It is also used to list
495 the available backend devices.</para>
496 <indexterm zone="sane scanimage">
497 <primary sortas="b-scanimage">scanimage</primary>
498 </indexterm>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry id="xcam">
503 <term><command>xcam</command></term>
504 <listitem>
505 <para>is a graphical camera front end for
506 <application>SANE</application>.</para>
507 <indexterm zone="sane xcam">
508 <primary sortas="b-xcam">xcam</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="xscanimage">
514 <term><command>xscanimage</command></term>
515 <listitem>
516 <para>is a graphical user interface for scanning.</para>
517 <indexterm zone="sane xscanimage">
518 <primary sortas="b-xscanimage">xscanimage</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="libsane">
524 <term><filename class='libraryfile'>libsane.so</filename></term>
525 <listitem>
526 <para>is the application programming interface that is used to
527 communicate between frontends and backends.</para>
528 <indexterm zone="sane libsane">
529 <primary sortas="c-libsane">libsane.so</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="libsane-module">
535 <term><filename class='libraryfile'>libsane-*.so</filename></term>
536 <listitem>
537 <para>modules are backend scanning library plugins used to interface
538 with scanning devices. See
539 <ulink url="http://www.sane-project.org/sane-supported-devices.html"/>
540 for a list of supported backends.</para>
541 <indexterm zone="sane libsane-module">
542 <primary sortas="c-libsane-module">libsane-*.so</primary>
543 </indexterm>
544 </listitem>
545 </varlistentry>
546
547 </variablelist>
548
549 </sect2>
[f051506c]550
[7008de1]551</sect1>
Note: See TracBrowser for help on using the repository browser.