The situation would be as follows: we have multiple PCs with Linux, a router and a Multifunction printer and we want share it with all machines so we can scan through the network. |
Server configuration
First, you have to install some packages:
sudo apt-get install xinetd sane xsane libsane sane-utils
We create and edit the file '/etc/xinetd.d/saned':
sudo gedit /etc/xinetd.d/saned
and add the text:
{
socket_type = stream
server = / usr / sbin / saned
protocol=tcp
user=root
group=root
wait = no
disable = no
}
We enter the IPs of the clients that are allowed to scan:
sudo gedit /etc/sane.d/saned.conf
In my case I have only added the following to the file:
192.168.0.1/24
We edit the file '/ etc / default / saned':
sudo gedit / etc / default / saned
And we change the value 'RUN = no' to 'RUN = yes'. We restart the daemon:
sudo /etc/init.d/xinetd restart
sudo service saned restart
Source: Fernando guillen
This only indicates the server part and what about the clients?
No, no ... you have to put 24 after the /
It has nothing to do with the mask but with the number of bits of the IP prefix. In IPv4, it is 24.
For more information, check wikipedia. Search subnet.
Hug! Paul.
Hi guys, I have my local network configured with DHCP, with which the IPS varies ... I would like any of the computers connected to the router to be able to scan ... how do I do it?
To add to all the compus that are connected to the same network, you can use your IP subnet: if the IP of your machine is 192.168.1.1, your subnet is probably 192.168.1.0/24.
Cheers! Paul.
A question: should I install all that on the computer that I have the multifunction printer connected only? on the other pc's something must be installed, or is it not necessary?
Good information, thank you very much.
Regards!
With 192.168.0.1/254 what do you do: tell it that the IP: 192.168.0.1 with the mask 254 is included; or what are included from 1 to 254?
Thanks for the post: I have copied it for my blog because I find it very useful
How to connect from the other machine or how to configure to scan
How to connect from the other machine or how to configure to scan
That's why it surprises me, because the notation would be 24. I don't quite understand 256, I suppose you mean that it is an IP that can be in a range of 256 different IP's.
Oops… there was a typing error there 🙂
Corrected!
Hug! Paul.
I'm Leo… .. I correct it too.
regards
I have a multifunctional printer, it connects to the router via wifi, it already has an IP 192.168.1.3, I should only configure the client part, I think so, but it does not recognize the scanner
What if it is a network configured with windows pc's and a proxy to which we want to add a Linux machine without altering the rest of the machines? Could it be? how would it be?
In my work, 4 PCs are connected to a router with cable and internet connection via proxy, which have access to a brother dcp-8155 multifunction printer.
Could you add one more linux machine to that network to use that multifunction without misconfiguring what is already done?
Greetings.
Good. I have followed the indicated steps and when executing the command sudo service saned restart I get the following message in the terminal:
Failed to restart saned.service: Unit saned.service is masked.
What could be due to?
I have been a neophyte for many years I have been trying to use Linux, start with sues and then with Ubuntu I have always had the same problem with printers and scanners, especially with multifunctions now that I have been able to use Ubuntu on my hp laptop from the beginning and that it Printer works I am unusable with the scanner there is no way I can see it I have read the instructions very carefully I am sorry I am unable to follow the instructions there is no way to find a graphic program that can do this from the sane I am condemned not to be able to use free programs with a free system.
Thank you
"/etc/xinetd.d/saned is a directory"