For the first time, I’ve installed Ubuntu 16.04 on my PC. Previously I was using Windows 7. The printer was connected when I was using Windows and now when OS changed, I had to do following things to make it work on Ubunutu.
I run below commands on my terminal to enable Printer:
sudo apt-get update
sudo apt-get remove hplip cups-filters cups hplip-data system-config-printer-udev
sudo apt-get install build-essential tix groff dc axel cups
sudo apt-get install cups-filters unp system-config-printer-gnome
sudo rm -rf /usr/share/hplip
cd /tmp
rm foo*
axel http://foo2zjs.rkkda.com/foo2zjs.tar.gz
unp foo2zjs.tar.gz
cd foo2zjs/
make
./getweb 1020
sudo make install
sudo make install-hotplug
After running the last command above, we need to Unplug and re-plug the USB printer into the PC.
And then add new ‘HP Laserjet 1020’ printer via system-config-printer tool. To get the tool, you may simply type below command on terminal
system-config-printer
And choose to use foo2zjs foomatic printer driver.
You may check /var/log/syslog for any errors related to foo2zjs driver:
tail /var/log/syslog