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