Using open source drivers

Follow the instruction from

or use my clone on git

  • Clone the repo

    git clone foo2zjs
    cd foo2zjs
  • Compile:

  • Get extra files from the web, such as .ICM profiles for color correction, and firmware. Select the model number for your printer:

    ./getweb 1020	# Get HP LaserJet 1020 firmware file
  • Install driver, foomatic XML files, and extra files:

    sudo make install
  • Configure hotplug (USB; HP LJ 1000/1005/1018/1020).

    Note: In the original documentation this step is marked as optional, however it is required for Ubuntu 18 + HP 1020 to work properly.

    sudo make install-hotplug

    Do sudo apt remove system-config-printer-udev if the command above fails.

  • Restart CUPS

    sudo systemctl restart cups
  • Add a new printer in the system settings or CUPS and print.

Why it is better to use open source drivers

HP is known for some fishy drivers that block your printer when non-original cartridges are used:

Worth trying to switch to open source.

The driver from also looks pretty strange in terms of code distribution and quality. But that driver is recommended by openprinting. Let’s hope somebody reviewed it :)

Using proprietary drivers

  • Install hplip-gui:
sudo apt-get install hplip-gui
  • install recommended proprietary driver from HP Toolbox GUI


Another solution

sudo apt-get install hp-ppd hpijs hpijs-ppds hplip hplip-cups hplip-data hplip-dbg hplip-doc hplip-gui djtools