User Tools

Site Tools


inbox:docs:guide-user:services:scanner_server:saned

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
inbox:docs:guide-user:services:scanner_server:saned [2018/09/16 16:09]
wild_penguin [Access from your computer on the network]
inbox:docs:guide-user:services:scanner_server:saned [2018/09/20 19:08] (current)
vgaetera [Configuration: enable saned to be accessible from the LAN]
Line 1: Line 1:
 ====== saned scanner server ====== ====== saned scanner server ======
-This page attempts to document how to get a simple USB scanner working and accessible via network+This page attempts to document how to get a simple USB scanner working and accessible via network ​by using [[http://www.sane-project.org/|The SANE project]].
- +
-What is needed, is saned and a backend that works with your scanner. Sane-backends-all presumably pulls in all backends, which might not be required and takes more space. If you are not sure, what backend you need, xerox_mfp is a good starting point. TODOWhere to find information,​ what backend your scanner might use, besides Google? +
- +
-Sane-frontends is not required, but recommended for testing (contains scanimage)Running '​scanimage ​-L' on your router should find your scanner, if you have the right backend installed. If it is not found, your scanner possibly could not be used via network, either. +
- +
-Xinet makes possible to run saned only when the port is accessed via network. +
 ===== Requirements ===== ===== Requirements =====
-  - [[docs:​guide-user:​storage:​usb-installing]] (or support for the parallel port, if parallel port scanners ​are available?)+  - [[docs:​guide-user:​storage:​usb-installing]] (or support for the parallel port, if you have a parallel port scanners) 
 +  - install the right backend supporting your scanner
   - xinetd installed or alternatively manually starting up saned   - xinetd installed or alternatively manually starting up saned
-  - install support for right backend 
  
 ==== USB port ==== ==== USB port ====
 +Note: I'm having a printer-scanner,​ which is why the "​scanner"​ is recognized as a printer. I'm not actually sure, if this is needed for scanning functionality!
 <​code>​opkg update <​code>​opkg update
 opkg install kmod-usb-printer opkg install kmod-usb-printer
Line 27: Line 21:
 printer.c: usblp1: USB Bidirectional printer ​ 3 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094</​code>​ printer.c: usblp1: USB Bidirectional printer ​ 3 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094</​code>​
  
-Note: I'm having a printer-scanner,​ which is why the "​scanner"​ is recognized as a printer. I'm not actually sure, if this is needed for scanning functionality! 
  
 ==== Parallel port ==== ==== Parallel port ====
-This might not be relevant for scannersbut I'm leaving here since it might ant this article is WIP!+In case you have a parallel port scanneryou will need this:
 <​code>​opkg update <​code>​opkg update
 opkg install kmod-lp opkg install kmod-lp
Line 38: Line 31:
 If there is a device node ''/​dev/​printers/​0''​ then the installation succeeded. If there is a device node ''/​dev/​printers/​0''​ then the installation succeeded.
  
 +**''​TIP:''​** p910nd is reported as working with some noname USB-to-Parport adapter/​converter as well; maybe the same is true for some scanners?
 +==== Install xinetd ====
 +Xinet makes possible to run saned only when the port is accessed via network. Because we're lazy, let's go trough this route. Install xinetd (if not already installed):
 +<​code>​opkg install xinetd</​code>​
 +===== Installation =====
 +==== Command line ====
 +At minimum, we need saned and a working backend. [[http://​www.sane-project.org/​sane-backends.html#​SCANNERS|The SANE project has a partial list of supported scanners]]. If you are not sure, what backend you need, xerox_mfp is a good starting point. ​
  
-**''​TIP:''​** p910nd ​is reported as working with some noname USB-to-Parport adapter/converter ​as well+Installing sane-all will presumably pull in all backends, but usually this is not needed and takes up unnecessary space. Sane-frontends is not strictly needed, but recommended for testing/troubleshooting ​as it includes scanimage. Scanimage will also tell you, what frontend it uses when/if it finds your scanner, so if unsure, one could install -all and remove the unneeded backends afterwards.
  
-===== Installation ===== 
-==== Command line ==== 
-At minimum, we need saned and a working backend. Replace xerox_mfp with "​all"​ if you just want to pull in all, or something more specific if you know better. -frontend is not strictly needed, but recommended for testing. 
 [[docs:​guide-user:​additional-software:​opkg]] [[docs:​guide-user:​additional-software:​opkg]]
 <​code>​ <​code>​
Line 63: Line 60:
 Presumably you could try to brute-force,​ install all backends and then remove them as scanimage will tell you which backend it is using if/when it finds your scanner. Presumably you could try to brute-force,​ install all backends and then remove them as scanimage will tell you which backend it is using if/when it finds your scanner.
 ===== Configuration:​ use xinetd to start saned ===== ===== Configuration:​ use xinetd to start saned =====
-Because we're lazy, let's use xinet.d. First install xinet.d: 
-<​code>​opkg install xinetd</​code>​ 
 sane-daemon should have come with a configuration file, enable it in /​etc/​xinet.d/​sane-port:​ sane-daemon should have come with a configuration file, enable it in /​etc/​xinet.d/​sane-port:​
 <​code>​sane-port ​ <​code>​sane-port ​
Line 83: Line 78:
 </​code>​ </​code>​
 (i.e. change disable = yes to no) (i.e. change disable = yes to no)
- +===== Configuration (alternative):​ start saned without xinetd ===== 
-TODO: Tell how to do this without xinetd and enable saned. +**TODO:** Tell how to do this without xinetd and enable saned.
 ===== Configuration:​ enable saned to be accessible from the LAN ===== ===== Configuration:​ enable saned to be accessible from the LAN =====
 Put your subnet in /​etc/​sane.d/​saned.conf:​ Put your subnet in /​etc/​sane.d/​saned.conf:​
 <​code>​192.168.1.1/​24</​code>​ <​code>​192.168.1.1/​24</​code>​
-TODO: IPV 6 LAN addressing for those who need it? +**TODO:** IPv6 LAN addressing for those who need it? 
- +===== Configuration:​ Firewall rules ===== 
-==== Access from your computer on the network ==== +**TODO:** Placeholder. Add examples here to open port 6566 if closed. 
-You probably want to access the scanner from some client. +===== Access from your computer ​(client) ​on the network ​===== 
-=== Linux ===+You probably want to access the scanner from some client ​software
 +==== Linux ====
 If you are using Linux, enable saned on all your computers you want to access the scanner from, and add your router IP in /​etc/​sane.d/​net.conf on **the client machine** (if you have name resolving working on your LAN, presumably you can also use your router name here). If you are using Linux, enable saned on all your computers you want to access the scanner from, and add your router IP in /​etc/​sane.d/​net.conf on **the client machine** (if you have name resolving working on your LAN, presumably you can also use your router name here).
  
Line 100: Line 95:
 </​code>​ </​code>​
 Your scanner is now ready to use! Your scanner is now ready to use!
-=== OS X === +==== OS X, Windows ant other OSes ==== 
-=== Windows 7 === +The SANE project has [[http://www.sane-project.org/​sane-frontends.html|a list of frontends (applications)]],​ which includes a few choices for Windows and a choice for OS X. How to use these might be out of scope on this Wiki, but feel free to add links here to tips and right documentation. One thing worth mentioning is that at least on Linux, LibreOffice can use sane backend. 
-=== Windows 2000/XP/Vista ===+ 
 +**TODO:** find out if LibreOffice requires a local running saned, or is it usable without one, and us such usable OOTB for a saned running somewhere on the network?
 ===== Troubleshooting ===== ===== Troubleshooting =====
 +  * Run "​scanimage -L" on the router, if it does not find your scanner, you need to solve this first
 +  * If scanimage does not find your scanner, install "​sane-all"​ and try again?
 +  * Run "​scanimage -L" on your client (Linux), it should find the scanner. If it doesn'​t,​ but your router does, the saned on the client is not configured correctly
 ===== "​Ideas"​ ===== ===== "​Ideas"​ =====
 +**TODO:** Just some placeholders here. If not feasible / applicable, delete this paragraph.
 ==== Zeroconf with avahi-daemon ==== ==== Zeroconf with avahi-daemon ====
  
inbox/docs/guide-user/services/scanner_server/saned.1537114170.txt.gz · Last modified: 2018/09/16 16:09 by wild_penguin