Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By simcox1 at 2006-01-24 12:46
Reasons:
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.
Assumptions:
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.
Steps:
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
make install (as root).
Locate the file hplip.sh 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:
HPIODDIR=
HPSSDDIR=
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
fi
This should go just prior to the entry to start cups. Mine looks as follows:
Code:
#Start the HPLIP daemons
if [ -x /etc/rc.d/rc.hplip ]; then
#Start HPLIP
/etc/rc.d/rc.hplip start
fi
#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:
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.
Changelog
0.1 - Original Version
0.5 - Minor typos fixed and added instruction on ldconfig
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.