LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-20-2005, 11:10 PM   #1
Rayston
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Rep: Reputation: 0
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

Last edited by Rayston; 11-20-2005 at 11:31 PM.
 
Old 11-21-2005, 05:53 AM   #2
J_W
Member
 
Registered: Apr 2004
Location: JAPAN
Distribution: Slackware-current
Posts: 54

Rep: Reputation: 15
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

Last edited by J_W; 11-21-2005 at 08:03 AM.
 
Old 11-21-2005, 07:42 AM   #3
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
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.
 
Old 11-21-2005, 08:16 AM   #4
J_W
Member
 
Registered: Apr 2004
Location: JAPAN
Distribution: Slackware-current
Posts: 54

Rep: Reputation: 15
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.
 
Old 11-21-2005, 12:41 PM   #5
Rayston
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 11-21-2005, 01:36 PM   #6
J_W
Member
 
Registered: Apr 2004
Location: JAPAN
Distribution: Slackware-current
Posts: 54

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] HP PSC 1315 - Printer detected under CUPs but not working (hplip/hpijs driver) vharishankar Linux - Hardware 19 09-01-2009 02:26 PM
hplip 0.9.3 problems on Slackware 10.1 jmp1prs Slackware 34 03-05-2006 01:43 AM
hplip have not worked :( mbt Linux - Hardware 2 12-03-2005 10:49 AM
Hplip thoyyib Linux - Hardware 1 12-01-2005 12:35 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM


All times are GMT -5. The time now is 10:49 PM.

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