|
Related YoLinux Tutorials:
Free Information Technology Magazines and Document Downloads |
To utilize a scanner under Linux one must install SANE. It is also wise to employ a front-end application for scanning such as Xsane. Linux uses a software interface to scanning devices known as SANE. PC's often use TWAIN. These software packages run as interfaces between the application and the scanner. SANE is like TWAIN except that it allows network access to the scanner through the saned (Networked scanner daemon). TWAIN is not network enabled and merely talks to local applications. (It is not necessary to run the saned for local applications.) The current SANE release talks to SCSI scanners. Most non-USB scanners are SCSI scanners. Even if the scanner comes with it's own card, that card is likely a simple SCSI card with a limited feature set which can provide enough features to talk to the scanner. See this link to see what scanners are supported by SANE: http://www.mostang.com/sane/sane-backends.html
SCSI devices under Linux are often named to suite the device. For example the first SCSI tape drive is /dev/st0. The first SCSI CD-ROM is /dev/scd0. When using scanners, one uses the "raw" device name.
The SCSI device number 7 is usually reserved for the SCSI card itself. To list scsi devices on Linux system: cat /proc/scsi/scsi Set up a new logical device: As root: ln -s /dev/sgX /dev/scanner where X refers to your raw SCSI device. One may also want to change privileges for the device: chmod ugo+r /dev/sgX. (You may want to set up a group and privileges for the group if this is on a server.)
Configuration files: The defaults from the Red Hat rpm do not require any changes. Here are my samples for my HP Scanjet 5p (or any HP scanner) File: /etc/sane.d/dll.conf
Test to see if the device is recognized: scanimage -L
device `pnm:0' is a Noname PNM file reader virtual device Pitfalls:
Man pages: saned, scanimage, xscanimage, sane-scsi, sane-pnm, sane-dll
Look at: man sane-scsi This tells of how to recompile the kernel for a larger scsi buffer for more speed if you want to optimize your system. Red Hat should do this by default!!!!!
Yes the sane rpm package comes with xscanimage but Xsane takes alot of the pitfalls out of the operation. (but not all) Thus I recommend using Xsane as your scanning application.
Pitfalls: Note that the order of operation is important. You MUST use the preview window and do an "Aquire Preview" first before each scan. If you select the "Start" button to scan immediately, you may get nothing. To set the size in the preview window, adjust the "elastic box" or "marching ants". It is already there. The "elastic" box is already there. (you just can't see it the first time) Select the corner of the "elastic" box in the corner of the preview window. You can't see it but it is there. Just left-click at the corner of the preview window and drag. Adjust to the size of your image. Other orders of operation are possible but they may result in no real image. Also note that if you choose the file number incrementer, that this feature maxes out at 9. Tips: XSane 0.82
Commercial scanning products:
Scanning Tips: Sane Manual pages:
Links:
|
|
Copyright © 2000, 2001, 2002 by Greg Ippolito