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.

  • Please edit your question to clarify if the printer/scanner is being used wirelessly or attached to your router by USB cable or similar. – chili555 Feb 6 '19 at 22:50
  • @chili555 please find my edited question – Colonder Feb 6 '19 at 22:52
  • I know precisely nothing about scanners. I suspect, based on my zero experience, that sane is required, however. – chili555 Feb 6 '19 at 23:24
  • Scanning typically does NOT work over the network. Some semi-pro or pro MFPs can save the scanned image to a previously configured network share. This is not the same as using a local app to scan from a network connected device. – user880592 Feb 7 '19 at 2:24
  • 1
    My printer/scanner Samsung M2070 is connected through Wi-Fi, and my Ubuntu is 18.04 (Bionic) I have found a tutorial in french: 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 (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" – Dominik Cornice Feb 7 '19 at 15:22

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:

  1. Download UnifiedLinuxDriver-1.00.37 from https://www.bchemnet.com/suldr/suld.html

  2. Extract archive and go to script folder: cd UnifiedLinuxDriver-1.00.37/uld/

  3. Call install script with sudo ./install Answer questions with "Yes"

  4. Install Libusb: sudo apt install libusb-0.1-4

  5. 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

  6. 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```
  7. 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.

  • What does sudo ufw allow 22161 do? It opens some port in the firewall but what does this port do? – Colonder Feb 20 '19 at 17:18
  • I'm not sure :) I analyzed the traffic from the printer. But I googled now and found this: "Scanner can not be found via network: For some Linux distributions, strong firewall is enabled and it may block our installer from opening necessary port for searching network devices. In such case, open snmp port - 22161 manually or disable the firewall temporarily while using the device." source – lifeonmars Feb 22 '19 at 9:27

My printer/scanner Samsung M2070 is connected through Wi-Fi, and my Ubuntu is 18.04 (Bionic). I have found a tutorial in french:


The main point is to edit 2 files, so as to add the following:

  1. /etc/sane.d/xerox-mfp.conf

    # Samsung M2070 Series

    usb 0x04e8 0x3469

    tcp (the ip address of the printer/scanner)

  2. /lib/udev/rules.d/60-libsane1.rules

    # Samsung M2070 ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3469", ENV{libsane_matched}="yes"

  • I have another computer running 14.04 on the same LAN. I had absolutely nothing to do to have it scan with the same printer/scanner. – Dominik Cornice Feb 9 '19 at 15:11

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 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 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;") -> SANE_STATUS_GOOD

and scanning should work.

  • This answer contains more useful info than anything else on the net in the 7 years since. Shame that it is so low. This is what you should look at to make your Samsung MFP work (C480fw here). – emk2203 May 16 '20 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.