Attached is an update of the installation notes of hplip on Linux From Scratch/Beyond Linux From Scratch, this time for the 2.7.9 release. The notes presently in the Hplip documentation need to be replaced by this. Judging from some of the Help-cries I have read, this may be of some use.

Keep up the good work!

Niko Sauer
Installation of hplip-2.7.9 on Linux From Scratch and Beyond

This document describes the installation of hplip-1.7.1 on a Linux
from Scratch (LFS)/Beyond Linux from Scratch (BLFS) setup. We have
OfficeJet usb printers in mind. Printing and scanning was found to
work well on the HP-OfficeJet 5510 all-in-one.

Some system components of the LFS/BLFS build on which this experience
is based are: gcc-4.0.3; glibc-2.3.6; udev-088; Linux-2.6.16.5;
python-2.4.3; libusb-0.1.12; usbutils-0.72; xfree86-4.5.0; gimp-2.2.10; 
cups-1.1.23; ESP_Ghostscript-8.15.1; sane-1.0.18; xsane-0.994; 
foomatic-3.1.0.

The procedure installs hplip /usr.

It is assumed that

        (i) all the system requirements for the building of hplip are
            met. In particular, CUPS should be working on its own;

        (ii) hplip-2.7.9.tar.gz has been untarred into a directory we
             shall call "Build";
        
        (iii) you are now in Build.

The various steps are described below.

First as an unprivileged user:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ cd hplip-2.7.9
$ ./configure --prefix=/usr --disable-pp-build --enable-foomatic-ppd-install
$ make

Configuration notes: 
^^^^^^^^^^^^^^^^^^^ 
--disable-pp-build: if your printers do not connect to the parallel
  port.

--enable-foomatic-ppd-install: if you wish to use foomatic-ppd-files. At
  the moment this database covers a larger variety of HP-printers. 

You should add: --disable-network-build if you do not have net-snmp installed.


Next, as root:
^^^^^^^^^^^^^
# make install

Find the foomatic filter script  "foomatic-rip" wherever it was installed. 
If it is not installed, download  from
 
<http://www.openprinting.org/download/foomatic/foomatic-filters-3.0-20071012.tar.gz>
 

and do

# cp foomatic-rip /usr/lib/cups/filter/

Now

# cd /usr/share/cups/model/
# ln -s /usr/share/ppd/HP/* foomatic-ppds

Edit the file /etc/udev/rules.d/25-lfs.rules:

i) Add the following rule (from SUSE) as a single line to the very top:

  SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf 
bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"

ii) Comment out the rules

       KERNEL=="lp[0-9]*",      GROUP="lp"
       BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp"

    by inserting a hash (#) in front of them

iii) Make sure that your HP-device is plugged in and turned on. Run the
     following script to stop the udev-daemon:

        # T=`pidof -x udevd`; kill $T

     Then start the udev-daemon again by running

        # /etc/rc.d/init.d/udev start

     When udev is started, run

        # lsusb

     and see if your device has been detected. If "lsusb" is not
     available (it is part of "usbutils") you could also do

        # ls /dev/bus/usb/00*

     If there is something, your device is seen correctly for the
     purposes of hplip.

Explanations
^^^^^^^^^^^^
CUPS has to see the foomatic filter. That is why it has to be
copied, or symbolically linked, into the file /usr/lib/cups/filter/
If this is not done, printing with CUPS will not be possible.

CUPS will look for the Foomatic ppd's in /usr/share/cups/model/
If the symbolic link is not made you will be unable to configure your
printer.

The addition of the SUSE-rule in /ets/udev/rules.d/25-lfs.rules will set
up your usb devices properly for hplip. It is important for this rule to
be at the top of the list. The rules you comment out will be redundant.

Before your system can implement the changes in udev-rules, it is
necessary to re-start udev by running the scripts as indicated.

You may now follow the hplip documentation to set up the program.

Hopefully some of this is of value to users of other Linux distributions as
well.

Niko Sauer

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to