[Networking] Sharing a Unix* scanner
Here it is, you have purchased a wonderful scanner and you have got it to work under Linux. (This is not the purpose here: (
You can also post (s) in your Windows network.
You know that it is possible to share the scanner called through the network daemon saned and a Windows client?
Note: This configuration has been tested with Debian Sarge and Windows XP Pro.
I also tested two years ago with Mandrake 9. and Windows 98
johand @ horus: ~ $ sane dpkg-l * | grep ii
ii sane 1.0.12-2 scanner graphical frontends
ii sane-utils 1.0.14-7 API library for scanners - utilities
Step 1
Configure saned
Edit /etc/sane.d/saned.users (the location of these files may vary depending on your distribution)
johand @ horus: /etc/sane.d $ cat saned.users
user1: password: Mustek
user2: autremotdepasse: unautre_scanner
Edit saned.conf to include IP / network with local access to the daemon (see file provided at installation)
Add an entry for the service saned (as here with inetd super daemon)
johand @ horus: ~ $ grep saned/etc/services
saned sane 6566/tcp # SANE network scanner daemon
johand @ horus: ~ $ grep saned/etc/inetd.conf
sane stream tcp nowait saned.saned/usr/sbin/saned saned
I also created a group saned and I changed the rights of the SCSI device:
johand @ horus: ~ $ sane-find-scanner
found SCSI scanner "SCANNER 2.02" at /dev/sg4
johand @ horus: ~ $ ls-l /dev/sg*|grep saned
crw-rw ---- 1 root saned 21, 4 Aug 20 2003 /dev/sg4
Adding users to the group authorizes saned:
johand @ horus: ~ $ grep sane/etc/group
saned: x: 104: user1, user2
Restart inetd
horus: ~ # /etc/init.d/inetd restart
Restarting internet SuperServer: inetd.
(It is clear that the previous steps requièrenet rights uid = 0 root, toor ,...)
Step 2-Windows client
Retrieve the customer on SaneTwain
http://sanetwain.ozuzo.net/
http://sanetwain.ozuzo.net/sanetwain126.zip
Explode the archive into the directory of your choice.
Read the documentation;)
Place in notemment SaneTwain.ds
% WINDIR%\twain_32
Launch Scanimage.exe
and ... roll youth.
The pilot sanetwain usually appears as a source Twain.
Good luck to all.
Note that there are other customers Twain for Windows.
Linux kernel 2.6
Under my Debian, I added the group "scanner", there is no problem accessing the device:
johand @ horus: ~ $ ls-l /dev/sg *
crw-rw ---- 1 root scanner 21, 0 2005-06-21 10:29 /dev/sg0
johand @ horus: ~ $ sane-find-scanner | grep found
found SCSI scanner "SCANNER 2.02" at /dev/sg0