// LIST INSTALLED PACKAGES
$ rpm -qa | grep hplip $ apt-cache search hplip //apt-get -y install hplip
hplip-1.6.12-1... //WHICH IS THE WRONG VERSION!
//UNFORTUNATELY! RHEL/Centos 5.0 doesn't include the hp 2055dn drivers...
"Red Hat Enterprise Linux 5.0 supplies HPLIP 1.6.7 and it does not support your printer. "You must download and install HPLIP in order to use your printer..."
yum update //apt-get update yum erase hplip //get rid of version 1.6
Transaction Check Error: file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.6b-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386 file /usr/lib/sane/libsane-hpaio.so.1.0.0 conflicts between attempted installs of hplipfull-3.9.6b-0.i386 and libsane-hpaio-1.6.7-4.1.el5.4.i386
yum erase hpijs
yum erase libsane-hpaio //doesn't work...
yum install xsane //REINSTALLS a bunch of stuff
rpm -ev --nodeps libsane-hpaio rpm -ev hpijs rpm -ev hplip-gui rpm -ev hplip
some of the above don't work (only return package not installed)
// check if you have the printer driver foomatic-ppdfile -A|grep 2055
//If you don't see HP 2055dn Id='
http://hplipopensource.com/hplip-web/install_wizard/index.html chose HP -> LaserPrinter -> 2055dn
I then downloaded hplip-3.9.6b_rhel_5.0.i386.rpm from above...
FINALLY, install the local package
rpm -Uvh hplip-3.9.6b_rhel-5.0.i386.rpm
// yum install hplip-3.9.6b_rhel_5.0.i386.rpm
// required dependencies are also installed
// lockdev-1.0, libieee1284-0.2, libsane-hpaio-1.6, libexif-.6,
// sane-backends-1.0, sane-backends-libs-1.0, gphoto2-2
// rpm -Uvh
// optionally interesting packages: yum install ghostscript
IF YOU GET THE ERROR "Package hplip-3.9.6b_rhel-5.0.i386.rpm is not signed" you need to download the public key signature
nano /etc/yum.conf //replace gpgcheck=1 to gpgcheck=0
or better yet
rpm --nopgp name.rpm
/sbin/service hplip restart (might fail to stop the service)
Stopping... Starting hpiod: Starting hpssd:
//ensure that the printer services start on all boot levels (2 = text)
/sbin/chkconfig --level 2345 hplip on
hp-setup -m
hp-setup -i 192.168.1.26
hp-makeuri
//you can use cups too!
for the CUPS webadmin browse to http://localhost:631
"Setting up device: hp:/net/HP_LaserJet_P2055x?ip=192.168.1.26"
Please enter a name for this print queue (m=use model name:'HP_LaserJet_P2055x'*, q=quit) ?
lpt6
Using queue name: lpt6 Locating PPD file... Please wait.
Found PPD file: /usr/share/cups/model/HP/hp-laserjet_p2055x-ps.ppd.gz
Enter a location description for this printer (q=quit) ?lpt6 Enter additonal information or notes for this printer (q=quit) ?accounts hp2055dn
Adding print queue to CUPS: Device URI: hp:/net/HP_LaserJet_P2055x?ip=192.168.1.26 Queue name: lpt6 PPD file: /usr/share/cups/model/HP/hp-laserjet_p2055x-ps.ppd.gz Location: lpt6 Information: accounts hp2055dn
| PRINTER TEST PAGE |
Would you like to print a test page (y=yes*, n=no, q=quit) ? y warning: python-dbus not installed. warning: hp-testpage should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.9.6b) Testpage Print Utility ver. 6.0
Cannot find module (SNMPv2-TM): At line 0 in (none) Printing test page to printer lpt6... Test page has been sent to printer.
note: If an error occured, or the test page failed to print, refer to the HPLIP website note: at: http://hplip.sourceforge.net for troubleshooting and support.
Done.
hp-check | more //shows you the status of everything
| INSTALLED CUPS PRINTER QUEUES |
lpt6
Type: Printer
Device URI: hp:/net/HP_LaserJet_P2055x?ip=192.168.1.26
PPD: /etc/cups/ppd/lpt6.ppd
PPD Description: HP LaserJet P2055 Postscript (recommended)
Printer status: printer lpt6 is idle. enabled since Mon 13 Jul 2009 10:39:27AM BST
yum search system-config yum install system-config-printer yum install system-config-printer-libs