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
Next revisionBoth sides next revision
docs:guide-user:services:scanner_server:saned [2021/11/09 09:42] f5bjrdocs:guide-user:services:scanner_server:saned [2023/05/05 18:25] – [Start saned without xinetd] 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://www.sane-project.org/|The SANE project]]. 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]].
  
Line 47: Line 47:
  
 [[docs:guide-user:additional-software:opkg]] [[docs:guide-user:additional-software:opkg]]
 +
 +Basis-system
 <code> <code>
 opkg update opkg update
-opkg install sane-daemon sane-frontends sane-xerox_mfp if you have a xerox scanner sane-plustek Canon lide 20 ) +opkg install sane-daemon  
 +</code> 
 + 
 +Scanner  
 +<code> 
 +opkg install sane-xerox_mfp 
 +#if you have a xerox scanner 
 +opkg install sane-plustek 
 +#example for Canon lide 20 (canon use sometimes plustek hardware 
 +</code> 
 + 
 +all availble scanner can be install with  
 +[[packages:pkgdata:sane-backends-all|package: sane-backends-all]] 
 +there are also list of all avaible single scanner package 
 + 
 +Optional 
 +<code> 
 +opkg install sane-frontend
 </code> </code>
  
Line 70: Line 89:
 ==== Use xinetd to start saned ==== ==== Use xinetd to start saned ====
 sane-daemon should have come with a configuration file, enable it in /etc/xinetd.d/sane-port  : sane-daemon should have come with a configuration file, enable it in /etc/xinetd.d/sane-port  :
-<code>sane-port +<code>
 # default: off # default: off
 # description: The saned provides scanner service via the network.  \ # description: The saned provides scanner service via the network.  \
-      Applications like kooka, xsane or xscanimage can use the remote \ +# Applications like kooka, xsane or xscanimage can use the remote \ 
-      scanner. +# scanner. 
 service sane-port service sane-port
 { {
-        socket_type = stream + socket_type = stream 
-        port        = 6566 + port        = 6566 
-        wait        = no + wait        = no 
-        user        = root + user        = saned 
-        group       root + group       scanner 
-        server      = /usr/sbin/saned + server      = /usr/sbin/saned 
-        disable     = no + disable     = no
 } }
 </code> </code>
Line 90: Line 109:
  
 ==== Start saned without xinetd ==== ==== Start saned without xinetd ====
-**TODO:** Tell how to do this without xinetd and enable saned.+saned is already a deamon by default 
 + 
 +you can start saned with rc.local 
 + 
 +<code> 
 +saned -a 
 +</code> 
 + 
 +The -a 
 +flag requests that saned run in standalone daemon mode. In this  mode, saned  will  
 +detach  from  the  console  and  run  in  the  background,  listening  for incoming client 
 +connections; inetd is not required for saned operations in  this  mode If  the  optional 
 +username  is  given  after  -a , saned will drop root privileges and run as this user (and group). 
 + 
 + [[https://manpages.ubuntu.com/manpages/xenial/man8/saned.8.html|saned manpage ]]
  
 ==== Enable saned to be accessible from the LAN ==== ==== Enable saned to be accessible from the LAN ====
Line 101: Line 134:
 **TODO:** Placeholder. Add examples here to open port 6566 if closed. **TODO:** Placeholder. Add examples here to open port 6566 if closed.
  
-==== Zeroconf with avahi-daemon ====+==== Zeroconf ==== 
 +AirSane exposes a sane scanner over AirScan/eSCL. Uses avahi. 
 +See [[https://github.com/cmangla/AirSane-openwrt]]
  
 ===== Access from your computer (client) on the network ===== ===== Access from your computer (client) on the network =====
Line 124: Line 159:
   * If scanimage does not find your scanner, install ''sane-all'' and try again?   * 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   * 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" ===== 
-**TODO:** Just some placeholders here. If not feasible / applicable, delete this paragraph. 
  
  • Last modified: 2023/12/02 13:50
  • by cm