Skip to content

Instantly share code, notes, and snippets.

@Jiab77
Last active November 30, 2021 12:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jiab77/553f6c34af38578b311a8360f6de832c to your computer and use it in GitHub Desktop.
Save Jiab77/553f6c34af38578b311a8360f6de832c to your computer and use it in GitHub Desktop.
Samsung Printer C480W Network / USB Install for Ubuntu based distrib

Samsung Printer C480W Network / USB Install for Ubuntu based distrib

This is a short guide to keep track on how to setup this damn printer 😅

Download and Install the driver

The driver can be downloaded here: https://ftp.hp.com/pub/softlib/software13/printers/SS/SL-M4580FX/uld_V1.00.39_01.17.tar.gz

Uncompress the file and run the install script:

tar xvzf uld_V1.00.39_01.17.tar.gz
cd uld
sudo ./install.sh

Printer

You might already get your printer detected in the printer section of your system settings but you MUST define a PPD file otherwise you will only get weird characters to be printed and some blank pages...

PPD File Selection

Using your default printer setting interface, go into your printer properties or parameters and search for an option to select a PPD file or a driver list. Once done, you might see a constructor list and printer models:

  1. Select SAMSUNG
  2. Select your printer model
  3. Apply / Load file

Search for printing a test page, if you don't have weird characters printed then you should be able to print without any issues.

Printer Network Install

If your printer is not already detected because you're using it over network, comment then I'll try to help you, there is many different way to get it connected and it change from your ubuntu version.

With the Samsung driver, there is binary file named smfpnetdiscovery. This could help to see if your printer is deteced over the network:

cd /opt/smfp-common/printer/bin
./smfpnetdiscovery
network socket://x.x.x.x "Samsung C48x Series" "Samsung C48x Series on x.x.x.x" "MFG:Samsung;CMD:SPLC,PCL6,PS3,URF,FWV,PIC,EXT,SPDS;MDL:C48x Series;CLS:PRINTER;CID:SA_SPLV5_COLOR;MODE:SCN,SPL5,R000102,SCP;"
network ipp://x.x.x.x "Samsung C48x Series" "Samsung C48x Series on x.x.x.x" "MFG:Samsung;CMD:SPLC,PCL6,PS3,URF,FWV,PIC,EXT,SPDS;MDL:C48x Series;CLS:PRINTER;CID:SA_SPLV5_COLOR;MODE:SCN,SPL5,R000102,SCP;"

Scanner

This is the most difficult part but after some Googlefu I've found a solution that worked right away!

You will need to recreate symlinks of SANE drivers that way:

sudo ln -sfvn /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1.0.1
sudo ln -sfvn /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1
sudo ln -sfvn /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so

Install the missing package:

sudo apt install libusb-0.1-4

Now test if your scanner is detected:

scanimage -Lv
device `smfp:net;x.x.x.x' is a Samsung C48x Series on x.x.x.x Scanner

If you have the same result then it should work on applications like Simple Scan or Xsane.

Network mode alternative

If the previous method does not work for you, you might want to try this one:

  1. Edit the file named /etc/sane.d/xerox_mfp.conf
  2. Search the Samsung section (search for your model or create a new one)
  3. Add this line: tcp IP [port]
sudo nano /etc/sane.d/xerox_mfp.conf
tcp x.x.x.x [port]

Save the file and retry the detection, this should display on success:

scanimage -Lv
device `xerox_mfp:tcp x.x.x.x' is a Samsung C48x Series multi-function peripheral

USB mode workaround

I don't use this USB mode but I've found that you may have some trouble and the best workaround would be this one:

echo "SANE_USB_WORKAROUND=1" | sudo tee -a /etc/environment

You can test it before applying system-wide that way:

export "SANE_USB_WORKAROUND=1" scanimage -Lv

If your scanner is detected then you can modify /etc/environment as explained above.

References:

  1. https://help.ubuntu.com/community/ScanningHowTo
  2. https://askubuntu.com/questions/969238/samsung-m2070w-scanner-no-longer-working-in-17-10/1049992#1049992
  3. https://askubuntu.com/questions/969238/samsung-m2070w-scanner-no-longer-working-in-17-10/975485#975485
  4. https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1741977
  5. https://support.hp.com/ca-en/drivers/selfservice/samsung-xpress-sl-c480-color-laser-multifunction-printer-series/16462546/model/16462554

Tests

The tests was done on POP!_OS which is an Ubuntu 18.04 based distrib.

Feel free to comments in case of issues or to improve this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment