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