Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:docs:guide-user:services:scanner_server:saned [2018/09/20 19:08] – [Configuration: enable saned to be accessible from the LAN] vgaetera | docs:guide-user:services:scanner_server:saned [2023/05/05 18:26] – [Command line] raptorsds | ||
|---|---|---|---|
| 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 by using [[http:// | This page attempts to document how to get a simple USB scanner working and accessible via network by using [[http:// | ||
| + | |||
| ===== Requirements ===== | ===== Requirements ===== | ||
| - [[docs: | - [[docs: | ||
| Line 8: | Line 9: | ||
| ==== USB port ==== | ==== USB port ==== | ||
| Note: I'm having a printer-scanner, | Note: I'm having a printer-scanner, | ||
| - | < | + | < |
| + | opkg update | ||
| opkg install kmod-usb-printer | opkg install kmod-usb-printer | ||
| </ | </ | ||
| Line 19: | Line 21: | ||
| usb.c: USB disconnect on ice 01:02.0-1 address 2 | usb.c: USB disconnect on ice 01:02.0-1 address 2 | ||
| hub.c: new USB ice 01:02.0-1, assigned address 3 | hub.c: new USB ice 01:02.0-1, assigned address 3 | ||
| - | printer.c: usblp1: USB Bidirectional printer | + | printer.c: usblp1: USB Bidirectional printer |
| + | </ | ||
| ==== Parallel port ==== | ==== Parallel port ==== | ||
| Line 32: | Line 34: | ||
| **'' | **'' | ||
| + | |||
| ==== Install xinetd ==== | ==== 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): | 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): | ||
| < | < | ||
| + | |||
| + | |||
| ===== Installation ===== | ===== Installation ===== | ||
| ==== Command line ==== | ==== Command line ==== | ||
| Line 42: | Line 47: | ||
| [[docs: | [[docs: | ||
| + | |||
| + | Basis-system | ||
| < | < | ||
| opkg update | opkg update | ||
| - | opkg install sane-daemon sane-frontends | + | opkg install sane-daemon |
| + | </ | ||
| + | |||
| + | Scanner | ||
| + | < | ||
| + | opkg install | ||
| + | #if you have a xerox scanner | ||
| + | opkg install | ||
| + | #example for Canon lide 20 (canon use sometimes plustek hardware) | ||
| + | </ | ||
| + | |||
| + | all availble scanner can be install with | ||
| + | < | ||
| + | </ | ||
| + | [[packages: | ||
| + | there are also list of all avaible single scanner package | ||
| + | |||
| + | Optional | ||
| + | < | ||
| + | opkg install sane-frontend | ||
| </ | </ | ||
| ===== (Optional): testing the scanner ===== | ===== (Optional): testing the scanner ===== | ||
| - | Run this on the router to see if the scanner is found and working: | + | Run this on the router to see if the scanner is found and working : |
| < | < | ||
| If you get this: | If you get this: | ||
| Line 56: | Line 82: | ||
| which came with this software (README, FAQ, manpages).</ | which came with this software (README, FAQ, manpages).</ | ||
| You most probably do not have the right backend installed. Please try again after installing the right backend. You should get something similar to this: | You most probably do not have the right backend installed. Please try again after installing the right backend. You should get something similar to this: | ||
| - | < | + | |
| - | </ | + | < |
| Presumably you could try to brute-force, | Presumably you could try to brute-force, | ||
| - | ===== Configuration: use xinetd to start saned ===== | + | |
| - | sane-daemon should have come with a configuration file, enable it in /etc/xinet.d/ | + | |
| - | < | + | ===== Configuration |
| + | ==== Use xinetd to start saned ==== | ||
| + | sane-daemon should have come with a configuration file, enable it in /etc/xinetd.d/ | ||
| + | < | ||
| # default: off | # default: off | ||
| # description: | # description: | ||
| - | # | + | # |
| - | # | + | # |
| service sane-port | service sane-port | ||
| { | { | ||
| - | | + | socket_type = stream |
| - | port = 6566 | + | port = 6566 |
| - | wait = no | + | wait = no |
| - | user = root | + | user = saned |
| - | group | + | group |
| - | server | + | server |
| - | disable | + | disable |
| } | } | ||
| </ | </ | ||
| + | |||
| (i.e. change disable = yes to no) | (i.e. change disable = yes to no) | ||
| - | ===== Configuration (alternative): | + | |
| - | **TODO:** Tell how to do this without xinetd | + | ==== Start saned without xinetd ==== |
| - | ===== Configuration: | + | saned is already a deamon by default |
| - | Put your subnet in / | + | |
| + | you can start saned with rc.local | ||
| + | |||
| + | < | ||
| + | saned -a | ||
| + | </ | ||
| + | |||
| + | The -a | ||
| + | flag requests that saned run in standalone daemon mode. In this mode, saned will | ||
| + | detach | ||
| + | connections; | ||
| + | username | ||
| + | |||
| + | | ||
| + | |||
| + | ==== Enable | ||
| + | Put your subnet in '' | ||
| < | < | ||
| + | |||
| **TODO:** IPv6 LAN addressing for those who need it? | **TODO:** IPv6 LAN addressing for those who need it? | ||
| - | ===== Configuration: | + | |
| + | ==== Firewall rules ==== | ||
| **TODO:** Placeholder. Add examples here to open port 6566 if closed. | **TODO:** Placeholder. Add examples here to open port 6566 if closed. | ||
| + | |||
| + | ==== Zeroconf ==== | ||
| + | AirSane exposes a sane scanner over AirScan/ | ||
| + | See [[https:// | ||
| + | |||
| ===== Access from your computer (client) on the network ===== | ===== Access from your computer (client) on the network ===== | ||
| You probably want to access the scanner from some client software. | You probably want to access the scanner from some client software. | ||
| + | |||
| ==== Linux ==== | ==== 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 / | + | If you are using Linux, enable saned on all your computers you want to access the scanner from, and add your router IP in '' |
| + | |||
| + | After adding the IP address, running '' | ||
| + | |||
| + | < | ||
| - | After adding the IP address, running ' | ||
| - | < | ||
| - | </ | ||
| Your scanner is now ready to use! | Your scanner is now ready to use! | ||
| - | ==== OS X, Windows | + | |
| + | ==== OS X, Windows | ||
| The SANE project has [[http:// | The SANE project has [[http:// | ||
| **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? | **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" | + | * Run '' |
| - | * If scanimage does not find your scanner, install | + | * If scanimage does not find your scanner, install |
| - | * Run "scanimage -L" | + | * Run '' |
| - | ===== " | + | |
| - | **TODO:** Just some placeholders here. If not feasible / applicable, delete this paragraph. | + | |
| - | ==== Zeroconf with avahi-daemon ==== | + | |