most Linux distributions has printer driver by default, for HP, it is HPLIB, but there an addition plugin which is close source needed for this 1020 printer, when installing this plug-in, I counter some problems, and I will describe it later.
hp laserjet 1020, hpcups 3.17.10, requires proprietary plugin
Solution 1 hpip
- install hplip
sudo apt-get install hplip hplip-gui
- refer this to install plugin:
- connect the printer and type command ` hp-plugin`
- follow GUI and automatically download the plugin, but there is a 404 problem for me, many be caused by my network(I am in China, LOL). so you need manually download the plugin and install it.
- you can manually download xxx.plugin file here, and load it from local file to HPLIB by
- enjoy it!
Solution 2 foo2zjs
foo2zjs is an open source laib for printer, and it work well on HP 1020.
sudo apt-get remove --assume-yes hplip hpijs hplip-cups hplip-data libhpmud0 foomatic-db-hpijs
- make install foo2zjsby
sudo apt-get install cupsys-bsd foo2zjs make build-essential wget http://support.ideainformatica.com/hplj1020/foo2zjs-patched.tar.gz tar zxvf foo2zjs-patched.tar.gz cd foo2zjs make sudo make install sudo make install-udev sudo udevstart
plug the printer and run
sudo /etc/init.d/cupsys restart
to make plain (lpr) text print nicely, run
sudo lpoptions -o cpi-12 -o lpi=7 -o page-left=36 -o page-right=36 -o page-top=36 -o page-bottom=36
open system printer manager and set up HP printer model as foo2zji by changing the model form
foo2zjs/ppdand select the
xxx.ppdfor your printer.
if there any problem, you many modify the ppd file manually, e.g. change the Default page size to A4 from “Letter”
sudo gedit xxx/ppd/LaserJet-1020.ppd
- enjoy it!