How to install HP printer in RHEL-8?

Connectwithaastha
3 min readApr 5, 2022

Recently I bought a new HP ink tank wireless 416 and I had no clue that installing drivers is going to be complex task in linux OS. So far I had been using office printer, where you need not worry about installing the drivers, just need to do minimal setup to configure printer in your laptop as per instructions shared by IT team. But you don’t have to worry as I have figured out the steps and sharing with you here. Let’s look into the steps to install HP ink tank wireless 416 in RHEL-8.5. I am going to consolidate all the useful links in this article which will help you in installing the printer and troubleshooting the issues if faced any.

Step -1 Download the driver from HP developer portal

https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

There are two ways to do it.

(i). Go to the link above and select your distros and the version. For my case I selected Red hat Enterprise Linux and version -8. It will start downloading the rpm. Once you have the rpm install it using command

$ rpm -ivh <hplip-xxx.rmp>

(ii). There is an option to download the HPLIP tar package in link below. I would recommend to go with this option.

Step -2 Install the driver and its dependencies

Untar the package and it will create a directory named hplip-3.22.2. Run the hplip-install script.

hplip-3.22.2 $ ./hplip-install

In below link follow in the instructions from Step -3

https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index

Make sure you install all the required packages. In case you are unable to install during running the script install them independently and then again run hplip-install script from the beginning.

For example -following are some dependencies which are required and can be installed independently.

$ sudo yum install net-snmp* sane* libavahi* libusb* python3-pil* cups* libcanberra-gtk*

Step-3 Troubleshooting the issues

(i). Ensure that your .ppd file has proper permissions set. Else run below command to set right permissions

$ sudo chmod ugo+r /etc/cups/ppd/Ink-Tank-Wireless-410.ppd

(ii). Ensure that cups service is running.

$ sudo service cups status

If not start the service

$ sudo service cups start

(iii). Ensure that SE linux is disabled. For me this was the culprit. The entire printer was setup but the print job was stuck in the queue and printer was not printing. After two days of troubleshooting I figured out this

$ sudo getenforce #run this command to check SE linux status. If it is enforcing, set to permissive before printing.

$ sudo setenforce 0 # run this command to set the SE linux to premissive before printing.

Below is how the HP device manager looks like post successful installation.

If you are facing any issues you can raise a bug in below launchpad site, they provide quick response (within 24 hours). For my issue they respond asking for details but I had already figured out the solution in the meantime. You would need to create an account to raise a bug.

https://launchpad.net/hplip

Hope this article helps you in setting up your HP home printer in RHEL-8.x OS or any other linux distros as well.

--

--