Skip to content

Instantly share code, notes, and snippets.

@peterwvj
Last active January 5, 2017 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterwvj/6427495dbcb4d7e4e98bd3e2eed732b9 to your computer and use it in GitHub Desktop.
Save peterwvj/6427495dbcb4d7e4e98bd3e2eed732b9 to your computer and use it in GitHub Desktop.
Printer installation instructions for Linux

Printer installation instructions for Linux

How I installed the HP Color LaserJet CP4525 printer on my Ubuntu Gnome Linux machine at Aarhus University.

First, make sure you have samba installed

sudo apt-get install samba

Also, you may want to add the following three flags to your /etc/samba/smb.conf:

security = domain
workgroup = uni
...
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
...
encrypt passwords = yes

Also, if you ever edit the /etc/samba/smb.conf make sure you restart sambda in order to load the new sambda configuration:

sudo service smbd stop
sudo service smbd start

For some reason I’m getting issues when I try to resolve the host name of print.uni.au.dk. However, if I look up the IP and use that then everything seems fine.

ping print.uni.au.dk

Write down the IP of print.uni.au.dk - you’ll be using it later

Now make sure you can actually access the printer:

smbclient -L \\\\10.88.1.141/5125-328-C-1 -W uni -U <username>

Note that I use the actual IP (10.88.1.141) rather than the host name (print.uni.au.dk). Also, make sure you replace <username> with your actual username (e.g. au219464).

Next, install the printer. I used system-config-printer:

system-config-printer

Now proceed by installing the driver using the wizard:

Choose HP drivers

The exact driver is not there but the HP-Color-LaserJet-cp4520 driver works.

My printer configuration is:

Device URI smb://10.88.1.141/5125-328-c-1
Make and Model: HP Color LaserJet cp4520 Series pcl3, hpcups 3.15.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment