How to setup Samsung M2070FW network scanner
Did anyone make Samsung M2070FW All-in-one's scanner work over the network? I'm in my local network in my house. I use Kubuntu 18.04. The printer is connected directly to the router via RJ45 cable, it has static IP. I installed the official drivers from the HP website - I could add a printer over the network but I can't seem to figure out the way I could make scanning work as well. I know that there are solutions involving sane
but I believe there are much simpler methods out there.
Solution 1:
I installed the scanner for Samsung-M2070FW on several devices with Ubuntu 18.04. Of course both devices (printer/scanner and Ubuntu client) had to be in the same network. Here is how I did it:
Download
UnifiedLinuxDriver-1.00.37
from https://www.bchemnet.com/suldr/suld.htmlExtract archive and go to script folder:
cd UnifiedLinuxDriver-1.00.37/uld/
Call install script with
sudo ./install
Answer questions with "Yes"Install Libusb:
sudo apt install libusb-0.1-4
Link Libsane-Library from the installed archive to the right place:
sudo ln -s /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1
-
Change Firewall rules and restart services:
sudo ufw allow 22161 sudo service ufw stop sudo service saned stop sudo service ufw start sudo service saned start```
Start scan program with
simple-scan
If it doesn't work for some reasons, there are debugging options. For Simple Scan, you can call it with debugging on: simple-scan -d
. To see the error messages from Sane, you start it with: sudo export SANE_DEBUG_DLL=255 && scanimage -L > debug.txt
That will dump the debug information in a file called debug.txt
.
Solution 2:
My printer/scanner Samsung M2070 is connected through Wi-Fi, and my Ubuntu is 18.04 (Bionic). I have found a tutorial in french:
http://doc.ubuntu-fr.org//tutoriel/installer_imprimante_samsung
The main point is to edit 2 files, so as to add the following:
- /etc/sane.d/xerox-mfp.conf
# Samsung M2070 Series
usb 0x04e8 0x3469
tcp 192.168.1.35 (the ip address of the printer/scanner)
- /lib/udev/rules.d/60-libsane1.rules
# Samsung M2070
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3469", ENV{libsane_matched}="yes"
Solution 3:
I had a similar problem with the M2070FW on Ubuntu 19.10. The scanner was detected, and scanimage -L
detected the scanner, but when scanning with scanimage --format jpg > test.jpg
I got the error message "Not a JPEG file: starts with 0x00 0x00". I tried a lot of different things, but the solution in the end was to install libusb-0.1-4. This is because the Samsung / HP smfp driver needs libsub-0.1-4 to load (while only libusb-1.0-0 is installed). You see this (only) when running export SANE_DEBUG_DLL=255 && scanimage -L
:
...
[dll] load: searching backend 'smfp' in '/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load '/usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1'
[dll] load: dlopen() failed (libusb-0.1.so.4: cannot open shared object file: No such file or directory)
...
If you can now scan with scanimage
, but not the GUI version simple-scan
, make sure sane is not loading the xerox_mfp driver. You can see this by running simple-scan -d
from the command line. If it says:
DEBUG: scanner.vala:867: sane_open ("xerox_mfp:tcp 192.168.47.30 9400") -> SANE_STATUS_GOOD
Then make sure you edit /etc/sane.d/xerox_mfp.conf
and comment out the line mentioning your printer to prevent sane from loading the xerox_mfp driver for it:
#Samsung M2070FW
#tcp 192.168.47.30 9400
You might need to reboot or uninstall and install the printer driver again. When running simple-scan -d
again now it should say:
DEBUG: scanner.vala:867: sane_open ("smfp:net;192.168.47.30") -> SANE_STATUS_GOOD
and scanning should work.