LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   I fail to use my scanner over the network (https://www.linuxquestions.org/questions/linux-server-73/i-fail-to-use-my-scanner-over-the-network-761212/)

markush 10-11-2009 03:46 PM

I fail to use my scanner over the network
 
Hello together,

I want to use my scanner over the network. I have three Linux-PCs in a network, all running Gentoo. On one of the PCs there is a HP-PSC1410 Printer/Scanner installed.
Printing with Cups via network and from the local machine works well. Also scanning from the local-machine (the scannerserver) using xsane works well.
Now I want to use the scanner from the other machines. With google I found some tutorials about scanning over the network , but the tutorials are somewhat dated.
I've installed xsane, sane-backends and hplip on all machines. On the scannerserver I have installed xinetd and configured it to start saned if a request comes via port 6566/TCP. I created a file etc/xinet.d/saned:
Code:

# /etc/xinetd.d/saned
service sane-port
{
  port        = 6566
  socket_type = stream
  wait        = no
  user        = daemon
  group      = daemon
  server      = /usr/sbin/saned
}

This seems to work. nmap -sV gentoo gives the following output:
Code:

# nmap -sV gentoo
PORT    STATE SERVICE  VERSION
631/tcp  open  ipp      CUPS 1.3.10
6566/tcp open  unknown?

which means that the port for scanning-requests is open. On the clients there is /etc/sane.d/saned.conf configured for scanning over the network. When I run scanimage -L on one of the clients I get
Code:

# scanimage -L
No scanners were identified ......

At the same time, using tcpdump on the scannerserver I can see the request comming to the scannerserver and syslog-ng logs
Code:

# tail -f /var/log/messages
Oct 11 22:08:27 Gentoo saned[4427]: saned from sane-backends 1.0.19
ready
Oct 11 22:08:27 Gentoo saned[4427]: check_host: access by remote host:
192.168.178.61
Oct 11 22:08:27 Gentoo saned[4427]: init: access granted to
root@192.168.178.61
Oct 11 22:08:27 Gentoo saned[4427]: io/hpmud/musb.c 135: unable
get_string_descriptor -1: Operation not permitted
Oct 11 22:08:27 Gentoo saned[4427]: io/hpmud/musb.c 1949: invalid product id
string ret=-1
Oct 11 22:08:27 Gentoo saned[4427]: io/hpmud/musb.c 135: unable
get_string_descriptor -1: Operation not permitted
Oct 11 22:08:27 Gentoo saned[4427]: io/hpmud/musb.c 1954: invalid serial id
string ret=-1
Oct 11 22:08:29 Gentoo saned[4427]: quit: exiting

At this point I need a little help. Has anyone an idea? Thanks in advance

Markus

paulsm4 10-11-2009 03:55 PM

Hi -

Take a look here:
http://forums.amahi.org/viewtopic.php?f=6&t=623
<= You might be able to fix the permissions problem by editing rules in /etc/udev/rules.d

'Hope that helps .. PSM

markush 10-11-2009 05:39 PM

Hello paulsm4,

thank you very much :hattip:.

I've edited the /etc/udev/rules.d/70-hpmud.rules file and changed some permissions. After rebooting (since I don't yet know how to restart udev on my Gentoo-system in a safe manner) it worked. scanimage -L shows the device and I'm able to start xsane from one of the clients and use the scanner.

Markus


All times are GMT -5. The time now is 12:26 PM.