Use a network MFP scanner

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


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   headza1 said

    This only indicates the server part and what about the clients?

  2.   Let's use Linux said

    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.

  3.   Augustine said

    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?

  4.   Mongo said

    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.

  5.   gonza_212 said

    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!

  6.   Leo said

    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

  7.   Boy Mount SonsoTux said

    How to connect from the other machine or how to configure to scan

  8.   Boy Mount SonsoTux said

    How to connect from the other machine or how to configure to scan

  9.   Leo said

    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.

  10.   Let's use Linux said

    Oops… there was a typing error there 🙂
    Corrected!
    Hug! Paul.

  11.   Leo said

    I'm Leo… .. I correct it too.

    regards

  12.   Miguel said

    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

  13.   Laurentius said

    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.

  14.   Peter V said

    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?

  15.   Jordi said

    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

  16.   Rei said

    "/etc/xinetd.d/saned is a directory"