The task associated with how to scan over the network via a usb scanner is not so difficult and complicated as it seems to many users of office equipment at first glance. First you need to select a router and flash it. Find out how to set up a network scanner or mfp with the ability to scan in more detail below.
The content of the article
Installing the firmware
First of all, download the “OpenWrt Backfire 10.03.1-rc5” firmware from any reliable web resource.
- Start the firmware installation using a special restore utility for your router model – usually Firmware Restoration.
- Establish a connection between the router and the computer using any LAN port.
- Put the router into recovery mode. To do this, turn off its power and hold down Restore or Reset (depending on what is written on the button of your device).
- After that, turn on this device and hold the button until the indicator responsible for power starts blinking.
- Do not make any settings related to IP addresses. You can only assign your personal computer an address that will be different from the standard “192.168.1.1”.
- Open the firmware recovery program and first disable the firewall – if you do not do this, the utility will still strongly ask for it.
- Select the previously downloaded firmware file which has a .txt extension. After that, wait a few minutes until the installation comes to its final end and the router appears at the IP address “192.168.1.1”.
First steps to set up
- At the first stage, change the router password in the appropriate tab.
- Get busy setting up access to the World Wide Web and the DNCP server. If you are not satisfied with “192.168.1.1”, then you can safely change it. In the future, you will need to configure the device exactly to this IP address.
- The next step is to configure the packages. Click on “Update package lists” and find through the “Filter” packages nano, sane-backends, sane-frontends, xinetd, kmod-usb-printer, then install them. After completing this process, be sure to reboot the router.
Setting up scanning
- To successfully solve the question of how to scan over the network using a USB scanner, connect to the router via SSH.
- After that, you can either get lucky or not. In the second case, you will have to deal with additional settings.
- Now you have to edit “/etc/sane.d/xerox_mfp.conf”. Add these two lines to this file: “usb 0x04e8 0x341b” and “usb libusb: 001: 004”.
- Save your changes and then check if the configured scanner is detected.
- At this stage, you need to do its local configuration. Add this line “192.168.11.0/24” to the file “nano /etc/sane.d/saned.conf” – in this case, you need to specify the subnet of your router.
- A small change will also have to be made in the nano /etc/xinetd.conf file. To do this, you need to add “service saned” to it, then between the opening and closing brackets “{… ..}, enter this code (without quotes):
Socket_type = stream
server = / usr / sbin / saned
protocol = tcp
user = root
group = root
wait = no
disable = no “
- Finally, run xinetd in a mode called so-called output. debug information. After that, you must make sure that the service is actually running. If this did not happen, then open the file “/ etc / services” and if the line “saned 6566” is missing, be sure to add it.
Install SaneTwain
- Download SaneTwain and install it. To do this, you need to run the “scanimage.exe” file.
- After that, specify the address of your router in the settings window that opens and restart the program.
- You will most likely encounter a server connection error after performing a restart of SaneTwain. To solve it, pay attention to the “syslog” entry, which is located in the web interface. Then add a named entry for the IP address of the device “root @ OpenWrt: ~ # nano / etc / hosts” to “host”.
- Add the line “192.168.11.1 OpenWrt” there, and then restart the xinetd add-in.
- Reboot SaneTwain – it might work as it should this time.
- Open the web interface of your router again and enable xinetd autostart there.
- Copy the second file from the archive with SaneTwain called “sanetwain.ds” and send it to the twain_32 folder located in this path: C: Windows.
Setting up printing
- To configure printing, install the package named “luci-app-p910nd”.
- Then go to the web interface and check the boxes next to Enable and Bidirectional mode. In the Device field, enter / dev / usb / lg0, and in the Port, just put 0.
- Then make sure that the server will start normally after the device is rebooted.
- Now go ahead and set up the printer itself by filling in the fields with the port name and IP address. In addition, you will need to enter the port number as well.
- At the end, you can make a test print to make sure that all the above steps were really done correctly and correctly.
If necessary, you can clear space on the router for other software applications. The idea is to remove any backends that you no longer need. To do this, connect via ssh. You can find backends here: “/ usr / lib / sane /”. The most important thing in this business is not to get carried away with cleaning and thereby not destroy the files that are really necessary for the normal operation of the equipment.
Thus, configuring the scanner via USB so that it can be used over the network is not that difficult. Of course, an ordinary user may come across a number of incomprehensible names for themselves, so it is very important to follow the instructions and move strictly step by step towards solving the problem.