NSLU2-Linux
view · edit · print · history

HowTo.SetUpAScannerServerWithSANE History

Hide minor edits - Show changes to markup

August 03, 2008, at 02:42 AM by Marcelo Vianna -- Fixed text about Unslung HPLIP reference
Changed lines 21-22 from:
to:

How to Unslung Scan With HPLIP as a complement to this page.

August 03, 2008, at 01:06 AM by Marcelo Vianna -- Fix test about UnslungScanWithHPLIP reference
Changed lines 21-22 from:
to:
August 03, 2008, at 01:05 AM by Marcelo Vianna -- Fix test about UnslungScanWithHPLIP reference
Changed line 20 from:

If you have a HP scanner you will probabbly like to try this guide:

to:

If you have a HP scanner and use Unslung, you will probabbly like to try this guide:

August 03, 2008, at 01:03 AM by Marcelo Vianna -- fix typo on UnslungScanWithHPLIP reference
Changed line 20 from:

If you have a HP scanner you would probabbly like to try this guide:

to:

If you have a HP scanner you will probabbly like to try this guide:

August 02, 2008, at 06:47 PM by Marcelo Vianna -- Reference the UnslungScanWithHPLIP page
Added lines 20-22:

If you have a HP scanner you would probabbly like to try this guide: How to Unslung Scan With HPLIP

January 27, 2008, at 02:45 AM by scant --
Changed line 17 from:
to:
  • Canon PIXMA MP530
January 27, 2008, at 02:45 AM by scant --
Added line 17:
August 24, 2005, at 11:34 AM by tman --
Changed lines 61-69 from:

It should output something like this if your scanner is supported:
device `plustek:libusb:001:003' is a Canon N670U/N676U/LiDE20 USB flatbed scanner

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 saned

Normal 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:

to:

It should output something like this if your scanner is supported:

Changed line 66 from:

usbfs /proc/bus/usb usbfs defaults 0 0

to:

device `plustek:libusb:001:003' is a Canon N670U?/N676U?/LiDE20? USB flatbed scanner

Changed lines 70-71 from:

and change that to:

to:

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 saned

Normal 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:

Changed line 79 from:

usbfs /proc/bus/usb usbfs defaults,devmode=0666 0 0

to:

usbfs /proc/bus/usb usbfs defaults 0 0

Changed lines 83-84 from:

After that you should either reboot, or run:

to:

and change that to:

Changed line 88 from:

mount /proc/bus/usb -o remount,devmode=0666

to:

usbfs /proc/bus/usb usbfs defaults,devmode=0666 0 0

Added lines 92-100:

After that you should either reboot, or run:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 
mount /proc/bus/usb -o remount,devmode=0666

(:tableend:)

August 24, 2005, at 11:34 AM by tman --
Changed line 28 from:

ipkg update && ipkg install saned xinetd

to:

ipkg update && ipkg install saned xinetd

August 24, 2005, at 11:16 AM by repvik --
Changed lines 17-18 from:
  • The artec backend with Trust Easy WebScan 19200
to:
  • The artec backend with Trust Easy WebScan 19200 (Doesn't work yet)
August 23, 2005, at 09:38 PM by tman --
Changed line 48 from:

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001:003

to:

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan?], chip=LM9832?/3) at libusb:001:003

August 23, 2005, at 09:38 PM by tman --
Changed lines 5-7 from:

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. More information is available on the SANE homepage.

Is my scanner supported?

to:

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?

Changed lines 111-112 from:

Some 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 to point to that location. (artec_eplus48.conf).

to:

Some 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.

August 23, 2005, at 09:36 PM by tman --
Changed line 102 from:

10.39.19.81 THG-SLUG3

to:

10.39.19.81 THG-SLUG3?

August 23, 2005, at 09:36 PM by tman --
Added line 80:

=]

Changed lines 83-90 from:

After that you should either reboot, or run mount /proc/bus/usb -o remount,devmode=0666
Note that this could be considered a security hole since now every user with local access 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.
For example, if you want the computer 192.168.1.4 to be able to scan, add that to a new line in the file. Adding an entire network requires typing a base IP and a netmask in CIDR notation. For example to add the network 192.168.0.0with the netmask 255.255.0.0 type 192.168.0.0/16, for netmask 255.255.255.0 type 192.168.0.0/24.

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:

