Download your favorite Linux distribution at LQ ISO.
Go Back > Linux Answers > Applications / GUI / Multimedia
User Name


By simcox1 at 2006-01-24 12:46

The reason for this how-to is simply that configuring hplip on slackware can be problematic, partly because it doesn't use SystemV style init scripts.


This is just to list my own basic set-up so you can see exactly what I was using.
My printer is an HP PSC 1110, all-in-one printer/scanner/copier. I have a full install of Slackware 10.2 with the 2.4.31 kernel, although I do not have KDE/QT installed.

Among the system requirements listed by hplip are QT and net-snmp. However, QT is only required for the hp-toolbox GUI, and net-snmp is only required if your printer is networked. Therefore firstly install net-snmp if you have a networked printer, otherwise it's not required.


Firstly of course, you need to download hplip from their website, and unpack it as normal.
You must then type:

./configure --disable-network-build

(If you have net-snmp it would just be ./configure.)

Then type:


make install (as root).

Locate the file in the directory to where you downloaded to, and copy this to /etc/rc.d/rc.hplip. Doing this as root will create this file. Make sure it's executable (chmod +x /etc/rc.d/rc.hplip).

Now have a look at this script, and check to see if the paths to 'hpiod' and 'hpssd' are set. At the top of the script you will see:


You must fill these in. Check with slocate for the paths, but in my case they were this:


So now your script should be ok. However, hplip must be started before cups, and so add the following to /etc/rc.d/rc.M.

if [ -x /etc/rc.d/rc.hplip ]; then
/etc/rc.d/rc.hplip start

This should go just prior to the entry to start cups. Mine looks as follows:

#Start the HPLIP daemons
if [ -x /etc/rc.d/rc.hplip ]; then
   #Start HPLIP
   /etc/rc.d/rc.hplip start

#Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if[ -x /etc/rc.d/rc.cups ]; then
  #Start CUPS
  /etc/rc.d/rc.cups start
It should now start in the right order at boot-up. You can at this point go to http://localhost:631 and install your printer. If you've previously installed it, uninstall it first. You must also restart hplip and cups:

/etc/rc.d/rc.hplip restart
/etc/rc.d/rc.cups restart
Install your printer as normal. You should see the complete URI for you printer in the drop down list. Choose that.

We're nearly there. However there is one last part. At this point your scanner will probably not function. So first make sure that the line 'hpiao' is the last line in /etc/sane.d/dll.conf.

Then copy all files beginning 'libsane-hpiao' in /usr/local/lib, to /usr/lib/sane.
As root type:

cp /usr/local/lib/libsane-hpiao* /usr/lib/sane/

Now run 'ldconfig' as root

That's it! Try typing 'scanimage -L' in a terminal. It should find your scanner. Now try 'xsane' in a terminal. It will ask you to agree to the usual t's and c's and then launch sane. Hopefully.

Additionally, if you have KDE/QT installed, you will have a menu entry called 'hp-toolbox' (in utilities), which will give you various bits of info such as how much ink you've got etc. This can also be launched with 'hp-toolbox' in a terminal.

0.1 - Original Version
0.5 - Minor typos fixed and added instruction on ldconfig


All times are GMT -5. The time now is 11:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration