Installing HP Linux Imaging and Printing (HPLIP) is essential for Linux users who want to set up their HP printers and scanners on their computers. This open-source software allows you to easily manage and operate your HP devices seamlessly within a Linux environment. Here is a step-by-step guide on how to install HPLIP on Linux.
- Check your hardware compatibility: Before getting started, ensure that your HP printer or scanner is compatible with HPLIP by visiting the official HPLIP website and checking their supported device list.
- Update your system: Make sure that your Linux system is up-to-date by running the following command:
sudo apt update && sudo apt upgrade
- Install required dependencies: To proceed with the installation, you need to install some necessary dependencies:
sudo apt install python3-dev libcups2-dev libcupsimage2-dev python3-pyqt5 gcc g++ avahi-utils
- Download HPLIP software: Visit the official HPLIP website and download the latest version of the HPLIP software available for your system.
- Extract the downloaded file: Once the file is downloaded, open a terminal window and navigate to the directory where the file was saved. Extract the contents of the .run file:
tar -xvf hplip-*.run
- Run the installer: Now that the files are extracted, run the installer by entering:
- Follow installation prompts: The HPLIP installer will now launch in your terminal window, prompting you with various steps throughout the installation process. Follow these prompts carefully and agree to conditions when necessary.
- Select connection type: When prompted about your connection type, select either ‘USB’ or ‘Network/Ethernet/Wireless’ depending on your device’s setup.
- Complete installation: The installer will compile and install the necessary software packages, configure your printer or scanner, and set up automated services. This process may take a while.
- Reboot your system: Once the installation is complete, reboot your computer to integrate all changes and complete the setup process:
- Test your device: After restarting the computer, test your HP printer or scanner to ensure that it’s functioning correctly.
Congratulations! You have successfully installed HPLIP on your Linux system, enabling you to use your HP printers and scanners efficiently within the Linux environment.