to:

After that you should either reboot, or run:

Changed line 88 from:

10.39.19.81 THG-SLUG3

to:

mount /proc/bus/usb -o remount,devmode=0666

Added lines 92-105:

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.
For example, if you want the computer 192.168.1.4 to be able to scan, add that to a new line in the file. Adding an entire network requires typing a base IP and a netmask in CIDR notation. For example to add the network 192.168.0.0with the netmask 255.255.0.0 type 192.168.0.0/16, for netmask 255.255.255.0 type 192.168.0.0/24.

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:
(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 
10.39.19.81              THG-[=SLUG3

=] (:tableend:)

August 23, 2005, at 09:35 PM by tman --
Changed lines 3-6 from:

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. More information is available on the SANE homepage.

to:

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. More information is available on the SANE homepage.

Changed lines 11-12 from:

Tested on OpenSlug:\\

to:

Tested on OpenSlug:

Changed lines 14-17 from:
  • The artec backend with Trust Easy WebScan? 19200

Installing SANE on OpenSlug

to:
  • The artec backend with Trust Easy WebScan 19200

Installing SANE on OpenSlug

Added lines 22-24:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 [=
Changed lines 26-28 from:
to:

=] (:tableend:)

Changed lines 33-35 from:

sane-find-scanner

If it finds a scanner it will output something like:\\

to:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 
sane-find-scanner

(:tableend:)

If it finds a scanner it will output something like:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 [=
Changed lines 46-48 from:
to:

=] (:tableend:)

Changed lines 51-52 from:

scanimage -L

to:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 
scanimage -L

(:tableend:)

Added lines 67-69:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 [=
Changed lines 71-73 from:
to:

=] (:tableend:)

Added lines 76-78:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 [=
Changed lines 80-81 from:
to:

(:tableend:)

Changed lines 89-90 from:

10.39.19.81 THG-SLUG3

to:

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

 
10.39.19.81              THG-[=SLUG3

=] (:tableend:)

Changed lines 103-113 from:

To 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

External links

Penguin-Breeder.Org - SANE Network Daemon
http://penguin-breeder.org/sane/saned/

SANE
http://www.sane-project.org

to:

To 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

August 23, 2005, at 05:48 PM by repvik --
Changed lines 13-14 from:
to:
  • The artec backend with Trust Easy WebScan? 19200
Added lines 60-63:

Firmware

Some 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 to point to that location. (artec_eplus48.conf).

July 12, 2005, at 04:40 PM by daka --
Changed lines 15-16 from:

Installing SANE on openslug as a scanner server

to:

Installing SANE on OpenSlug

July 12, 2005, at 04:39 PM by daka --
Changed lines 5-6 from:

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. More information is avaliable on the SANE homepage.

to:

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. More information is available on the SANE homepage.

Changed lines 17-18 from:

SANE has been packaged and is in the OpenSlug monotone repository. Packages should be avaliable in the unstable feed, and might reach the stable sometime.

to:

SANE has been packaged and is in the OpenSlug monotone repository. Packages should be available in the unstable feed, and might reach the stable sometime.

Changed lines 23-24 from:

Make shure you get libusb 0.1.10a-r2 or later. Earlier versions had problems on ARM.

to:

Make sure you get libusb 0.1.10a-r2 or later. Earlier versions had problems on ARM.

Changed lines 55-57 from:

For example, if you want the computer 192.168.1.4 to be able to scan, add that to a new line in the file. Adding anentire network requires typing a base IP and a netmask in CIDR notation. For example to add the network 192.168.0.0with the netmask 255.255.0.0 type 192.168.0.0/16, for netmask 255.255.255.0 type 192.168.0.0/24.

One thing that can cause strange problems is saned not finding itself in /etc/hosts. Make shure you have a line in there with your IP and hostname, for example:\\

to:

For example, if you want the computer 192.168.1.4 to be able to scan, add that to a new line in the file. Adding an entire network requires typing a base IP and a netmask in CIDR notation. For example to add the network 192.168.0.0with the netmask 255.255.0.0 type 192.168.0.0/16, for netmask 255.255.255.0 type 192.168.0.0/24.

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:\\

Changed lines 62-63 from:

To scan from another Linux host install sane and add the saned servers IP in /etc/sane.d/net.conf. Then you can useany sane frontend to scan, for example scanimage and xsane.

to:

To 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.

July 12, 2005, at 04:33 PM by daka --
Changed lines 1-2 from:

This page describes how to get SANE - Scanner Access Now Easy - working on openslug, and how to set it up as a scanner server.

to:

This page describes how to get SANE - Scanner Access Now Easy - working on OpenSlug, and how to set it up as a scanner server.

Changed lines 11-14 from:

Tested on ARM:
The plustek backend with a Canon LiDE20

to:

Tested on OpenSlug:
* The plustek backend with a Canon LiDE20

Changed lines 17-18 from:

SANE has been packaged and is in the openslug monotone repository. Packages should be avaliable in the unstable feed, and might reach the stable sometime.

to:

SANE has been packaged and is in the OpenSlug monotone repository. Packages should be avaliable in the unstable feed, and might reach the stable sometime.

July 12, 2005, at 04:32 PM by daka --
Changed lines 12-14 from:

The plustek backend with a Canon LiDE20?

to:

The plustek backend with a Canon LiDE20

Changed lines 30-31 from:

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan?], chip=LM9832?/3) at libusb:001:003

