I have been trying to get my HP LaserJet 1020 printer working for some time on my Ubuntu machine and I finally succeeded this evening! This is how I did it.
Just type this into the command line:
$ sudo apt-get install build-essential
$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
$ tar -zxvf foo2zjs.tar.gz
$ cd foo2zjs
$ sudo make uninstall
$ make
$ ./getweb 1020
$ sudo make install install-hotplug cups
I then had to re-install the printer from
System >> Administration >> Printing
and then
Printer >> Add Printer
And go through the set up process with out changing any settings.
Everything worked!
This information was taken from:
http://stepien.com.pl/2006/09/23/install-your-hp-laserjet-1020-on-ubuntu/