I followed the instructions step by step to the letter but surprise surprise it didn’t work, when I run xsane on the client PC I just get “No devices found”
Everything seemed to go as the tutorial said it should except for an error message I get on the final instruction on the server side which is to instruct saned to automatically start on boot.
I’m not sure if this is the sole cause of the problem or what the error means But I’ve pasted it below in case anyone can shed any light on it
[
graeme@Linux3 ~ $ sudo gedit /etc/default/saned
[sudo] password for graeme:
graeme@Linux3 ~ $ sudo gedit /etc/sane.d/saned.conf
graeme@Linux3 ~ $ sudo service saned restart
Restarting SANE network scanner server: saned.
graeme@Linux3 ~ $ sudo update-rc.d saned defaults
update-rc.d: warning: saned stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1)
System start/stop links for /etc/init.d/saned already exist.
graeme@Linux3 ~ $ $ sudo service saned status
$: command not found
graeme@Linux3 ~ $
EDIT
please ignore the last command I entered (sudo service sane status) I pasted it wrong into the terminal I’ve since checked and saned service is running
OK, the init script edit is just about autostarting at bootup … but I’m fairly certain there’s a saned init script present anyway (and your output supports this).
Are you sure you set the access list to your subnet?
You could check (from client machine) what ports are open (substitute the address with the server ip address)
You may have to install nmap
sudo nmap -sS -A 192.168.0.15
Look for something relating to sane in the port range set in /etc/sane.d/saned.conf
It would be in the following format:
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 5.3p1 Debian 3ubuntu7 (protocol 2.0)
For security reasons please do not replicate the results here.
/etc/services must also be properly configured to start
the saned daemon as documented in saned(8), services(4)
and inetd.conf(4) (or xinetd.conf(5)).
graeme@Linux3 ~ $ sudo nmap -sS -A 192.168.2.3
Starting Nmap 5.21 ( http://nmap.org ) at 2013-04-24 22:16 BST
Nmap scan report for 192.168.2.3
Host is up (0.000035s latency).
Not shown: 995 closed ports
PORT STATE SERVICE VERSION
139/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
445/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
631/tcp open ipp CUPS 1.5
6566/tcp open unknown
10000/tcp open http MiniServ 1.610 (Webmin httpd)
|_html-title: Site doesn't have a title (text/html; Charset=iso-8859-1).
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=5.21%D=4/24%OT=139%CT=1%CU=33164%PV=Y%DS=0%DC=L%G=Y%TM=51784BDB%P
OS:=i686-pc-linux-gnu)SEQ(SP=104%GCD=1%ISR=10A%TI=Z%CI=Z%II=I%TS=8)SEQ(SP=1
OS:04%GCD=2%ISR=10A%TI=Z%CI=Z%II=I%TS=8)OPS(O1=M400CST11NW4%O2=M400CST11NW4
OS:%O3=M400CNNT11NW4%O4=M400CST11NW4%O5=M400CST11NW4%O6=M400CST11)WIN(W1=80
OS:00%W2=8000%W3=8000%W4=8000%W5=8000%W6=8000)ECN(R=Y%DF=Y%T=40%W=8018%O=M4
OS:00CNNSNW4%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=Y%D
OS:F=Y%T=40%W=8000%S=O%A=S+%F=AS%O=M400CST11NW4%RD=0%Q=)T4(R=Y%DF=Y%T=40%W=
OS:0%S=A%A=Z%F=R%O=%RD=0%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T
OS:6(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+
OS:%F=AR%O=%RD=0%Q=)U1(R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK
OS:=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S)
Network Distance: 0 hops
Host script results:
|_nbstat: NetBIOS name: LINUX3, NetBIOS user: <unknown>, NetBIOS MAC: <unknown>
|_smbv2-enabled: Server doesn't support SMBv2 protocol
| smb-os-discovery:
| OS: Unix (Samba 3.6.3)
| Name: WORKGROUP\Unknown
|_ System time: 2013-04-24 22:17:15 UTC+1
OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 23.50 seconds
graeme@Linux3 ~ $
It appears that the scanner ports are not visible to the network. Is your firewall blocking it?
Also the range is conflicting with the Webmin port too.
Here is a better tutorial which also suggest to modify inetd or xinetd to get it up and running: http://richardappleby.wordpress.com/2012/07/28/building-a-scan-server-on-ubuntu-server-12-04/
Or you could try adding this line to /etc/services file first:
First, remove the 2 lines in red .. they shouldn't be on the server .. though I doubt if they'd hurt.
Ok done that (client still won’t connect)
I added that line myself as per the troubleshooter on the tutorial, it suggested that xsane would load twice when I typed xsane from the terminal but I only get one instance so I’m not sure what that’s telling me
I would suggest to comment out the port range in saned.conf as port 6566/tcp is already allocated to it:
Do you mean like this ?
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
data_portrange = 10000 - 10100
Access list
192.168.2.0/24
A list of host names, IP addresses or IP subnets (CIDR notation) that
are permitted to use local SANE devices. IPv6 addresses must be enclosed
in brackets, and should always be specified in their compressed form.