[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 " ">
|
---|
[437f2d71] | 9 | <!ENTITY sane-be-md5sum "302159419ed1ee216c6e1edbe97c2a8c">
|
---|
| 10 | <!ENTITY sane-be-size "6.9 MB">
|
---|
| 11 | <!ENTITY sane-be-buildsize "311 MB (with tests)">
|
---|
[78b2022] | 12 | <!ENTITY sane-be-time "0.7 SBU (Using parallelism=4; with tests)">
|
---|
[f051506c] | 13 |
|
---|
[6646cae6] | 14 | <!--
|
---|
[e44ac95] | 15 | <!ENTITY sane-fe-download-http "&sources-anduin-http;/sane/sane-frontends-&sane-fe-version;.tar.gz">
|
---|
[5714cf71] | 16 | <!ENTITY sane-fe-download-ftp " ">
|
---|
[989db39] | 17 | <!ENTITY sane-fe-md5sum "c63bf7b0bb5f530cf3c08715db721cd3">
|
---|
| 18 | <!ENTITY sane-fe-size "231 KB">
|
---|
| 19 | <!ENTITY sane-fe-buildsize "3.0 MB">
|
---|
| 20 | <!ENTITY sane-fe-time "less than 0.1 SBU">
|
---|
[6646cae6] | 21 | -->
|
---|
[5d1668d] | 22 | ]>
|
---|
| 23 |
|
---|
[8ba1563] | 24 | <sect1 id="sane" xreflabel="SANE-&sane-version;">
|
---|
[2096355] | 25 | <?dbhtml filename="sane.html"?>
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | <title>SANE-&sane-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="sane">
|
---|
| 31 | <primary sortas="a-SANE">SANE</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to SANE</title>
|
---|
| 36 |
|
---|
[fa3edfef] | 37 | <para>
|
---|
| 38 | <application>SANE</application> is short for Scanner Access Now Easy.
|
---|
| 39 | Scanner access, however, is far from easy, since every vendor has their
|
---|
| 40 | own protocols. The only known protocol that should bring some unity into
|
---|
| 41 | this chaos is the TWAIN interface, but this is too imprecise to allow a
|
---|
| 42 | stable scanning framework. Therefore, <application>SANE</application>
|
---|
| 43 | comes with its own protocol, and the vendor drivers can't be used.
|
---|
| 44 | </para>
|
---|
[2096355] | 45 |
|
---|
[fa3edfef] | 46 | <para>
|
---|
| 47 | <application>SANE</application> is split into back ends and front ends.
|
---|
| 48 | The back ends are drivers for the supported scanners and cameras. The
|
---|
| 49 | front ends are user interfaces to access the backends.
|
---|
| 50 | </para>
|
---|
[2096355] | 51 |
|
---|
[fc09938] | 52 | &lfs122_checked;
|
---|
[d92b93c] | 53 |
|
---|
[2096355] | 54 | <bridgehead renderas="sect3">Back Ends Package Information</bridgehead>
|
---|
| 55 | <itemizedlist spacing='compact'>
|
---|
| 56 | <listitem>
|
---|
[fa3edfef] | 57 | <para>
|
---|
| 58 | Download (HTTP): <ulink url="&sane-be-download-http;"/>
|
---|
| 59 | </para>
|
---|
[2096355] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[fa3edfef] | 62 | <para>
|
---|
| 63 | Download (FTP): <ulink url="&sane-be-download-ftp;"/>
|
---|
| 64 | </para>
|
---|
[2096355] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[fa3edfef] | 67 | <para>
|
---|
| 68 | Download MD5 sum: &sane-be-md5sum;
|
---|
| 69 | </para>
|
---|
[2096355] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[fa3edfef] | 72 | <para>
|
---|
| 73 | Download size: &sane-be-size;
|
---|
| 74 | </para>
|
---|
[2096355] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[fa3edfef] | 77 | <para>
|
---|
| 78 | Estimated disk space required: &sane-be-buildsize;
|
---|
| 79 | </para>
|
---|
[2096355] | 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
[fa3edfef] | 82 | <para>
|
---|
| 83 | Estimated build time: &sane-be-time;
|
---|
| 84 | </para>
|
---|
[2096355] | 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[6646cae6] | 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>
|
---|
[2c87187] | 103 | Download MD5 sum: &sane-fe-md5sum;
|
---|
[fa3edfef] | 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>
|
---|
[6646cae6] | 122 | -->
|
---|
[88e2920] | 123 |
|
---|
[e44ac95] | 124 | <note>
|
---|
| 125 | <para>
|
---|
[6646cae6] | 126 | The upstream location for this file is at
|
---|
[8558044] | 127 | <ulink url="https://gitlab.com/sane-project"/> but
|
---|
[6646cae6] | 128 | the file URL uses an embedded md5sum. For convenience,
|
---|
| 129 | the package has been copied to the location above.
|
---|
[e44ac95] | 130 | </para>
|
---|
| 131 | </note>
|
---|
| 132 |
|
---|
[2096355] | 133 | <bridgehead renderas="sect3">SANE Dependencies</bridgehead>
|
---|
| 134 |
|
---|
[97344b6] | 135 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[272d904] | 136 | <para role="optional">
|
---|
[2b3ffa0] | 137 | <xref linkend="avahi"/>,
|
---|
| 138 | <xref linkend="cups"/>,
|
---|
[272d904] | 139 | <xref linkend="libjpeg"/>,
|
---|
| 140 | <xref linkend="libtiff"/>,
|
---|
[2b3ffa0] | 141 | <xref linkend="libusb"/>,
|
---|
[80dbc4c8] | 142 | <xref linkend="v4l-utils"/>,
|
---|
[2b3ffa0] | 143 | <ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>,
|
---|
[272d904] | 144 | <ulink url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>,
|
---|
[80dbc4c8] | 145 | <ulink url="http://www.gphoto.org/">libgphoto2</ulink>, and
|
---|
[f720ace1] | 146 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[272d904] | 147 | </para>
|
---|
[2096355] | 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="kernel" id='sane-kernel'>
|
---|
[37f01429] | 152 | <title>Kernel Configuration, Drivers and Additional Packages</title>
|
---|
[2096355] | 153 |
|
---|
| 154 | <indexterm zone="sane sane-kernel">
|
---|
| 155 | <primary sortas="d-Scanning-devices">Scanning devices</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 |
|
---|
[fa3edfef] | 158 | <para>
|
---|
| 159 | To access your scanner, you will probably need the related kernel
|
---|
| 160 | drivers and/or additional support packages. A SCSI scanner will need SCSI
|
---|
| 161 | drivers, a parallel port scanner needs parallel port support (you should
|
---|
| 162 | use enhanced EPP modes) and perhaps <ulink
|
---|
| 163 | url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>, and a USB
|
---|
| 164 | scanner will need the <xref linkend="libusb"/> package. For HP devices,
|
---|
| 165 | you may need <ulink
|
---|
[c6b192c] | 166 | url="https://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>.
|
---|
[fa3edfef] | 167 | Ensure you have the necessary drivers properly configured to access
|
---|
| 168 | the devices.
|
---|
| 169 | </para>
|
---|
[2096355] | 170 |
|
---|
| 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="installation">
|
---|
| 174 | <title>Installation of SANE</title>
|
---|
| 175 |
|
---|
| 176 | <sect3>
|
---|
[97344b6] | 177 | <title>Installation of SANE Backends</title>
|
---|
[2096355] | 178 |
|
---|
[fa3edfef] | 179 | <para>
|
---|
| 180 | The <application>SANE</application> daemon should run with its own
|
---|
[437f2d71] | 181 | group. Create this group by issuing the following command as the
|
---|
| 182 | &root; user:
|
---|
[fa3edfef] | 183 | </para>
|
---|
[c67fd68c] | 184 |
|
---|
[1dd7b0ae] | 185 | <screen role="root"><userinput>groupadd -g 70 scanner</userinput></screen>
|
---|
[c67fd68c] | 186 |
|
---|
[2b3ffa0] | 187 | <note>
|
---|
| 188 | <para>
|
---|
[46c5976] | 189 | <command>configure</command> assumes that the user building
|
---|
[8322ac92] | 190 | <application>SANE</application> Backends is a member of the
|
---|
[46c5976] | 191 | <systemitem class="groupname">scanner</systemitem> group for testing
|
---|
[437f2d71] | 192 | the existence of this group. As a result, the user building the
|
---|
| 193 | package needs to be added to the
|
---|
| 194 | <systemitem class="groupname">scanner</systemitem> group. Add the
|
---|
| 195 | user to the <systemitem class="groupname">scanner</systemitem> group
|
---|
| 196 | by issuing the following command as the &root; user:
|
---|
[2b3ffa0] | 197 | </para>
|
---|
| 198 |
|
---|
[46c5976] | 199 | <screen role="root"><userinput>usermod -G scanner -a <replaceable>username</replaceable></userinput></screen>
|
---|
[3eeb0ce7] | 200 |
|
---|
| 201 | <para>
|
---|
[8558044] | 202 | After adding the <systemitem class="groupname">scanner</systemitem>
|
---|
[3eeb0ce7] | 203 | group as above, you will need to log out and back in to activate it.
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
[2b3ffa0] | 206 | </note>
|
---|
[46c5976] | 207 |
|
---|
[fa3edfef] | 208 | <para>
|
---|
| 209 | For a USB scanner, if you are linking to <xref linkend="libusb"/>,
|
---|
| 210 | include the configure switch --enable-libusb_1_0. Install
|
---|
[8322ac92] | 211 | <application>SANE</application> Backends by running the following
|
---|
[fa3edfef] | 212 | commands:
|
---|
| 213 | </para>
|
---|
[2096355] | 214 |
|
---|
[437f2d71] | 215 | <screen><userinput>sg scanner -c " \
|
---|
| 216 | PYTHON=python3 ./configure --prefix=/usr \
|
---|
| 217 | --sysconfdir=/etc \
|
---|
| 218 | --localstatedir=/var \
|
---|
| 219 | --with-lockdir=/run/lock \
|
---|
| 220 | --docdir=/usr/share/doc/sane-backends-&sane-version;" &&
|
---|
[2ea1836] | 221 | make</userinput></screen>
|
---|
[2b3ffa0] | 222 |
|
---|
[fa3edfef] | 223 | <para>
|
---|
| 224 | To test the results, issue: <command>make check</command>.
|
---|
| 225 | </para>
|
---|
[9ea2f70] | 226 |
|
---|
[fa3edfef] | 227 | <para>
|
---|
| 228 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 229 | </para>
|
---|
[2096355] | 230 |
|
---|
[2b3ffa0] | 231 | <screen role="root"><userinput>make install &&
|
---|
| 232 | install -m 644 -v tools/udev/libsane.rules \
|
---|
| 233 | /etc/udev/rules.d/65-scanner.rules &&
|
---|
[12a3cd17] | 234 | mkdir -p /run/lock/sane &&
|
---|
| 235 | chgrp -v scanner /run/lock/sane</userinput></screen>
|
---|
[2096355] | 236 |
|
---|
[fa3edfef] | 237 | <para>
|
---|
| 238 | With the scanner on, run <command>scanimage -L</command> and the
|
---|
| 239 | name and location of the device should appear. Of course, you need the
|
---|
| 240 | device drivers configured, in order to run this test.
|
---|
| 241 | </para>
|
---|
[45f715c] | 242 |
|
---|
[2096355] | 243 | </sect3>
|
---|
| 244 |
|
---|
[6646cae6] | 245 | <!--
|
---|
[2096355] | 246 | <sect3>
|
---|
| 247 | <title>Installation of SANE Front Ends</title>
|
---|
| 248 |
|
---|
[fa3edfef] | 249 | <para>
|
---|
| 250 | The <application>SANE</application>-frontends package
|
---|
| 251 | includes the graphical frontends <command>xscanimage</command> and
|
---|
| 252 | <command>xcam</command>, and a command-line frontend
|
---|
| 253 | <command>scanadf</command>. You don't need this package if you intend
|
---|
| 254 | to use one of the more advanced graphical frontends like
|
---|
| 255 | <xref linkend="xsane"/>. For a list of frontend packages, see
|
---|
| 256 | <ulink url="http://www.sane-project.org/sane-frontends.html"/>.
|
---|
| 257 | </para>
|
---|
| 258 |
|
---|
| 259 | <para>
|
---|
| 260 | To install <application>SANE</application>-frontends,
|
---|
| 261 | use the following commands:
|
---|
| 262 | </para>
|
---|
[2096355] | 263 |
|
---|
[f67554b0] | 264 | <screen><userinput>tar -xf ../sane-frontends-&sane-fe-version;.tar.gz &&
|
---|
| 265 | cd sane-frontends-&sane-fe-version; &&
|
---|
| 266 |
|
---|
| 267 | sed -i -e "/SANE_CAP_ALWAYS_SETTABLE/d" src/gtkglue.c &&
|
---|
[6646cae6] | 268 | ./configure - -prefix=/usr - -mandir=/usr/share/man &&
|
---|
[2096355] | 269 | make</userinput></screen>
|
---|
| 270 |
|
---|
[fa3edfef] | 271 | <para>
|
---|
| 272 | This package does not come with a test suite.
|
---|
| 273 | </para>
|
---|
[989db39] | 274 |
|
---|
[fa3edfef] | 275 | <para>
|
---|
| 276 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 277 | </para>
|
---|
[2096355] | 278 |
|
---|
[a52e5394] | 279 | <screen role="root"><userinput>make install &&
|
---|
[989db39] | 280 | install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \
|
---|
| 281 | /usr/share/sane</userinput></screen>
|
---|
[2096355] | 282 |
|
---|
[fa3edfef] | 283 | <para>
|
---|
| 284 | If <application>GIMP</application> was linked into the build and
|
---|
| 285 | you wish <application>GIMP</application> to use
|
---|
| 286 | <command>xscanimage</command> as a scanning plugin, issue the following
|
---|
| 287 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 288 | </para>
|
---|
[2096355] | 289 |
|
---|
[989db39] | 290 | <screen role="root"><userinput>ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins</userinput></screen>
|
---|
[2096355] | 291 |
|
---|
[4d6023d2] | 292 | <note>
|
---|
| 293 | <para>
|
---|
[c6f0a51] | 294 | If the plugin <command>xscanimage</command> is disabled in
|
---|
| 295 | <application>GIMP</application>'s menu, in order to enable it,
|
---|
| 296 | "create" a blank image using the menu or Ctrl-N. After that, it is
|
---|
| 297 | enabled.
|
---|
[4d6023d2] | 298 | </para>
|
---|
| 299 | </note>
|
---|
| 300 |
|
---|
[2096355] | 301 | </sect3>
|
---|
[6646cae6] | 302 | -->
|
---|
[2096355] | 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 |
|
---|
[437f2d71] | 316 | <para>
|
---|
| 317 | <parameter>PYTHON=python3</parameter>: This switch forces the build
|
---|
| 318 | system to use Python 3 instead of Python 2.
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
[fa3edfef] | 321 | <para>
|
---|
| 322 | <parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
---|
| 323 | configuration files in <filename class="directory">/etc/sane.d</filename>
|
---|
| 324 | instead of <filename class="directory">/usr/etc/sane.d</filename>.
|
---|
| 325 | </para>
|
---|
[2096355] | 326 |
|
---|
[437f2d71] | 327 | <!-- This option doesn't exist anymore as of 1.2.1, and the udev rule
|
---|
| 328 | references the usage of 'scanner' everywhere.
|
---|
[fa3edfef] | 329 | <para>
|
---|
[437f2d71] | 330 | <parameter>- -with-group=scanner</parameter>: This parameter causes
|
---|
[fa3edfef] | 331 | the directory created for the locking files to be group owned by the
|
---|
| 332 | <systemitem class="groupname">scanner</systemitem> group instead of the
|
---|
| 333 | default <systemitem class="groupname">uucp</systemitem> group.
|
---|
| 334 | </para>
|
---|
[437f2d71] | 335 | -->
|
---|
[2b3ffa0] | 336 |
|
---|
[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>
|
---|
[437f2d71] | 372 | Add any users that will use a scanner to the <systemitem
|
---|
[fa3edfef] | 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
|
---|
[437f2d71] | 378 | <filename>net.conf</filename>, as the &root; user (make sure to
|
---|
| 379 | replace <server_ip> by the actual value):
|
---|
[fa3edfef] | 380 | </para>
|
---|
[45f715c] | 381 |
|
---|
[1c4f3b1f] | 382 | <screen role="root"><userinput>cat >> /etc/sane.d/net.conf << "EOF"
|
---|
[51dfb3e] | 383 | <literal>connect_timeout = 60
|
---|
| 384 | <server_ip></literal>
|
---|
[45f715c] | 385 | EOF</userinput></screen>
|
---|
| 386 |
|
---|
[fa3edfef] | 387 | <para>
|
---|
| 388 | On the server side, include the client ip in the access list of
|
---|
| 389 | <filename>/etc/sane.d/saned.conf</filename>, restart the
|
---|
| 390 | <command>saned</command> daemon, and make sure the firewall, if any,
|
---|
| 391 | is open to the client.
|
---|
| 392 | </para>
|
---|
[45f715c] | 393 |
|
---|
[2096355] | 394 | </sect4>
|
---|
| 395 |
|
---|
[6646cae6] | 396 | <!--
|
---|
[4d6023d2] | 397 | <sect4>
|
---|
| 398 | <title>Frontend Configuration</title>
|
---|
| 399 | <para>
|
---|
[437f2d71] | 400 | If you use a desktop environment like <application>GNOME</application>
|
---|
[4d6023d2] | 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.
|
---|
[437f2d71] | 404 | Create the desktop file using the following commands as the &root; user:
|
---|
[4d6023d2] | 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>
|
---|
[6646cae6] | 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
|
---|
[75b1a338] | 451 | <ulink url="https://penguin-breeder.org/sane/saned/"/>.
|
---|
[fa3edfef] | 452 | </para>
|
---|
[2096355] | 453 |
|
---|
| 454 | </sect4>
|
---|
| 455 |
|
---|
| 456 | </sect3>
|
---|
| 457 |
|
---|
| 458 | </sect2>
|
---|
| 459 |
|
---|
| 460 | <sect2 role="content">
|
---|
| 461 | <title>Contents</title>
|
---|
| 462 |
|
---|
| 463 | <segmentedlist>
|
---|
| 464 | <segtitle>Installed Programs</segtitle>
|
---|
| 465 | <segtitle>Installed Libraries</segtitle>
|
---|
| 466 | <segtitle>Installed Directories</segtitle>
|
---|
| 467 |
|
---|
| 468 | <seglistitem>
|
---|
[437f2d71] | 469 | <seg>gamma4scanimage,
|
---|
| 470 | sane-config,
|
---|
| 471 | saned,
|
---|
| 472 | sane-find-scanner,
|
---|
| 473 | scanimage, and
|
---|
| 474 | umax_pp</seg>
|
---|
[2096355] | 475 | <seg>libsane.so and numerous scanner backend modules</seg>
|
---|
[437f2d71] | 476 | <seg>/etc/sane.d,
|
---|
| 477 | /usr/{include,lib,share}/sane,
|
---|
[989db39] | 478 | and /usr/share/doc/sane-&sane-version;</seg>
|
---|
[2096355] | 479 | </seglistitem>
|
---|
| 480 | </segmentedlist>
|
---|
| 481 |
|
---|
[6646cae6] | 482 | <!--
|
---|
[2096355] | 483 | <bridgehead renderas="sect4">Front Ends:</bridgehead>
|
---|
| 484 | <segmentedlist>
|
---|
| 485 | <segtitle>Installed Programs</segtitle>
|
---|
| 486 | <segtitle>Installed Library</segtitle>
|
---|
[989db39] | 487 | <segtitle>Installed Directories</segtitle>
|
---|
[2096355] | 488 |
|
---|
| 489 | <seglistitem>
|
---|
[437f2d71] | 490 | <seg>scanadf,
|
---|
| 491 | xcam, and
|
---|
| 492 | xscanimage</seg>
|
---|
[6f19a68e] | 493 | <seg><application>GIMP</application> plugin embedded in
|
---|
[2096355] | 494 | <command>xscanimage</command></seg>
|
---|
[989db39] | 495 | <seg>None</seg>
|
---|
[2096355] | 496 | </seglistitem>
|
---|
| 497 | </segmentedlist>
|
---|
[6646cae6] | 498 | -->
|
---|
[2096355] | 499 |
|
---|
| 500 | <variablelist>
|
---|
| 501 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 502 | <?dbfo list-presentation="list"?>
|
---|
| 503 | <?dbhtml list-presentation="table"?>
|
---|
| 504 |
|
---|
| 505 | <varlistentry id="gamma4scanimage">
|
---|
| 506 | <term><command>gamma4scanimage</command></term>
|
---|
| 507 | <listitem>
|
---|
[fa3edfef] | 508 | <para>
|
---|
| 509 | creates a gamma table in the format expected by
|
---|
[4c24eb0a] | 510 | <command>scanimage</command>
|
---|
[fa3edfef] | 511 | </para>
|
---|
[2096355] | 512 | <indexterm zone="sane gamma4scanimage">
|
---|
| 513 | <primary sortas="b-gamma4scanimage">gamma4scanimage</primary>
|
---|
| 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
| 518 | <varlistentry id="sane-config-prog">
|
---|
| 519 | <term><command>sane-config</command></term>
|
---|
| 520 | <listitem>
|
---|
[fa3edfef] | 521 | <para>
|
---|
| 522 | is a tool used to determine the compiler and linker
|
---|
| 523 | flags that should be used to compile and link
|
---|
[4c24eb0a] | 524 | <application>SANE</application>
|
---|
[fa3edfef] | 525 | </para>
|
---|
[2096355] | 526 | <indexterm zone="sane sane-config-prog">
|
---|
| 527 | <primary sortas="b-sane-config">sane-config</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
| 532 | <varlistentry id="saned">
|
---|
| 533 | <term><command>saned</command></term>
|
---|
| 534 | <listitem>
|
---|
[fa3edfef] | 535 | <para>
|
---|
| 536 | is the <application>SANE</application> daemon that
|
---|
| 537 | allows remote clients to access image acquisition devices
|
---|
[4c24eb0a] | 538 | available on the local host
|
---|
[fa3edfef] | 539 | </para>
|
---|
[2096355] | 540 | <indexterm zone="sane saned">
|
---|
| 541 | <primary sortas="b-saned">saned</primary>
|
---|
| 542 | </indexterm>
|
---|
| 543 | </listitem>
|
---|
| 544 | </varlistentry>
|
---|
| 545 |
|
---|
| 546 | <varlistentry id="sane-find-scanner">
|
---|
| 547 | <term><command>sane-find-scanner</command></term>
|
---|
| 548 | <listitem>
|
---|
[fa3edfef] | 549 | <para>
|
---|
| 550 | is a command-line tool to find SCSI and
|
---|
| 551 | USB scanners and determine their device files. Its primary
|
---|
| 552 | purpose is to make sure that scanners can be detected by
|
---|
[4c24eb0a] | 553 | <application>SANE</application> backends
|
---|
[fa3edfef] | 554 | </para>
|
---|
[2096355] | 555 | <indexterm zone="sane sane-find-scanner">
|
---|
| 556 | <primary sortas="b-sane-find-scanner">sane-find-scanner</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
[6646cae6] | 561 | <!--
|
---|
[2096355] | 562 | <varlistentry id="scanadf">
|
---|
| 563 | <term><command>scanadf</command></term>
|
---|
| 564 | <listitem>
|
---|
[fa3edfef] | 565 | <para>
|
---|
| 566 | is a command-line interface to control image acquisition
|
---|
[4c24eb0a] | 567 | devices which are equipped with an automatic document feeder (ADF)
|
---|
[fa3edfef] | 568 | </para>
|
---|
[2096355] | 569 | <indexterm zone="sane scanadf">
|
---|
| 570 | <primary sortas="b-scanadf">scanadf</primary>
|
---|
| 571 | </indexterm>
|
---|
| 572 | </listitem>
|
---|
| 573 | </varlistentry>
|
---|
[6646cae6] | 574 | -->
|
---|
[2096355] | 575 |
|
---|
| 576 | <varlistentry id="scanimage">
|
---|
| 577 | <term><command>scanimage</command></term>
|
---|
| 578 | <listitem>
|
---|
[fa3edfef] | 579 | <para>
|
---|
| 580 | is a command line interface for scanning from image acquisition
|
---|
| 581 | devices such as flatbed scanners or cameras. It is also used to
|
---|
[4c24eb0a] | 582 | list the available backend devices
|
---|
[fa3edfef] | 583 | </para>
|
---|
[2096355] | 584 | <indexterm zone="sane scanimage">
|
---|
| 585 | <primary sortas="b-scanimage">scanimage</primary>
|
---|
| 586 | </indexterm>
|
---|
| 587 | </listitem>
|
---|
| 588 | </varlistentry>
|
---|
| 589 |
|
---|
[437f2d71] | 590 | <varlistentry id="umax_pp">
|
---|
| 591 | <term><command>umax_pp</command></term>
|
---|
| 592 | <listitem>
|
---|
| 593 | <para>
|
---|
| 594 | is a tool used to read information from UMAX parallel port
|
---|
| 595 | scanners. It can also be used for performing diagnostics on these
|
---|
| 596 | scanners
|
---|
| 597 | </para>
|
---|
| 598 | <indexterm zone="sane umax_pp">
|
---|
| 599 | <primary sortas="b-umax_pp">umax_pp</primary>
|
---|
| 600 | </indexterm>
|
---|
| 601 | </listitem>
|
---|
| 602 | </varlistentry>
|
---|
| 603 |
|
---|
[6646cae6] | 604 | <!--
|
---|
[2096355] | 605 | <varlistentry id="xcam">
|
---|
| 606 | <term><command>xcam</command></term>
|
---|
| 607 | <listitem>
|
---|
[fa3edfef] | 608 | <para>
|
---|
| 609 | is a graphical camera front end for
|
---|
[4c24eb0a] | 610 | <application>SANE</application>
|
---|
[fa3edfef] | 611 | </para>
|
---|
[2096355] | 612 | <indexterm zone="sane xcam">
|
---|
| 613 | <primary sortas="b-xcam">xcam</primary>
|
---|
| 614 | </indexterm>
|
---|
| 615 | </listitem>
|
---|
| 616 | </varlistentry>
|
---|
| 617 |
|
---|
| 618 | <varlistentry id="xscanimage">
|
---|
| 619 | <term><command>xscanimage</command></term>
|
---|
| 620 | <listitem>
|
---|
[fa3edfef] | 621 | <para>
|
---|
[4c24eb0a] | 622 | is a graphical user interface for scanning
|
---|
[fa3edfef] | 623 | </para>
|
---|
[2096355] | 624 | <indexterm zone="sane xscanimage">
|
---|
| 625 | <primary sortas="b-xscanimage">xscanimage</primary>
|
---|
| 626 | </indexterm>
|
---|
| 627 | </listitem>
|
---|
| 628 | </varlistentry>
|
---|
[6646cae6] | 629 | -->
|
---|
[2096355] | 630 | <varlistentry id="libsane">
|
---|
[4c24eb0a] | 631 | <term><filename class="libraryfile">libsane.so</filename></term>
|
---|
[2096355] | 632 | <listitem>
|
---|
[fa3edfef] | 633 | <para>
|
---|
| 634 | is the application programming interface that is used to
|
---|
[4c24eb0a] | 635 | communicate between frontends and backends
|
---|
[fa3edfef] | 636 | </para>
|
---|
[2096355] | 637 | <indexterm zone="sane libsane">
|
---|
| 638 | <primary sortas="c-libsane">libsane.so</primary>
|
---|
| 639 | </indexterm>
|
---|
| 640 | </listitem>
|
---|
| 641 | </varlistentry>
|
---|
| 642 |
|
---|
| 643 | <varlistentry id="libsane-module">
|
---|
[4c24eb0a] | 644 | <term><filename class="libraryfile">libsane-*.so</filename></term>
|
---|
[2096355] | 645 | <listitem>
|
---|
[fa3edfef] | 646 | <para>
|
---|
| 647 | modules are backend scanning library plugins used to interface
|
---|
[4c24eb0a] | 648 | with scanning devices. See
|
---|
| 649 | <ulink url="http://www.sane-project.org/sane-supported-devices.html"/>
|
---|
| 650 | for a list of supported backends
|
---|
[fa3edfef] | 651 | </para>
|
---|
[2096355] | 652 | <indexterm zone="sane libsane-module">
|
---|
| 653 | <primary sortas="c-libsane-module">libsane-*.so</primary>
|
---|
| 654 | </indexterm>
|
---|
| 655 | </listitem>
|
---|
| 656 | </varlistentry>
|
---|
| 657 |
|
---|
| 658 | </variablelist>
|
---|
| 659 |
|
---|
| 660 | </sect2>
|
---|
[f051506c] | 661 |
|
---|
[7008de1] | 662 | </sect1>
|
---|