Install HP Laserjet P1007 in Debian and Ubuntu

This was the easiest installation I’ve ever seen in a Linux distro, comparable to Windows Plug and Play

I plugged in my printer. As expected nothing happened. I tried to fathom what happened:

[[email protected] c]$ sudo tail -f /var/log/messages
Dec  7 10:49:38 debian kernel: [ 6316.051712] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:49:38 debian kernel: [ 6316.051715] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:49:38 debian kernel: [ 6316.051718] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:49:38 debian kernel: [ 6316.051720] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:49:38 debian kernel: [ 6316.051849] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:49:39 debian kernel: [ 6316.635466] usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:49:39 debian kernel: [ 6316.635500] usbcore: registered new interface driver usblp
Dec  7 10:49:39 debian kernel: [ 6317.567202] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: Missing HP LaserJet P1007 firmware file /lib/firmware/hp/sihpP1005.dl
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: ...read foo2zjs installation instructions and run ./getweb P1007

That was very instructive. Ok, so I have to execute ./getweb. From where.

Since it said foo2zjs I tried to find out where foo2zjs was located

[[email protected] c]$ which foo2zjs
/usr/bin/foo2zjs

Great. So:

[[email protected] c]$ cd /usr/bin
[[email protected] bin]$ which foo2zjs
/usr/bin/foo2zjs
[[email protected] bin]$ ./getweb P1007
You need to be root
[[email protected] bin]$ sudo ./getweb P1007
sihpP1005.img

(c) Copyright Hewlett-Packard 2008

[[email protected] bin]$ sudo tail -f /var/log/messages
Dec  7 10:49:38 debian kernel: [ 6316.051712] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:49:38 debian kernel: [ 6316.051715] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:49:38 debian kernel: [ 6316.051718] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:49:38 debian kernel: [ 6316.051720] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:49:38 debian kernel: [ 6316.051849] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:49:39 debian kernel: [ 6316.635466] usblp1: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:49:39 debian kernel: [ 6316.635500] usbcore: registered new interface driver usblp
Dec  7 10:49:39 debian kernel: [ 6317.567202] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: Missing HP LaserJet P1007 firmware file /lib/firmware/hp/sihpP1005.dl
Dec  7 10:49:42 debian /usr/sbin/hpljP1007: foo2zjs: ...read foo2zjs installation instructions and run ./getweb P1007

So it downloaded the file but again gave the same message. I decided to unplug and replug the printer.

Sure enough I was greeted by the familiar startup sound of the printer… And confirmation from syslog:

[[email protected] bin]$ sudo tail -f /var/log/messages
Dec  7 10:53:42 debian kernel: [ 6560.287745] usb 1-7.1.2: New USB device found, idVendor=03f0, idProduct=4817
Dec  7 10:53:42 debian kernel: [ 6560.287750] usb 1-7.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec  7 10:53:42 debian kernel: [ 6560.287754] usb 1-7.1.2: Product: HP LaserJet P1007
Dec  7 10:53:42 debian kernel: [ 6560.287756] usb 1-7.1.2: Manufacturer: Hewlett-Packard
Dec  7 10:53:42 debian kernel: [ 6560.287759] usb 1-7.1.2: SerialNumber: EC0FCLS
Dec  7 10:53:42 debian kernel: [ 6560.287903] usb 1-7.1.2: configuration #1 chosen from 1 choice
Dec  7 10:53:42 debian kernel: [ 6560.290938] usblp1: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4817
Dec  7 10:53:43 debian kernel: [ 6561.402520] usb 1-7.1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Dec  7 10:53:45 debian /usr/sbin/hpljP1007: foo2zjs: loading HP LaserJet P1007 firmware /lib/firmware/hp/sihpP1005.dl to /dev/usb/lp1 ...
Dec  7 10:53:46 debian /usr/sbin/hpljP1007: foo2zjs: ... download successful.
Dec  7 10:53:58 debian udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-P1007

Going to the printers applet, I could see a new Laserjet P1007 installed. Installed a test print.

Related info can be found here.

Install printer in Kubuntu 12.10

It was too easy. Everything was Plug and play.

However if it doesnt install for you, you can try downloading the file from HP and installing it:

First use the system script to download the driver:

/usr/bin/python /usr/bin/hp-plugin -i

Now install it:

sh /tmp/hplip-3.12.6-plugin.run --nox11 -- -i
[[email protected] droidzone]#/usr/bin/python /usr/bin/hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: PolicyKit support requires DBUS or PolicyKit support files missing
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

\
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.6 |
-----------------------------------------

The driver plugin for HPLIP 3.12.6 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ?

 

sh /tmp/hplip-3.12.6-plugin.run --nox11 -- -i
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.6 Plugin Self Extracting Archive.......................................................

HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Installer ver. 3.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Plug-in version: 3.12.6
Installed HPLIP version: 3.12.6
Number of files to install: 50

You must agree to the license terms before installing the plug-in:

LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in   
........................
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

Done.

 

 

d