Installing HP Laserjet 1020 on Ubuntu
![]() |
Ok this one was a pain in the butt. I just bought a HP LaserJet 1020, and it wont run on my 64bit ubuntu or any other linux distro that I have tried out of the box. I do have windows system where I could have easily installed it with one flip of an installation CD. But I am not oging to give up so easily on this. Ubuntu recognizes the printer but it just wont print. So after searching the web for couple of hours and trying dozen differant methods I found this site that gives a step by step walkthrough of installing this printer.
Two things to note: 1) You will need Ubuntu in a installation CD or atleast mount ISO in the CD drive 2) you will have to do the last part every single time you want to print something.
Check this site out if you have this printer (HP LaserJet 1020). Here
Steps to configuring your LaserJet:
$ 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 cupsIf it doesn’t work yet, try the following command.
$ sudo cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
You have to do the last step every time you want to print something.



Very Many thanks. After weeks of false trails this entry worked, but only after I had gone through the usual Ubuntu New Printer install procedure after following your instructions. (beginning “sudo apt-get install build-essential).
The HP1020 now prints as it should with no further Terminal entries on my part.
Thanks again
Bob
This also fixed the problem with my Ubuntu 8.04 LTS (release version) installation.
many thanks
Ray
Dude, THANK YOU! I tried this way acording to other webpages numerous times, but nothing worked with my Laserjet1020 (maybe I did some tipos). My eyes filled with tears of joy when I saw and heard the printer working :’-)
in hardy (8.04) just running “hp-setup” as root made the trick
I confirm that “sudo hp-setup” did the trick. Now my HP 1020 is printing happily. Super easy to setup. Still I really appreciate the Pavs’s original post on manually installing the printer driver. His blog lead me to this page, where I found the “hp-setup” command that works even better.
Maybe Ubuntu team should automatically run hp-setup by default on HP printers.
For me too: on hardy I had to “sudo hp-setup”. After that, everything was ok. Thanks.
SWEET! Thanks PAVS and ASD!
The sudo hp-setup didn’t work at first and I was headed back to google when I remembered it added itself as hp#2 and the non working hp was set to default. Ooooops : ) Bzzzzzzzzz.. paper being pulled through the printer …joy.
Ok Just a disclaimer. There has been many updates since I wrote this one up. Obviously as others, mentioned there are better (easier) ways to do this now. I am glad that it worked for some people by whichever method you guys used.
Cheers!