Here is a quick installation of HP officejet printer on Ubuntu linux jauntu:
# apt-get install hplib
Enable X-window to root
$ xhost +
# hp-setup
If the automatic discovery does not work tick a manual selection and enter IP address of your printer. If its USB go for USB option. All done.