LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   HPLIP & slack 13 -current (https://www.linuxquestions.org/questions/slackware-14/hplip-and-slack-13-current-813940/)

lpallard 06-13-2010 06:15 PM

HPLIP & slack 13 -current
 
Hi! I am trying to setup a networked hP C6280 all in one device attached to my network via Cat5 cable. It has the IP 192.168.0.105 and I am experiencing problems with setting up HPLIP... I know I am not the only one to have this problem, but I cant find specific info for slackware and all the posts I've found on the web are outdated, often refering to slack 9 or having been posted prior to 2006....

I use Slackware -Current (prior to 13.1 release), CUPS V1.4.3 and HPLIP V3.10.2

When I try to setup my device in HPLIP (hp-setup), I select "network/ethernet/wireless device", then HPLIP discovers my printer @ 192.168.0.105 (like I expect), and then I click "add printer" and I get:

Code:

Printer queue setup failed.
Please restart CUPS and try again.

And then the setup exits. Of course restarting CUPS will not help. I reinstalled HPLIP and no luck.

I can setup the device in CUPS, but if I proceed this way, I will not be able to select the attached scanner as a resource in XSANE.... In other words, if I setup the all-in-one device with CUPS, it is considered only a simple printer...

I remember that I had the same problem with Slackware 12.2 about 14 months ago, but cannot remember how I fixed it.
Anybody would be able to help me??.

Thanks!

mlangdn 06-14-2010 03:21 AM

I changed the permissions in /proc/bus/usb/002 to read/write for the owner and group and read-only for others. I then re-ran hp-setup and all was well for the printer, scanner, fax, etc. I think you can write a udev rule to cover this, but I don't know much about udev. I usually do it down and dirty.

lpallard 06-14-2010 06:34 PM

mlangdn,

there is several folders in /proc/bus/usb/... like 001, 002 .... 007

I tried to change the permissions of ALL of these folders with:

Owner: Can view & modify content
Group: Can view & modify content
Others: Can view content

And I checked the checkbox "Apply changes to all subfolders and their contents"

but that did not work....

Anything else to try? In fact, how di dyou know it was 002 and not some other folders? I would like to specify that the owner of these folders is root:root

sycamorex 06-14-2010 06:54 PM

Just to double check: do you belong to the lp group?

lpallard 06-14-2010 08:05 PM

sycamorex, yes I am member of lp... in fact I am member of: lp, floppy, audio, video, cdrom, plugdev, power, netdev, scanner and of course users.... I hope this will help!

mlangdn 06-14-2010 09:33 PM

Run hp-check. That will tell you what folder.
I also told you wrong, which is my fault.

The file for me was /dev/bus/usb/002/003

I changed 003 to rw for all.

The output from hp-check you are looking for will be like this from mine:

Code:

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x4f11 at 002:003:
    Device URI: hp:/usb/Officejet_5600_series?serial=CN6CJDE1K704B2
    Device node: /dev/bus/usb/002/003
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/003
# owner: root
# group: lp
user::rw-
group::rw-
other::rw-


Richard Cranium 06-15-2010 02:54 AM

Why are all of you other than the OP talking about usb devices?

Quote:

I am trying to setup a networked hP C6280 all in one device attached to my network via Cat5 cable.
Did I miss something?

mlangdn 06-15-2010 08:14 AM

Quote:

Originally Posted by Richard Cranium (Post 4003918)
Why are all of you other than the OP talking about usb devices?



Did I miss something?

Yes, you did. The OP also wants to use scanner functionality and it does not work. That is a permissions thingy, not a network issue. The OP can set up the printer in CUPS, and it works fine, except for scanning.

You also missed giving up a solution. I realize its oftentimes easier to criticize a possibly wrong answer than to post a right answer - perhaps you forgot to post your solution?

fcaraballo 06-15-2010 03:24 PM

Quote:

Originally Posted by lpallard (Post 4002525)
I can setup the device in CUPS, but if I proceed this way, I will not be able to select the attached scanner as a resource in XSANE.... In other words, if I setup the all-in-one device with CUPS, it is considered only a simple printer...

This is not entirely correct. Try the following to setup your printer:
Code:

http://localhost:631/
'Adding Printers and Classes'
'Add Printer' (enter auth info)
'AppSocket\HP JetDirect'
Continue
Run 'hp-probe' in terminal
Enter a '1'
copy 'hp:/net/<printer>?ip=<address>'
paste to 'Connection:' box
Enter 'Name:', 'Description:', 'Location:'
Click 'HP' in 'Make:' box
Continue
Choose PPD
Click 'Add Printer'
Set Default Options
Goto Printers\Click on <printer> under 'Queue Name'
Click on 'Administration' then 'Set As Server Default'

Your printer should now show in 'HP Device Manager' and there should be a 'Scan' actions button that starts XSANE.

Richard Cranium 06-15-2010 07:07 PM

Quote:

Originally Posted by mlangdn (Post 4004207)
Yes, you did. The OP also wants to use scanner functionality and it does not work. That is a permissions thingy, not a network issue. The OP can set up the printer in CUPS, and it works fine, except for scanning.

You also missed giving up a solution. I realize its oftentimes easier to criticize a possibly wrong answer than to post a right answer - perhaps you forgot to post your solution?

Part of figuring out the solution is figuring out the correct problem.

If the OP is using an ethernet connection to communicate to his all-in-one device, what good is it for you to tell him about USB devices?


lpallard, perhaps this will help.

mlangdn 06-16-2010 02:10 AM

I probably should have stayed out of this one. I just don't do much on networking.

jannekrille 06-16-2010 03:35 AM

Brilliant!

Quote:

Originally Posted by Richard Cranium
lpallard, perhaps this will help.
The hp-makeuri command helped me get the right syntax on the URI, and ticking the "HP Printer (HPLIP)" in the cups ui instead of a network printer option (which looked logic to me), my network connected HP C5180 came up in the HP device manager with full functionality including scanning as expected. Still, I think the HP device manager should be able to install printers without hazzle like this (remembering the "LC_ALL=$LANG.UTF8 hp-toolbox" yadayada in 13.0)...
Thanks,

Jan C.

lpallard 06-17-2010 09:24 PM

fcaraballo, that did the trick perfectly! was so simple now...

thanks!


All times are GMT -5. The time now is 09:11 AM.