How To install and configure HP printer in Arch Linux

I dipped my feet in the warm waters of Arch some four months ago and with every passing month I am loving it more. Arch Linux  is a great distribution, and the gem of this operating system is its community and the comprehensive wiki it has created. If you have not given Arch a try, you should. It may look intimidating from a distance, but once you make up your mind to migrate to Arch you won’t go back to your previous OS.

I was not using my printer lately and had to put it to use when I needed some print-outs and  scans for some paperwork. I have the HP Photosmart Prem C410 and after looking around for a while I was able to get it to work and there is nothing better than documenting it. So, if you have a similar HP printer and you want to make it work, this article may help you.

My use-case

I am running 64bit Arch with KDE and want to connect the printer over the wifi network. Before installing any packages, I added the user (in my case it was “muktware”) to certain groups which will be needed for printing and scanning to work well. I have yaourt installed to compile packages easily. Make sure that the printer is on and connected to the local network.

gpasswd -a [username] lp
gpasswd -a [username] sys
gpasswd -a [username] scanner

Then go ahead and install the HP Printer Manager

pacman -S hplip

Now it was time to install Cups libraries

yaourt libcups
pacman -S cups cups-filters ghostscript gsfonts

Enable cups so it starts with system boot

systemctl enable cups

Start CUPS

systemctl start cups

Open the CUPS interface from this URL (http://localhost:631/) and log in as root. Here you can add and configure your printer.

Now when I run HP Printer Manager, it was able to detect and configure the printer.

I also need to configure the built-in scanner, I installed:

yaourt scan

Edited this file and uncomment “hpaio”

nano /etc/sane.d/dll.conf

Now I checked if the scanner is being detected

scanimage -L
[muktware@localhost ~]$ scanimage -L
device `hpaio:/net/Photosmart_Prem_C410_series?ip=192.168.0.22' is a Hewlett-Packard Photosmart_Prem_C410_series all-in-one
device `v4l:/dev/video0' is a Noname UVC Camera (046d:0805) virtual device

Yes!

You can install any desired app for scanning. I installed ‘Simple Scan’ and went ahead to scan and print my documents.

Sources: Arch Wiki HP Photosmart & CUPS