Re: cups newbie
On Friday 11 August 2006 04:53, Ionel Mugurel Ciobica shared this with us all:
>--> Hi all,
>-->
>--> Someone knows few thinks about cups? I am trying to set up a printer
>--> and http://localhost:631 give a page from where if I choose anything
>--> the browser just hangs with the message "Waiting for localhost...".
>-->
>--> I have try the hard way, without the webadmin interface, but without
>--> any luck. Anything I do ends up with errors. For example thinks like
>--> "lpadmin -p printer -E -v device -m ppd" give:
>-->
>--> lpadmin: add-printer (enable) failed: client-error-forbidden
>-->
>--> or a simple "lpinfo -v" give:
>-->
>--> lpinfo: cups-get-devices failed: client-error-forbidden
>-->
>--> I changed the "LogLevel debug" and I found this in the logs:
>-->
>--> PID 2241 stopped with status 13!
>--> SendError: 7 code=403 (Forbidden)
>-->
>--> I try to follow some tutorials, howto's and faq's from cups but I
>--> can't figure it out... Anyone know why I can't get the
>--> http://localhost:631/admin/ to work or what is this
>--> client-error-forbidden error and how do I solve it?
>-->
>--> Thank you for your help.
>-->
>--> Ionel
>-->
>-->
>--> P.S. I run sarge and all install is standard (via apt-get), no custom
>--> packages.
>-->
>-->
I am not certain that this will help, but I have had quite a bit of trouble
with Cups in etch, for many days now, and still don't have it working. I have
had some help from my LUG and it seems my problem might be udev, and I have
to read up on that.
So here is what I have done so far and what has been advised in case yours is
not a udev problem.
With cups 1.2.2-1 for an Epson C43UX printer
# adduser to lpadmin so that you don't have to be root.
This was suggested:-
From the CUPS forum, an 'lpinfo -v' should include entries like -
direct usb:/dev/usb/lp0
direct usb:/dev/usb/lp1
direct usb:/dev/usb/lp2
direct usb:/dev/usb/lp3
direct usb:/dev/usb/lp4
My result was:-
# lpinfo -v
network socket
network beh
network http
network ipp
network lpd
This was suggested:-
Does your system report anything like that? Do you need to modprobe usblp?
My result was there was no return from that command.
The next suggestion was this:-
Does the CUPS backend /usr/lib/cups/backend/usb exist? is it executable?
My answer to both was "yes"
This was also contributed by someone having a problem like my own but the
printer still didn't work:-
A bit of googling [1] discovered that I should
mkdir /dev/usb
mknod /dev/usb/lp0 c 180 0
I did these things, and next time I started cups, the printer was
detected, and I only had to press the add print button for it to be
added. interestingly the printer uri was
usb://EPSON/Stylus%20COLOR%20760. Things were looking good.
I went to the printer page and pressed "print test page" button.
The job was added, and the printer status changed to "Printer not
connected, retrying in 30 sec"
These were supplied as worth reading:-
[1] http://www.linux-usb.org/USB-guide/x342.html &
http://nuclear.ucdavis.edu/protected/computing/usb_printing.txt
http://osr600doc.sco.com/en/PR_gimpprint/x456.html - has a word of
caution re: USB printers
http://forums.debian.net/viewtopic.php?t=7529&sid=14b5d9daf313e4642ed13847983e5b24
In dmesg my printer is detected thus:-
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0
proto 2 vid 0x04B8 pid 0x0005
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
At the end I get this:-
Starting Common Unix Printing System: cupsldp: driver loaded but no devices
found.
This was the final suggestion:-
From your reports, it seems the required device (/dev/usb/lpx) isn't
present, which is starting to point towards udev, if indeed etch uses
udev. If so, then I don't think explicitly creating the device with
mknod will see it persist through a reboot. Udev does wonderful magic,
but it can be horrible to deal with when it fails to perform the magic
you need.
Hope this helps, and if you get your printer to work, could you please post to
this list, as I had no problems with this printer in sarge, using an earlier
version of cups. There is at least one other that is having problems.
Thank you.
Charlie
--
Registered Linux User:- 329524
+++++++++++++++++++++++++++++++++++
Live your life, do your work, then take your
hat. .......................................Henry David Thoreau
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Linux Debian Etch
Reply to:
- References:
- cups newbie
- From: Ionel Mugurel Ciobica <tgakic@chem.tue.nl>