[sane-devel] Inetd is not a friend of saneds.

Johan Andrén letalis at athela.com
Sat Mar 2 15:32:31 GMT 2002


Hi,
I have been trying to use the latest saned trough inetd
on a Slackware 7.1 box. And I have ran across some serious
problems, if i run "saned -d" it works just fine both to find 
and use the scanner, but as soon as i try to use it trough inetd
it refuses.

I have followed the saned guide on the website, this is 
what i have added:

/etc/services:
sane            6566/tcp        saned   # scanning service

/etc/inetd.conf:
sane    stream  tcp     nowait  root    /usr/sbin/tcpd saned
(i have also tried without tcpd)

/etc/sane.d/net.conf:
localhost

/etc/sane.d/saned.conf:
+
(when i tried without tcpd i used localhost and the IP of my workstation)

/etc/hosts.allow:
saned : 10.30.57.0/255.255.255.0
(to allow access only from clients on my own net)

When i try to run "SANE_DEBUG_NET=128 scanimage -L"
from my workstation (or from the server itself) i get:
"[sanei_debug] Setting debug level of net to 128.
[net] sane_init: authorize = 0x8049260, version_code = 0xbffff548
[net] sane_init: SANE net backend version 1.0.6 from sane-backends-1.0.7
[net] sane_init: Client has little endian byte order
[net] sane_init: determining sane service port
[net] sane_init: found port 6566
[net] sane_init: searching for config file
[net] sane_init: trying to add 10.30.57.1
[net] add_device: adding backend 10.30.57.1
[net] add_device: backend 10.30.57.1 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: done
[net] sane_get_devices: local_only = 0
[net] connect_dev: trying to connect to 10.30.57.1
[net] connect_dev: connection succeeded
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=(null), local version=1.0.3)
[net] connect_dev: argument marshalling error (Connection reset by peer)
[net] connect_dev: closing connection to 10.30.57.1
[net] sane_get_devices: ignoring failure to connect to 10.30.57.1
[net] sane_get_devices: finished (0 devices)

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[net] sane_exit: exiting
[net] sane_exit: closing dev 0x805e5b8, ctl=-1
[net] sane_exit: finished."


Does anybody have a clue?

Thanks for a great app anyways.

/Johan




More information about the sane-devel mailing list