![]() |
This page describes how to get SANE - Scanner Access Now Easy - working on OpenSlug, and how to set it up as a scanner server. What is SANE?SANE - Scanner Access Now Easy - is an interface for scanners. It consists of backends for accessing different scanners, and frontends for scanning with any of the backends. SANED - SANE Network Daemon - Allow remote access to your scannera via SANE. Is my scanner supported?Lots of scanners are supported, but many are still unsupported. Look at the SANE homepage. Tested on OpenSlug:
If you have a HP scanner and use Unslung, you will probabbly like to try this guide: How to Unslung Scan With HPLIP as a complement to this page. Installing SANE on OpenSlugSANE has been packaged and is in the OpenSlug monotone repository. Packages should be available in the unstable feed, and might reach the stable sometime. The package you need is saned, and that should also pull down libsane, libusb and sane-utils. You will also need xinetd.
Make sure you get libusb 0.1.10a-r2 or later. Earlier versions had problems on ARM. When that is installed you should check if sane discovers your scanner:
If it finds a scanner it will output something like:
That does mean it finds something looking like a scanner, but we should also check if SANE supports it:
It should output something like this if your scanner is supported:
If it doesn't, but your scanner should be supported, maybe some configuration is needed. Check in /etc/sane.d/ for the configuration file for your scanner. Setting up sanedNormal users cannot access usb, and since saned runs as a normal user we have to do something about that. To do that you have to edit the file /etc/fstab and find the line:
and change that to:
After that you should either reboot, or run:
Note that this could be considered a security hole since now anybody with an account can access everything on you USB-bus. When you install saned it will configure xinetd for you. You just have to edit /etc/sane.d/saned.conf and select what hosts should be allowed to scan. One thing that can cause strange problems is saned not finding itself in /etc/hosts. Make sure you have a line in there with your IP and hostname, for example:
FirmwareSome scanners require a firmware image to be loaded to be able to scan. In the case of the Trust Easy Webscan 19200, this file is called Artec48.usb and is on the Windows driver CD. (Probably also in drivers downloaded from the intarweb). Place this in /usr/lib/sane, and edit the correct config-file (artec_eplus48.conf) to point to that location. ScanningTo scan from another Linux host install SANE and add the saned servers IP in /etc/sane.d/net.conf. Then you can use any SANE frontend to scan, for example scanimage and xsane. To scan from Windows you need a TWAIN interface to sane. One that is known to work is SaneTwain |