to:

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001:003

Changed lines 37-38 from:

device `plustek:libusb:001:003' is a Canon N670U?/N676U?/LiDE20? USB flatbed scanner

to:

device `plustek:libusb:001:003' is a Canon N670U/N676U/LiDE20 USB flatbed scanner

Changed lines 58-59 from:

10.39.19.81 THG-SLUG3?

to:

10.39.19.81 THG-SLUG3

July 12, 2005, at 04:27 PM by daka --
Changed lines 68-70 from:

Penguin-Breeder.Org - SANE Network Daemon -- http://penguin-breeder.org/sane/saned/

SANE -- http://www.sane-project.org

to:

Penguin-Breeder.Org - SANE Network Daemon
http://penguin-breeder.org/sane/saned/

SANE
http://www.sane-project.org

July 12, 2005, at 04:25 PM by daka --
Added lines 1-70:

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. More information is avaliable on the SANE homepage.

Is my scanner supported?

Lots of scanners are supported, but many are still unsupported. Look at the SANE homepage.
There could also be problems with your scanner on the ARM architecture.

Tested on ARM:
The plustek backend with a Canon LiDE20?

Installing SANE on openslug as a scanner server

SANE has been packaged and is in the openslug monotone repository. Packages should be avaliable 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.

ipkg update && ipkg install saned xinetd

Make shure 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:

sane-find-scanner

If it finds a scanner it will output something like:
found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan?], chip=LM9832?/3) at libusb:001:003

That does mean it finds something looking like a scanner, but we should also check if SANE supports it:

scanimage -L

It should output something like this if your scanner is supported:
device `plustek:libusb:001:003' is a Canon N670U?/N676U?/LiDE20? USB flatbed scanner

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 saned

Normal 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:

usbfs /proc/bus/usb usbfs defaults 0 0

and change that to:

usbfs /proc/bus/usb usbfs defaults,devmode=0666 0 0

After that you should either reboot, or run mount /proc/bus/usb -o remount,devmode=0666
Note that this could be considered a security hole since now every user with local access 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.
For example, if you want the computer 192.168.1.4 to be able to scan, add that to a new line in the file. Adding anentire network requires typing a base IP and a netmask in CIDR notation. For example to add the network 192.168.0.0with the netmask 255.255.0.0 type 192.168.0.0/16, for netmask 255.255.255.0 type 192.168.0.0/24.

One thing that can cause strange problems is saned not finding itself in /etc/hosts. Make shure you have a line in there with your IP and hostname, for example:
10.39.19.81 THG-SLUG3?

Scanning

To scan from another Linux host install sane and add the saned servers IP in /etc/sane.d/net.conf. Then you can useany 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

External links

Penguin-Breeder.Org - SANE Network Daemon -- http://penguin-breeder.org/sane/saned/

SANE -- http://www.sane-project.org

view · edit · print · history · Last edited by Marcelo Vianna.
Based on work by Marcelo Vianna, scant, tman, repvik, and daka.
Originally by daka.
Page last modified on August 03, 2008, at 02:42 AM