LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Cups and HPLIP (http://www.linuxquestions.org/questions/slackware-14/cups-and-hplip-692125/)

garyg007 12-21-2008 06:52 PM

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/")

XavierP 12-21-2008 07:13 PM

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.

garyg007 12-21-2008 09:01 PM

Quote:

Originally Posted by XavierP (Post 3383406)
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 (Post 3383406)
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

hitest 12-21-2008 09:17 PM

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

fcaraballo 12-22-2008 12:50 AM

Run the following command as a normal user
Code:

LC_ALL=$LANG.UTF8 hp-toolbox
and then setup/test your printer.

Frank

brianL 12-22-2008 05:16 AM

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.

titopoquito 12-22-2008 05:47 AM

Quote:

Originally Posted by garyg007 (Post 3383470)
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?

lupinix 12-22-2008 07:18 AM

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

garyg007 12-22-2008 08:24 AM

Quote:

Originally Posted by hitest (Post 3383479)
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

hitest 12-22-2008 08:42 AM

Quote:

Originally Posted by garyg007 (Post 3383915)
The issue here is getting HPLIP setup properly

Good luck with this. Sorry I couldn't be of more help.

fcaraballo 12-22-2008 12:48 PM

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

brianL 12-22-2008 01:31 PM

Yes, that's what I forgot to mention in my post: adding yourself to the lp group.

garyg007 12-23-2008 11:57 AM

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.:eek:

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


All times are GMT -5. The time now is 06:47 PM.