This simple tutorial shows how to install HPLIP, HP Linux printer & scanner drivers, in Zorin OS 16, Elementary OS 6.
HPLIP is an open-source Linux drivers with thousands of HP’s inkjet and laser printers support. HP offers help and support for HPLIP. An automated installer is available to make the installation easy. However, there are so many Linux Distributions that only some of them are officially supported.
For Zorin OS, Elementary OS, and other Ubuntu based systems that are not in support list, this tutorial may help!
Install HPLIP from official repository:
The system repository offers HPLIP package though it’s a little bit old. You should try this package first by opening terminal from start menu and running command:
sudo apt install hplip
Install HPLIP via the auto installer
If your device does not work with the package from system’s own repository, go download the official package from the link below (usually ‘hplip-x.xx.x.run‘):
Then open terminal from start menu, and run command to navigate to the Downloads folder:
cd ~/Downloads
Next add executable permission and run the auto installer to start installing HPLIP:
chmod u+x hplip-*.run && ./hplip-*.run
Follow the terminal screen output, answer questions, and it should install on all supported Linux systems.
Manually install HPLIP dependencies and compile it:
If the .run auto installer does not work for you, here’s how to manually install the dependencies and compile from the source.
1.) Firstly, open terminal from start menu and run command to install the dependencies:
sudo apt install --assume-yes libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg-dev libsnmp-dev libtool-bin libusb-1.0-0-dev wget python3-pil policykit-1 policykit-1-gnome python3-pyqt5 python3-dbus.mainloop.pyqt5 python-gi-dev python3-dev python3-notify2 python3 python3-reportlab libsane libsane-dev sane-utils xsane libavahi-client-dev libavahi-core-dev avahi-utils
2.) Next go to the source folder. While running “hplip.x.xx.x.run” installer, it generates the folders automatically in your Downloads folder. Simply right-click on that folder and choose ‘Open in Terminal‘ menu option.
If somehow you don't see the source folder, re-run the command below to generate it:
cd ~/Downloads && ./hplip-*.run --target ~/Downloads/hplip
When terminal opens and navigates to the directory automatically, run following commands one by one to compile and install it:
./configure --prefix=/usr --enable-qt5 --disable-qt4
make
sudo make install
Uninstall HPLIP:
Also open the source folder in terminal (see 2.) in last step), you can run the uninstall script to remove HPLIP. It works for the driver installed either via the auto installer or manually compiled from source.
sudo ./uninstall.py
That’s all. Enjoy!
Recent Comments