HPLIP Red Hat 8/9 How-To

# HP Linux Imaging and Printing (HPLIP)

About Features Screenshots FAQs Setup and Installation System Requirements Supported Devices Download HPLIP Installation Instructions Usage and Support Mailing Lists How-Tos Troubleshooting Release Notes Resources Technical Documentation Sourceforge Project Page Software License Other Support Information About HPLIP Contacts Home > How-Tos > Red Hat 8/9 | # Red Hat 8/9 How-To Note: This process has been tested with Red Hat 8 and Red Hat 9. May work with other version of Red Hat (Enterprise, etc) Install RH8/RH9 Workstation to get gcc development tools. Or use the RH8/RH9 Package Manager to install the Development Tools.
    *Gnome Menu
            *System Settings
                    *Packages
Goto the "Development" section, Click "Details" next to "Development Tools. Ensure the following packages are installed:
    automake14
    automake15
    cvs
    diffstat
    dmalloc
    doxygen
    gcc-g77
    gcc-gnat
    gcc-java
    indent
    ltrace
    memprof
    patchutils
    rcs
    splint
Use the RH8 Package Manager and install CUPS under Printing Support.
    *Gnome Menu
            *System Settings
                    *Packages
Go to the "System" section, click "Details" next to Printing Support. Ensure the following package is installed:
    Cups
Start the cupsd daemon:
    su
    /etc/init.d/cups start
Install cups-devel. RPM is on RH8 CD #2
    cd /mnt/cdrom/RedHat/RPMS
Note: cd-rom may mount in a different directory. Should be something similiar however.
    rpm -ivh cups-devel-1.1.15-10.i386.rpm
Install sane-backends-devel. RPM is on RH8 CD #2.
    cd /mnt/cdrom/RedHat/RPMS
    rpm -ivh sane-backends-devel-1.0.8-5.i386.rpm
Update libusb from 0.1.6 to 0.1.8.
    wget http://hplip.sf.net/libusb-0.1.8.tar.gz
    tar xzvf libusb-0.1.8.tar.gz
    cd libusb-0.1.8
    ./configure --prefix=/usr
    make
    su
    make install
    rm /usr/lib/libusb.so
    ln -s /usr/lib/libusb-0.1.4.4.0 /usr/lib/libusb.so
    exit
Update xsane from 0.84 to 0.96 (actually 0.92 or higher will work).
    wget http://hplip.sf.net/xsane-0.96.tar.gz
    tar xzvf xsane-0.96.tar.gz
    cd xsane-0.96
    ./configure --prefix=/usr
    make
    su
    make install
    exit
Build hplip with no network and no fax support. Use hplip-1.6.6a or newer.
    tar xvfz hplip-1.6.6a.0.tar.gz
    cd hplip-1.6.6a.0
    ./configure --prefix=/usr --disable-network-build --disable-fax-build
    make
    su
Note: do not exit root until after step 11.
    make install
Start HPLIP daemons.
    /etc/init.d/hplip start
Libusb replaces the "printer" kernel module, so we must blacklist the "printer" kernel module so it will not be loaded during USB hotplug events. This also means only libusb printer drivers will work when the "printer" kernel module is removed. Add "alias printer off" line to /etc/modules.conf.
    Run from terminal:
    su
    gedit /etc/modules.conf
    Add to the bottom of the file:
    "alias printer off"
    Save, Exit
Add "printer" line to /etc/hotplug/blacklist.
    Run from terminal:
    su
    gedit /etc/hotplug/blacklist
    Add to the bottom of the file:
    "printer"
    Save, Exit
Run:
    su
    /sbin/rmmod printer
Restart cupsd so that it will see new the USB printer.
    /etc/init.d/cups restart
    exit
To continue proceed to Step 4. Last update: Tue Jun 27 16:22:44 2006; HPLIP Version: 1.6.9