LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
Search this Thread
Old 12-21-2008, 07:52 PM   #1
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Rep: Reputation: 31
Cups and HPLIP


I have an HP printer that uses HPLIP and have hit a stone wall trying to install the printer using HPLP.

I tried with the printer defined to cups and also with no printer defined to cups. With the printer defined to cups, cups would not print a test page.
Either way HPLIP keeps telling me:
Quote:
Printer queue setup failed.
please restart CUPS and try again
Is this, perhaps, a priveleges problem? If so what do I need to do to correct it?

(HPLIP was installed using "slackpkg"; and yes, I verified that the mirror that was commented in /etc/slackpkg/mirrors was for a 12.2 mirror; This is the mirror:
"http://mirrors.easynews.com/linux/slackware/slackware-12.2/")

Last edited by garyg007; 12-21-2008 at 07:56 PM.
 
Old 12-21-2008, 08:13 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Open a terminal and run hp-setup (you may need to be root, but try it first as your normal user), also, go to http://hplipopensource.com/hplip-web/index.html and make sure that it's installed correctly.
 
Old 12-21-2008, 10:01 PM   #3
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by XavierP View Post
Open a terminal and run hp-setup (you may need to be root
Yes, one must be root to runm this.
Running it from a terminal as root, I get this
Code:
No protocol specified
hp-setup: cannot connect to X server :0.0
root@abitbox:/home/gary#
If I start it from the "run" dialog box, a gui starts that is the same one I get when running "hp-toolbox" and that gives me the error in my first post.
Quote:
Originally Posted by XavierP View Post
go to http://hplipopensource.com/hplip-web/index.html and make sure that it's installed correctly.
I installed this using a freshly downloaded slackware install package; so if it's not installed correctly , then that means the slackware package has a bug in it - correct????

DELETED STUFF



Thank you for the reply;

Gary

Last edited by garyg007; 12-21-2008 at 10:16 PM. Reason: SOME OF WHAT I POSTED WAS ALL WET --- so I deleted it , sorry
 
Old 12-21-2008, 10:17 PM   #4
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,241

Rep: Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571
Hmmmmmm......I've had no difficulty at all running my HP Laserjet P2015 printer on Slackware 12.1 and on 12.2. Have you set the cups daemon to run at start-up? If you installed cups with the install CDs/DVD you can start-up cups.

# chmod +x /etc/rc.d/rc.cups
 
Old 12-22-2008, 01:50 AM   #5
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
Run the following command as a normal user
Code:
LC_ALL=$LANG.UTF8 hp-toolbox
and then setup/test your printer.

Frank
 
Old 12-22-2008, 06:16 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,076
Blog Entries: 52

Rep: Reputation: Disabled
I got my HP Deskjet D4260 going by starting CUPS:
Code:
# chmod +x /etc/rc.d/rc.cups
# /etc/rc.d/rc.cups start
Then going to http://localhost:631, and configuring from there.
 
Old 12-22-2008, 06:47 AM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
Quote:
Originally Posted by garyg007 View Post
Yes, one must be root to runm this.
Running it from a terminal as root, I get this
Code:
No protocol specified
hp-setup: cannot connect to X server :0.0
root@abitbox:/home/gary#
That's why I never liked to start in runlevel 4. Can you start it then with "kdesu hp-setup" as normal user?
 
Old 12-22-2008, 08:18 AM   #8
lupinix
LQ Newbie
 
Registered: May 2008
Location: Nievern (Germany)
Distribution: Slackware, Bluewhite64
Posts: 22

Rep: Reputation: 15
Hello!

I've got an HP printer too (HP Officejet Pro K5400dn). I've just installed cups and hplip (and gutenprint, needed for another machine). Then I've started firefox, went to localhost:631 and added my printer. It works fine.
I had problems with the graphical tool, which comes with hplip. It couldn't find my printer.

Be sure, that the CUPS server is running!

Best Regards
Christian
 
Old 12-22-2008, 09:24 AM   #9
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by hitest View Post
Hmmmmmm......I've had no difficulty at all running my HP Laserjet P2015 printer on Slackware 12.1 and on 12.2. Have you set the cups daemon to run at start-up? If you installed cups with the install CDs/DVD you can start-up cups.

# chmod +x /etc/rc.d/rc.cups
The issue here is getting HPLIP setup properly
 
Old 12-22-2008, 09:42 AM   #10
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,241

Rep: Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571Reputation: 571
Quote:
Originally Posted by garyg007 View Post
The issue here is getting HPLIP setup properly
Good luck with this. Sorry I couldn't be of more help.

Last edited by hitest; 12-22-2008 at 09:55 AM.
 
Old 12-22-2008, 01:48 PM   #11
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
Does the fix work better if it comes straight from Pat V.? The following still applies to 12.2:
Quote:
Slackware 12.1/CHANGES_AND_HINTS.TXT

There is a minor problem with the HPLIP and CUPS versions in Slackware 12.1;
hp-toolbox will not work unless LC_ALL is set to a UTF8 locale.
An easy workaround is to start it with "LC_ALL=$LANG.UTF8 hp-toolbox" if
you're not using a UTF8 locale. Also, your user account must be a member
of the "lp" group for hp-toolbox to work properly, and to use the scanner
portion of some (all?) HP print/scan/copy units, you'll need to be a member
of the "lp" group. This is due to the fact that hplip's udev rules set
the device with group "lp" ownership.
As for the 'lp' group, I figured you would have known that already:
Quote:
Slackware 12.2/CHANGES_AND_HINTS.TXT

HP multifunction printer/scanners require that your user account be a member
of the "lp" group for hp-toolbox to work properly, and to use the scanner
portion of some (all?) units, you'll need to be a member of the "lp" group.
This is because hplip's udev rules set the device with group "lp" ownership.
Frank

Last edited by fcaraballo; 12-23-2008 at 12:53 AM.
 
Old 12-22-2008, 02:31 PM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,076
Blog Entries: 52

Rep: Reputation: Disabled
Yes, that's what I forgot to mention in my post: adding yourself to the lp group.
 
Old 12-23-2008, 12:57 PM   #13
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Thanks for the assistance.

Adding my user to the "lp" group appeares to have done the trick.

I do not remember having any problems with it in 12.1; but then I have a difficult time remembering what I had for breakfast this morning.

Another item that may have had something to do with the problem: The premissions for rc.messagebus and rc.hald did not include "execute".

And a --for what its worth-- I tried the current version of hplip which is hplip-2.8.12; src2pkg appeared to process the source without any hiccups; and installpkg installed it ok. But trying to run
hp-setup this error was produced:
Code:
warning: Found multiple possible PPD files

Choose a PPD file that most closely matches your device:
(Note: The model number may vary slightly from the actual model number on the device.)

Num. PPD Filename Description
---- ----------------------------------------- ----------------------------------------
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 496, in <module>
    mins_list = mins.keys()
AttributeError: 'tuple' object has no attribute 'keys'

Gary

Last edited by garyg007; 12-23-2008 at 12:59 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
hplip not showing up in CUPS walterbyrd Linux - Software 7 11-09-2013 02:59 PM
Hplip??? ...cups? arfon Linux - Software 1 12-08-2008 05:20 PM
CUPS and hplip madness... bpoint Linux - Software 13 10-31-2008 06:03 PM
[SOLVED] HP960c Deskjet -- should I use CUPS or HPLIP? MBA Whore Linux - Hardware 2 12-23-2006 09:44 PM
CUPS/HPLIP vs Kernel-2.4.18-14 aka Shiva Red Hat 1 05-08-2006 03:29 PM


All times are GMT -5. The time now is 06:03 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