http://hplipopensource.com/hplip-web/index.html

To use the Automatic Installer, follow these steps:

  1. Download the file to a convenient location (e.g., home directory or desktop, etc).
  2. Open a console/terminal and cd to the location where the installer was downloaded. (e.g., cd ~/Desktop)
  3. Type in and run this command: ‘sh hplip-3.15.9.run’