Re: cups newbie
On Mon, Aug 21, 2006 at 02:29:24PM +0200, Ionel Mugurel Ciobica wrote: > Thank you all for replying to my post. I will answer individually > to all of you. > > If anyone still know how to help me I will appreciate any hint. > > > > Russell L. Harris wrote: > > To use the CUPS webadmin page, the username is 'root' and the > > password is the password of 'root'. > > I can't get to that, I am not asked any user/password. > http://localhost:631/ works but none of the links from there like > http://localhost:631/admin/ etc. > > Colin wrote: > > Or you could add your user to the lpadmin group and use that user's > > name and password. > > I can't do that, I am not asked any user/password. (See my original > post). > ... I'm coming into this in the middle, so I don't know what your original post had in it. Yet, your response to the above suggests a possible misunderstanding of the thought offered by Colin. >From the console or an xterm window, type id and see if you, the user, have "lpadmin" listed as one of your groups. If so, then do send the contents of your cupsd.conf file, since the following won't apply (unless you never logged completely off since being added to the group--if so, see below). If not, log in as root at the console or an xterm window. Then type adduser yourLoginName lpadmin Log out of X-window COMPLETELY, to the point that you must log back in as the user at the console (or gdm/kdm/whatever), and restart X-window. Now try again to access things under localhost:631, using your name and password (not root's) when asked. HTH, Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups newbie
On Mon, Aug 21, 2006 at 02:29:24PM +0200, Ionel Mugurel Ciobica wrote: > Thank you all for replying to my post. I will answer individually > to all of you. > > If anyone still know how to help me I will appreciate any hint. > > > [snip lots of info about how the cups server is denying access] you should probably provide us you a copy of your /etc/cups/cupsd.conf (if you haven't already, I've lost the beginning of this thread). A signature.asc Description: Digital signature
Re: cups newbie
Thank you all for replying to my post. I will answer individually to all of you. If anyone still know how to help me I will appreciate any hint. Russell L. Harris wrote: > To use the CUPS webadmin page, the username is 'root' and the > password is the password of 'root'. I can't get to that, I am not asked any user/password. http://localhost:631/ works but none of the links from there like http://localhost:631/admin/ etc. Colin wrote: > Or you could add your user to the lpadmin group and use that user's > name and password. I can't do that, I am not asked any user/password. (See my original post). Michael Voggenreiter wrote: > Hi, > if you try to reach the page from an other machine you have to allow > the access from other machines in the network in your cups config. Yes, I know. Thank you. I am on the same machine. Rodolfo Medina wrote: > Hi, > > maybe the procedure I followed to make my Epson Stylus C20UX work > with Sarge can be helpful. > Thank you. But the procedure stops at http://localhost:631 . I can't get anywhere when I click on manage printers. The browser is stuck to the page and trying to connect to something. Finally it give connection time out. M-L wrotte: > 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 > Mine is: ciobica:# lpinfo -v lpinfo: cups-get-devices failed: client-error-forbidden Exit 1 as explained in my original post. Thank you all for your help. Best regards, Ionel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups newbie
Russell L. Harris wrote: > Ionel Mugurel Ciobica <[EMAIL PROTECTED]> writes: >> P.S. I run sarge and all install is standard (via apt-get), no custom >> packages. > > To use the CUPS webadmin page, the username is 'root' and the password > is the password of 'root'. > Or you could add your user to the lpadmin group and use that user's name and password. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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
Re: cups newbie
Ionel Mugurel Ciobica <[EMAIL PROTECTED]> writes: > Hi all, > > Someone knows few thinks about cups? I am trying to set up a printer > > [...] > > I try to follow some tutorials, howto's and faq's from cups but I > can't figure it out... Hi, maybe the procedure I followed to make my Epson Stylus C20UX work with Sarge can be helpful. Bye, Rodolfo -- Operating system: Debian GNU/Linux 3.1 r2 "Sarge". After the Debian base installation, I had chosen the manual packages selection and installed the following packages: make gcc less x-window-system gnome-session gnome-panel nautilus gnome-applets gnome-control-center gnome-system-tools gnome-core epiphany-browser libc6-dev kernel-source-2.4.27 cvs autotools-dev build-essential dpatch dpkg-dev g++ g++-3.3 libice-dev libjpeg62-dev liblockfile-dev libncurses5-dev libpng12-dev libpng3-dev libsm-dev libstdc++5-3.3-dev libtiff4-dev libtiffxx0 libungif4-dev libungif4g libx11-dev libxaw7-dev libxext-dev libxi-dev libxmu-dev libxmuu-dev libxp-dev libxpm-dev libxrandr-dev libxrender-dev libxt-dev libxtrap-dev libxtst-dev libxv-dev patch pm-dev render-dev texinfo x-dev xaw3dg xaw3dg-dev xlibs-dev xlibs-static-dev zlib1g-dev . I did: # apt-get install cupsys cupsys-bsd cupsys-client libcupsimage2 cupsys-driver-gimpprint cupsys-driver-gimpprint-data gs-esp . Now, *without connecting to internet*, I pointed my web browser to: http://localhost:631 . From there, Manage Printers > Add Printer > root and root password > > epson, rodolfo, Epson Stylus C20UX, Continue > > device: USB Printer #1 (EPSON Stylus C20), Continue > > Make: EPSON, Continue > > Model: Epson Stylus C20UX - CUPS+Gimp-Print v4.2.7 (en), Continue , and rebooted (maybe not necessary). Cancel existing printing jobs: $ lpstat epson-1 rodolfo2306048 Tue 01 Aug 2006 11:53:38 CEST $ cancel epson-1 Password for rodolfo on localhost? [rodolfo's user password] . To cancel jobs owned by rodolfo, $ cancel -u rodolfo --- Cleaning etc... --- # apt-get install escputil To check ink level: # escputil -i -r /dev/usb/lp0 . To clean heads: # escputil -c . To use escputil as normal user, I did: # adduser rodolfo lp , then rebooted. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups newbie
Ionel Mugurel Ciobica schrieb: > 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. > > Hi, if you try to reach the page from an other machine you have to allow the access from other machines in the network in your cups config. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups newbie
Ionel Mugurel Ciobica <[EMAIL PROTECTED]> writes: > P.S. I run sarge and all install is standard (via apt-get), no custom > packages. To use the CUPS webadmin page, the username is 'root' and the password is the password of 'root'. I do not remember any difficulties with CUPS under Sarge. When I switched to Etch there were a few problems, but these disappeared a week or two ago when I upgraded to CUPS 1.2.2-1. RLH -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups -newbie
my kernel is 2.4.18 i typed "modprobe lp irq=7", but saw no change. flwg command "#cat output.prn >dev/usb/lp0" worked well.But "#lpr print.ps", found that either or both usb-uhci and/or printer modules are indispensable. without one or both of them it would produce a warning "bash: /dev/usb/lp0: No such device". # lpinfo -v lpinfo: Unable to connect to server: Connection refused "lspci -v -s 00:07.2" gave this: "00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 16) (prog-if 00 [UHCI]) Subsystem: Unknown device 0925:1234 Flags: bus master, medium devsel, latency 32, IRQ 9 I/O ports at d400 [size=32] Capabilities: [80] Power Management version 2" # "modprobe lp irq=9" produced this: "/lib/modules/2.4.18-k7/kernel/drivers/char/lp.o: invalid parameter parm_irq /lib/modules/2.4.18-k7/kernel/drivers/char/lp.o: insmod /lib/modules/2.4.18-k7/kernel/drivers/char/lp.o failed" and "#lpinfo -v" gave this: "lpinfo: Unable to connect to server: Connection refused". Similar warnings I got, when commands such as "#lpadmin -d printer" were typed. What does it mean? How to solve this problem? Setyo Nugroho > if your using kernel 2.4 I believe you need to specify the > option on the command line(or in modules.conf) something > like: > > modprobe lp irq=7 > > see if it speeds it up ?? > > nate > > > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups -newbie
Jaye Inabnit ke6sls said: > I was just testing different cups drivers for my HP 560c printer. I have > a desktop and a laptop. My desktop driver was S L O W to print. When I I don't know if it's related, but I had a similar problem on FreeBSD with cups, after a couple months of uptime all-of-a-sudden CUPS was printing SLOW(slow as in 1 page per 10 minutes). Turns out my parallel port was not configured for interrupt driven operation(which, by default is off in linux, and apparently freeBSD). if your using kernel 2.2 do something like: echo 7 >/proc/parport/0/irq (where 7 is the IRQ of your parallel port, most often it is 7) if your using kernel 2.4 I believe you need to specify the option on the command line(or in modules.conf) something like: modprobe lp irq=7 see if it speeds it up ?? nate -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups -newbie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 09 September 2002 10:16 am, Setyo Nugroho wrote: > Hallo Rafael, > "echo "hello, world" | lpr -Pcanon1" produces nothing. > > further details: > cups is active. > > The flwg is conf of canon1 from http://localhost:631/printers/ > Description: No Information Available > Location: localhost > Printer State: idle, accepting jobs. > "Ready to print." > Device URI: usb:/dev/usb/lp0 > > but test print doesn't work at all. > > > Then flwg checks: > > 1. lpinfo -v > lpinfo: cups-get-devices failed: server-error-service-unavailable > > 2. # lpadmin -p canon1 -E -v parallel:/dev/usb/lp0 -m bjc-s450.ppd > lpadmin: add-printer failed: server-error-service-unavailable > > Could you help me please.. > > Setyo > > On Mon, 2002-09-09 at 18:04, Rafael Gomes Sasaki wrote: > > On Mon, Sep 09, 2002 at 05:19:07PM +0200, Setyo Nugroho wrote: > > > the flwg were also tested: > > > 1. "# echo "hello, world" > /dev/lp0" produced no answer. > > > 2. "echo "hello, world" > /dev/lp1", produced "bash: /dev/lp1: No such > > > device or address" > > > > Try echo "hello, world" | lpr -P > > > > HTH, > > Rafael Sasaki Greetings Rafael: I was just testing different cups drivers for my HP 560c printer. I have a desktop and a laptop. My desktop driver was S L O W to print. When I set up my laptop, I picked another driver for this and was amazed at how fast it was. I decided I would try some of the other drivers that I had available on the desktop. At least one of those drivers would produce no output at all to the printer. The print job was not sitting in queue and was reported completed. That *may* be the problem with your setup .. If there are other drivers (maybe more generic?) then try one and see if it works. gl tatah - -- Jaye Inabnit\ARS ke6sls\/A GNU-Debian linux user\/ http://www.qsl.net/ke6sls If it's stupid, but works, it ain't stupid. I SHOUT JUST FOR FUN. Free software, in a free world, for a free spirit. Please Support freedom! -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9fVgKZHBxKsta6kMRAugRAJ9xbh6r1+bmCKOoxFF4072zTcy4DACeKI7r ydnzF0AqD+IGXPZZMpfBhVo= =+pfx -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups -newbie
Hallo Rafael, "echo "hello, world" | lpr -Pcanon1" produces nothing. further details: cups is active. The flwg is conf of canon1 from http://localhost:631/printers/ Description: No Information Available Location: localhost Printer State: idle, accepting jobs. "Ready to print." Device URI: usb:/dev/usb/lp0 but test print doesn't work at all. Then flwg checks: 1. lpinfo -v lpinfo: cups-get-devices failed: server-error-service-unavailable 2. # lpadmin -p canon1 -E -v parallel:/dev/usb/lp0 -m bjc-s450.ppd lpadmin: add-printer failed: server-error-service-unavailable Could you help me please.. Setyo On Mon, 2002-09-09 at 18:04, Rafael Gomes Sasaki wrote: > On Mon, Sep 09, 2002 at 05:19:07PM +0200, Setyo Nugroho wrote: > > the flwg were also tested: > > 1. "# echo "hello, world" > /dev/lp0" produced no answer. > > 2. "echo "hello, world" > /dev/lp1", produced "bash: /dev/lp1: No such > > device or address" > > Try echo "hello, world" | lpr -P > > HTH, > Rafael Sasaki > > -- > Debian GNU/Linux: Pure Free Software > A matter of Liberty > http://debian-br.cipsga.com.br > http://www.debian.org > http://www.fsf.org > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups -newbie
On Mon, Sep 09, 2002 at 05:19:07PM +0200, Setyo Nugroho wrote: > the flwg were also tested: > 1. "# echo "hello, world" > /dev/lp0" produced no answer. > 2. "echo "hello, world" > /dev/lp1", produced "bash: /dev/lp1: No such > device or address" Try echo "hello, world" | lpr -P HTH, Rafael Sasaki -- Debian GNU/Linux: Pure Free Software A matter of Liberty http://debian-br.cipsga.com.br http://www.debian.org http://www.fsf.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]