How to install networked HP printer and scanner on Ubuntu Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-install-networked-hp-printer-and-scanner-on-ubuntu-linux/

I have HP Officejet Pro printer and scanner. How do I install HP Officejet Pro network printers and scanners on Ubuntu Linux? How can I install HP printer on Ubuntu Linux?