Credits: Tejasbarot.com, foo2xqx project
This is the quick and easy method to install the printer on Ubuntu. Tested on Ubuntu 11.10 under KDE.
- Download foo2xqx.
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz[/code]OR
wget -O foo2zjs.tar.gz http://droidzone.in/misc/ubuntu/drivers/hplaserjet/p1007/foo2zjs.tar.gz[/code]
- Extract the downloaded package
tar zvxf foo2zjs.tar.gz[/code]
- Execute the following code to compile the driver, install it and to configure a new printer
cd foo2zjs/
make
./getweb P1007
sudo make install
sudo apt-get install system-config-printer-gnome
system-config-printer[/code]
At this point, you get a popup box with a Printer driver. Double click on HP Laserjet P1007 to install a new driver. - Configure Plug and Play:
sudo make install-hotplug[/code]
At this point, you may be prompted to uninstall system-config-printer-udev.[[email protected] foo2zjs]$ sudo make install-hotplug
#
# Hotplug Installation Dependencies...
#
***
*** Error: system-config-printer-udev is installed!
***
*** Remove it with: (Fedora)
*** # yum remove system-config-printer-udev
*** OR
*** # rpm -e --nodeps system-config-printer-udev
*** OR (Ubuntu, Debian)
*** $ sudo apt-get remove system-config-printer-udev
*** OR (generic linux)
*** # rm -f /lib/udev/rules.d/*-printers.rules
***
make: *** [install-hotplug-test] Error 1
[/code]
Do it.[[email protected] foo2zjs]$ sudo apt-get remove system-config-printer-udev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
system-config-printer-udev
0 upgraded, 0 newly installed, 1 to remove and 378 not upgraded.
After this operation, 131 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 141596 files and directories currently installed.)
Removing system-config-printer-udev ...
[[email protected] foo2zjs]$ sudo make install-hotplug
[/code]
At this point, you can see your printer initialize with its peculiar sound.
Now you're all set to print any document.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.