HOWTO: Install HP LaserJet 1020

The HP LaserJet 1020 driver is not included with Ubuntu Breezy by default. This is how to install it: Open up terminal and do:

and change

file.png File:58-foo2zjs.rules
SYSFS{idProduct}==”2B17″

to

file.png File:58-foo2zjs.rules
SYSFS{idProduct}==”2b17″

Save and exit gedit (dont close the terminal and stay in the foo2zjs folder)

file.pngCode:
sudo make install-udev sudo udevstart

or if it doesn’t work

file.pngCode:
sudo /etc/init.d/udev restart

Now when u power up the HP 1020 printer you should hear it whirring as it powers, then whirring again as the new firmware is uploaded. now do:

file.pngCode:
sudo /etc/init.d/cupsys restart

Do the following to make plain (lpr) text print nicely:

file.pngCode:
sudo lpoptions -o cpi-12 -o lpi=7 -o page-left=36 -o page-right=36 -o page-top=36 -o page-bottom=36

Hope this helps.
For users having problems printing A4 size sheets, Jenda seems to have a solution:

file.pngCode:
sudo gedit /etc/cups/ppd/LaserJet-1020.ppd

and change the default page size to A4