Manual Build and Install Instructions for Mandriva
Step 1: Installation Prerequisite Steps
View the current Release Notes for additional information on this release.
Note
You will need root access to complete many of the steps while installing HPLIP. If you do not have root access contact your system admin for assistance.
Step 2: Install Dependency Packages
A. Open a terminal shell.
B. Configure repositories for URPMI.
Important
First configure your system using EasyURPMI .
C. To Ensure you are installing the most up to date dependencies you may want to disable your CD Sources.
Click "K-Menu" Click System Click Configuration Click Packaging Click Software Media Manager Remove the check marks next to the CD Sources.
If using Mandriva 2007.0:
Click "Install, Remove & Update Software" Click "Settings" Click "Media Manager" Remove the check marks next to the CD Sources.
D. Install the required depencencies for HPLIP:
Note
You will be prompted for your root password.
su -c "urpmi gcc-c++ cups cups-devel python-devel PyQt net-snmp-mib net-snmp-devel libjpeg-devel xsane sane-devel make python-imaging"
Step 3: Download HPLIP
Note
We recommend that you download the HPLIP tarball to your home or desktop directory.
A. Click here to Download the Regular Tarball
B. Go to the directory where you downloaded the HPLIP tarball.
Example:
cd ~/Desktop
C. Uncompress the tarball.
Enter this command:
tar xvfz hplip-2.7.7.tar.gz
This will create a directory with the same name as the tarball file.
D. Change your working directory to the hplip-2.7.7 directory.
Example:
cd hplip-2.7.7
Step 4: Configure HPLIP for installation
A. This step configures the development environment and checks that your system is ready to install HPLIP.
For specific information on using ./configure and the different options please go here. Also reference your distro documentation and configuration for additional information on which tags are relevant.Enter this command (select the appropriate command depending on your system configuration):
32 bit distro users (most users will use this command):
./configure --prefix=/usr --disable-xml-install --enable-foomatic-ppd-install --with-hpppddir=/usr/share/cups/model/manufacturer-PPDs/hp
64 bit distro users
./configure --prefix=/usr --libdir=/usr/lib64 --disable-xml-install --enable-foomatic-ppd-install --with-hpppddir=/usr/share/cups/model/manufacturer-PPDs/hp
Step 5: Run Make
A. This step will compile the HPLIP source.
Important
You want to run make as a regular user, NOT as root.
Enter this command:
make
Step 7: Post Installation Steps
A. Verify cups is configured correctly.
Enter this command:
su -c "kate /etc/cups/cupsd.conf"
Find the line:
"Group sys"
change to:
"Group lp"
Save and exit the file.
B. Change the permissions in the mandriva.perms file.
Enter this command:
su -c "kate /etc/security/console.perms.d/50-mandriva.perms
Change:
<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB* /proc/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9] dev/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9]
To:
<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB*
Save and exit the file.
C. Check USB Port Permissions.
Run the following script to verify that your USB ports are configured with the correct permissions.
Enter this command:
su -c "./installer/permissions.py"
Note
Alternatively you can manually check your USB port permissions by following the instructions for the Manual Permissions Process link below.
D. Trigger your USB devices.
Run the following script to trigger your USB devices.
Enter this command:
su -c "./installer/trigger.py"
Note
Alternatively you can manually trigger your USB devices by unplugging and reconnecting your USB printer's from your computer.
E. Verify your user is part of the lp group
a. Open a terminal shell.
Enter this command:
groups
You should get a result similar to:
aaron adm dialout cdrom floppy audio dip video plugdev scanner netdev lpadmin powerdev admin
b. If you do not see the "lp" group in the list.
Enter this command:
su -c "usermod -a -G lp aaron"
Replace "aaron" with your username.
Important
Logout and back onto your system to apply the changes.
Step 8: Configuring your printer using hp-setup
A. Run hp-check to verify that your system is configure correctly.
Enter this command:
hp-check
If any failures try and resolve them depending on the error. Contact the mailing list for support as needed.