LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   HPLIP on Slackware or, getting my printer working (http://www.linuxquestions.org/questions/slackware-14/hplip-on-slackware-or-getting-my-printer-working-385037/)

Rayston 11-21-2005 12:10 AM

HPLIP on Slackware or, getting my printer working
 
Okay, I have the following

Slackware 10.2 with the 2.4 kernel
KDE 3.4

HP Officejet v40

I am trying to install the HPLIP driver per the instructions here.

http://hpinkjet.sourceforge.net/inst...wnload_install

I get as far as step 10 when it tells me to run the following command

/etc/init.d/hplip restart

which on my machine comes back with the following error

bash: /etc/init.d/hplip: No such file or directory

and indeed there doesnt seem to be a directory /etc/init.d and thus there cant really be a file hplip inside of it. All 9 steps before that seem to work flawlessly.

Am I supposed to make this folder? nowhere in the instructions did it indicated to do so.

What am I doing wrong?

Thanx in advance

Rayston

J_W 11-21-2005 06:53 AM

Hi,

I'm using hplip-0.9.6 which I built myself on Slackware-current.
If you untar hplip source, there is hplip.sh script in the top directory of untared hplip-0.9.6.tar.gz.
I copied hplip.sh in /etc/rc.d/ as rc.hplip ( and editted line 29 and 30 ). Next, I added following lines on /etc/rc.d/rc.M just before
cups start-up lines.

# Start HPLIP before CUPS
if [ -x /etc/rc.d/rc.hplip ]; then
/etc/rc.d/rc.hplip restart
fi

------
( I don't know whther rc.local is better than rc.M... )

The easiest way may be to use precompiled binary at http://www.linuxpackages.net/ .

Sorry for my poor English.

-------
EDIT :
My former comment was not correct.
Just copying hplip.sh will not work. You need to edit line #29 and #30 as follows.

HPIODDIR=/usr/sbin
HPSSDDIR=/usr/share/hplip

eelriver 11-21-2005 08:42 AM

Quote:

I don't know whther rc.local is better than rc.M... )
rc.M is the right place. rc.local runs after rc.M so it couldn't start rc.hplip before CUPS if you placed it there.

J_W 11-21-2005 09:16 AM

Quote:

Originally posted by eelriver
rc.M is the right place. rc.local runs after rc.M so it couldn't start rc.hplip before CUPS if you placed it there.
Tahnks for your comment.
I was able to understand clearly.

Rayston 11-21-2005 01:41 PM

On to a different problem
 
Okay, so I got past the

/etc/init.d/hplip restart

command, I installed the package from linuxpackages.net and then ran the command it seemed to run fine.

but then I immediately get stuck on the next step

/etc/init.d/cups restart

I get a similiar error to when I was running hplip

any ideas?

thanx

Rayston

J_W 11-21-2005 02:36 PM

Re: On to a different problem
 
Quote:

Originally posted by Rayston
but then I immediately get stuck on the next step

/etc/init.d/cups restart

I get a similiar error to when I was running hplip
In case of Slackware, the startup script of cups is not /etc/init.d/cups but /etc/rc.d/rc.cups.


All times are GMT -5. The time now is 12:26 AM.