{"id":8876,"date":"2023-07-24T18:22:23","date_gmt":"2023-07-24T18:22:23","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=8876"},"modified":"2023-07-24T18:22:23","modified_gmt":"2023-07-24T18:22:23","slug":"how-to-install-networked-hp-printer-and-scanner-on-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/07\/24\/how-to-install-networked-hp-printer-and-scanner-on-ubuntu-linux\/","title":{"rendered":"How to install networked HP printer and scanner on Ubuntu Linux"},"content":{"rendered":"\n<p>Installing networked HP printer and scanner on Ubuntu Linux<br>You can download software by visiting this page . However, Ubuntu Linux includes software in its repository too. So we are going to use the official Ubuntu repo.<\/p>\n\n\n\n<p>Step 1 \u2013 Update Ubuntu Linux<br>Simply run apt command:<br>sudo apt update<br>sudo apt upgrade<\/p>\n\n\n\n<p>Step 2 \u2013 Search for HPLIP software<br>Search for HPLIP, run the following apt-cache command or apt-get command:<br>apt-cache search hplip<\/p>\n\n\n\n<p>Here is what I see:<\/p>\n\n\n\n<p>hplip &#8211; HP Linux Printing and Imaging System (HPLIP)<br>hplip-data &#8211; HP Linux Printing and Imaging &#8211; data files<br>hplip-doc &#8211; HP Linux Printing and Imaging &#8211; documentation<br>libhpmud-dev &#8211; HP Multi-Point Transport Driver (hpmud) development libraries<br>libhpmud0 &#8211; HP Multi-Point Transport Driver (hpmud) run-time libraries<br>libsane-hpaio &#8211; HP SANE backend for multi-function peripherals<br>openprinting-ppds &#8211; OpenPrinting printer support &#8211; PostScript PPD files<br>printer-driver-hpcups &#8211; HP Linux Printing and Imaging &#8211; CUPS Raster driver (hpcups)<br>printer-driver-hpijs &#8211; HP Linux Printing and Imaging &#8211; printer driver (hpijs)<br>printer-driver-pxljr &#8211; printer driver for HP Color LaserJet 35xx\/36xx<br>hpijs-ppds &#8211; HP Linux Printing and Imaging &#8211; HPIJS PPD files<br>hplip-gui &#8211; HP Linux Printing and Imaging &#8211; GUI utilities (Qt-based)<br>Why use hp-lip over the inbuilt printer and scanner option?<br>If you\u2019re using a newer version of Ubuntu Linux, it may come with an automatic HP printer or scanner driver. However, this driver may not work properly with older or newer HP models. That\u2019s where hp-lip comes in handy. By installing this open-source software, you\u2019ll have access to more options and settings like duplex printing, firmware updates, and checking ink levels. It\u2019s definitely worth your time to install hp-lip for a better printing and scanning experience.<\/p>\n\n\n\n<p>Step 3 \u2013 Installing HPLIP on Ubuntu Linux 16.04\/18.04\/20.04\/22.04 LTS or above<br>We are going to install hplip-gui and hplip using the apt command:<br>sudo apt install hplip hplip-gui<\/p>\n\n\n\n<p>A note about installing latest version of hplip<br>Ubuntu or Debian versions are always behind the official hplip version. You maay need the latest version of hplip, if you have the latest brand new HP printer or, in some cases, an older printer to get all features and drivers support. You can download the latest version by visiting the following URL:<\/p>\n\n\n\n<p>https:\/\/developers.hp.com\/hp-linux-imaging-and-printing<br>Click on the download HPLIP. Choose your Linux distro version. Also, download Digital Certificate from the same site. Here are two files I downloaded:<br>ls -l hplip-*<\/p>\n\n\n\n<p>Outputs indicating that I\u2019ve downloaded hplip version 3.23.3:<\/p>\n\n\n\n<p>-rw-rw-r&#8211; 1 vivek vivek 29456243 May 13 22:24 hplip-3.23.3.run<br>-rw-rw-r&#8211; 1 vivek vivek 195 May 13 22:25 hplip-3.23.3.run.asc<br>Next, import GPG key for verification:<br>\/usr\/bin\/gpg &#8211;keyserver pgp.mit.edu &#8211;recv-keys 0xA59047B9<\/p>\n\n\n\n<p>gpg: key 73D770CDA59047B9: public key &#8220;HPLIP (HP Linux Imaging and Printing) <a href=\"mailto:hplip@hp.com\">hplip@hp.com<\/a>&#8221; imported<br>gpg: Total number processed: 1<br>gpg: imported: 1<br>Then verify it:<br>\/usr\/bin\/gpg &#8211;verify hplip-3.23.3.run.asc hplip-3.23.3.run<\/p>\n\n\n\n<p>Outputs (look for \u201cGood signature\u201d line and you can ignore WARNING as you have not trusted this key):<\/p>\n\n\n\n<p>gpg: Signature made Thursday 27 October 2022 06:47:35 PM IST<br>gpg: using DSA key 4ABA2F66DBD5A95894910E0673D770CDA59047B9<br>gpg: Good signature from &#8220;HPLIP (HP Linux Imaging and Printing) <a href=\"mailto:hplip@hp.com\">hplip@hp.com<\/a>&#8221; [unknown]<br>gpg: WARNING: This key is not certified with a trusted signature!<br>gpg: There is no indication that the signature belongs to the owner.<br>Primary key fingerprint: 4ABA 2F66 DBD5 A958 9491 0E06 73D7 70CD A590 47B9<br>Finally, install it:<br>sudo apt remove hplip hplip-gui<br>sudo apt &#8211;purge autoremove<br>chmod +x -v hplip-3.23.3.run<br>mode of &#8216;hplip-3.23.3.run&#8217; changed from 0664 (rw-rw-r&#8211;) to 0775 (rwxrwxr-x)<br>.\/hplip-3.23.3.run<\/p>\n\n\n\n<p>Step 4 \u2013 Configure HP printer on Ubuntu Linux<br>You need to run hp-setup command which set up HPLIP printers and faxes in the CUPS spooler. Tries to automatically determine the correct PPD file to use. Allows the printing of a test page. Performs basic fax parameters set up too. However, first turn on the printer. Set up HP printer in Ubuntu Linux using GUI, run.<br>hp-setup<\/p>\n\n\n\n<p>If you have a USB based HP printer, try:<br>hp-setup -b usb<\/p>\n\n\n\n<p>For example, my printer is networked and it has IP address 192.168.2.250, so I run:<br>hp-setup 192.168.2.250<\/p>\n\n\n\n<p>One can use FQDN too:<br>hp-setup hp0.sweet.home<\/p>\n\n\n\n<p>Ubuntu Linux Set up HP using GUI and IP address<br>Next, I will set description, name, FAX number (if any) and other information for my HP printer. Finally, click on the \u201cAdd Printer\u201d button:<br>Ubuntu Linux HP Device Manager<br>If you get permission error, then make sure your username is part of the lpadmin group. To add user to a group, run the following usermod command in your terminal session:<br>sudo usermod -aG lpadmin {Your_Username_Here}<br>sudo usermod -aG lpadmin vivek<\/p>\n\n\n\n<p>Log out and log in again or simply reboot the box. Now you can run the hp-setup command again.<\/p>\n\n\n\n<p>How do I control my HP printer with \u201cHP Device Manager\u201d?<br>The HP Device Manager (aka \u201cToolbox\u201d) for HPLIP supported devices such as printers and scanners. It provides access to status of printer, tools, ink\/supplies levels and more. Simply type the following command:<br>hp-toolbox<\/p>\n\n\n\n<p>How to control HP printer from GUI on Ubuntu Linux<br>Installing HP Proprietary plugin<br>You may need to run the following command to install HP Proprietary plugin in-order to work with scanner. Here is how to install it:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Run in graphical UI mode:<\/h1>\n\n\n\n<p>hp-plugin -g<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Run in interactive text UI mode:<\/h1>\n\n\n\n<p>hp-plugin -i<\/p>\n\n\n\n<p>If you get an error resolving keyserver.ubuntu.com by gpg, add the following entry to \/etc\/hosts and re-run the hp-plugin again:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">needed for hp-plug mapped to keyserver.ubuntu.com<\/h1>\n\n\n\n<p>162.213.33.9 pgp.mit.edu<br>Try again:<br>hp-plugin -i<br>How do I scan images on Linux?<br>Try using Document Scanner (old name Simple Scan). It is a document scanning application for GNOME desktop. It allows you to capture images using image scanners that have suitable SANE drivers installed. For example flatbed scanners:<br>Simple scan running on Fedora desktop<br>Click on the Scan button to start scanning.<\/p>\n\n\n\n<p>Using HP toolbox to scan<br>Open the HP toolbox (HP Device Manager) installed by the hp-lip. Choose your multi-functional all-in-one device &gt; Click on Action tab &gt; Choose Scan App:<br>HP DEVICE MANAGER (HP-TOOLBOX)<br>Click to enlarge<\/p>\n\n\n\n<p>You will get the SANE scanner app opened on your Ubuntu Linux as follows:<br>HP SCANNER with SANE<br>Now all you have to do is set a scanning option like color or gray scan, file name, and other settings per your needs. Finally, click on the Scan button.<br>Troubleshooting tips<br>Is your scanner or printer not detected? Are you facing problems with the hp-setup command? Turn on debug mode that tells you about missing files or libraries. For example:<br>hp-setup -g<br>hp-setup -g -b usb<br>hp-setup -g 192.168.2.250<\/p>\n\n\n\n<p>Here is how to log errors into a text file:<br>hp-setup -g &amp;&gt; ~\/error.log<\/p>\n\n\n\n<p>Then read it using a text editor or cat command or more command:<br>more ~\/error.log<\/p>\n\n\n\n<p>How do I find supported USB, parallel, and network attached printers?<br>Use the printer discovery command-line utility. The syntax is as follows:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Linux all devices on the network:<\/h1>\n\n\n\n<p>hp-probe -bnet<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Search all devices on USB that support scanning:<\/h1>\n\n\n\n<p>hp-probe -busb -escan<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Search and list all devices that have queues installed in CUPS:<\/h1>\n\n\n\n<p>hp-probe -bcups<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Try to search all devices on the USB bus:<\/h1>\n\n\n\n<p>hp-probe<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing networked HP printer and scanner on Ubuntu LinuxYou can download software by visiting this page . However, Ubuntu Linux includes software in its repository too. So we are going to use the official Ubuntu repo. Step 1 \u2013 Update Ubuntu LinuxSimply run apt command:sudo apt updatesudo apt upgrade Step 2 \u2013 Search for HPLIP &#8230; <a title=\"How to install networked HP printer and scanner on Ubuntu Linux\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2023\/07\/24\/how-to-install-networked-hp-printer-and-scanner-on-ubuntu-linux\/\" aria-label=\"Read more about How to install networked HP printer and scanner on Ubuntu Linux\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[151],"tags":[],"class_list":["post-8876","post","type-post","status-publish","format-standard","hentry","category-printers"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=8876"}],"version-history":[{"count":1,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8876\/revisions"}],"predecessor-version":[{"id":8877,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8876\/revisions\/8877"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=8876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=8876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=8876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}