View previous topic :: View next topic |
Author |
Message |
trex_dk n00b

Joined: 29 Sep 2005 Posts: 29
|
Posted: Thu Oct 27, 2005 3:19 pm Post subject: Sane problem - trying to scan over network fails |
|
|
Hi!
I am attempting to set up my scanner to work over the network.
The device is a HP PSC 950 Multifunction Printer, I can print over the
network without any problems and can scan when it is attached directly
to my pc - and scan on my server (from commandline).
when the scanner is installed on the server I can ssh into the server
and see the scanner:
root@trex-server:~# scanimage -L
device `hpoj:mlc:usb:PSC_900_Series' is a Hewlett-Packard PSC 900 Series multi-function peripheral
When I try same from client i get:
stefan@root:/home/stefan# scanimage -L
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).
My server ip is: 192.168.0.103
My client ip is 192.168.0.100
All configured to use DHCP.
In /etc/sane.d/saned.conf on the server i have:
localhost
192.168.0.100
And yes, I have double-checked that SANE isn't installed twice.
In net.conf on server and local i have:
localhost
192.168.0.100 (on server) and 192.168.0.103 (on client)
Using xinetd.conf on the server:
defaults
{
only_from = localhost 192.168.0.100
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
service sane-port
{
socket_type = stream
server = /usr/sbin/saned
protocol = tcp
user = saned
group = saned
wait = no
disable = no
}
includedir /etc/xinetd.d
Running this command (on server) to check whether sane is listening or not:
trex-server ~ # /etc/init.d/xinetd restart; netstat -tulp|grep sane
* Stopping xinetd ... [ ok ]
* Starting xinetd ... [ ok ]
tcp 0 0 *:sane-port *:* LISTEN 757/xinetd
In /etc/services.conf on server & local I have:
sane 6566/tcp saned # SANE network scanner daemon
In /etc/sane.d/dll.conf on server and local I have:
hpoj
- don't know if I should add 'net' there too?
Telnet from client (or server) to port server 6566 gives:
root@trex:/home/stefan# telnet 192.168.0.100 6566
Trying 192.168.0.100...
Connected to 192.168.0.100.
Escape character is '^]'.
Connection closed by foreign host.
It seems like the is accepting my telnet request, but still can't connect from client.
Just one last thing. I added 'net' to dll.conf on my server, and when doing a scanimage -L it now says:
device `hpoj:mlc:usb:PSC_900_Series' is a Hewlett-Packard PSC 900 Series multi-function peripheral
device `net:localhost:hpoj:mlc:usb:PSC_900_Series' is a Hewlett-Packard PSC 900 Series multi-function peripheral
Does the net-backend has to be enabled on the server? Or should it be on the client? Or both?
Please help it's much appreciated
Best regards
Stefan |
|
Back to top |
|
 |
Fugee47 Apprentice

Joined: 25 Nov 2004 Posts: 196 Location: Germany
|
Posted: Fri Nov 18, 2005 10:03 am Post subject: |
|
|
hi, i have configured saned so that the whole network has access to the scanner. Maybe my config-files can help you ??
xinetd.conf:
defaults
{
only_from = 192.168.2.0/24
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d/
/etc/xinetd.d/sane:
service sane-port
{
port = 6566
socket_type = stream
server = /usr/sbin/saned
protocol = tcp
user = root
group = scanner
wait = no
}
/etc/services:
sane-port 6566/tcp # SANE Network Scanner Control Port
sane-port 6566/udp
/etc/sane.d/net.conf:
localhost
/etc/sane.d/saned.conf:
192.168.2.2
192.168.2.0/24 |
|
Back to top |
|
 |
Jimmy Jazz Guru


Joined: 04 Oct 2004 Posts: 333 Location: Strasbourg
|
Posted: Sat Dec 24, 2005 1:49 pm Post subject: |
|
|
Hi trek_dk,
read my post at https://forums.gentoo.org/posting.php?mode=quote&p=2979563
It certainly will help you to avoid the need of root
Jj _________________ « La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code: |
+----+----+----+
| |::::| |
| |::::| |
+----+----+----+ |
motto: WeLCRO
WritE Less Code, Repeat Often |
|
Back to top |
|
 |
|