Re: CUPS, USB printers Permission Denied
On Jun 29, 2006, at 6:51 PM, Jan-Espen Pettersen wrote: I just tried /dev/unltp0 and I have the same issues. Basically, I killed all of the jobs, made your change, submitted a test page, watched as nothing happened (it didn't display any messages in the web interface), did a /usr/local/etc/rc.d/cupsd restart, killed the test page, then resubmitted one, and then it mentioned the USB busy will retry in 30 seconds line. I reattached my error_log for today's activities. I will be on the road for the better part of a week, so I will try to help out as much as I can given the circumstances. Thank you everyone for your assistance with this. I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen I did this fix and it enabled the local server that has the printer connected to it to print (a test page anyways) however, when I try to print to the printer through the network via my MacBook Pro (which worked before), I get the message in the CUPS Web Interface: /usr/local/libexec/cups/filter/foomatic-rip failed Basically, I have the same problem reported in the one-message-thread Can't print to CUPS from Macintosh. Does anyone have any ideas? The FreeBSD community has my appreciation for all of its help on this matter. Based on the number of problems associated with this issue (there's this thread, the aforementioned Mac thread, and the cups 1.2 - no output thread), would it be worthwhile to create a new Port named cups-devel (keeping the 1.2.x codebase) and downgrade the existing cups to the latest 1.1.x version until the bugs have been ironed out on the 1.2.x branch (or at least adding an entry to /usr/ports/ UPDATING to warn those updating)? Would 1.2.1 fix these issues (that is the current stable version whereas FreeBSD's CUPS is at 1.2.0), or perhaps the 1.3svn branch? I am unsure where the current problems lay (on the CUPS side, on how it is installed in the FreeBSD environment, or on the FreeBSD environment itself). Earlier in this thread, the issues were primarily related with permissions (since, it was mentioned, CUPS is trying to run with a more reasonable set of permissions instead of via 'root'), but now they appear to be configuration specific. I am willing to try whatever is proposed to help the developers get past these issues. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Sat, 8 Jul 2006 12:43:45 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: Hi, I just installed cups from ports and had a similar problem with printing. Normally I haven't got any problems. The printer is a HL-1430 connected to USB and the error I got was: 'Unable to open USB device usb:/dev/unlpt0 Permission Denied.' Now I don't know if this is relevant in any way. After trying all kinds of solutions I finally decided to simply do chmod 777 /dev/unlpt0, and that solved the problem. Best and kind regards, Rico On Jun 29, 2006, at 6:51 PM, Jan-Espen Pettersen wrote: I just tried /dev/unltp0 and I have the same issues. Basically, I killed all of the jobs, made your change, submitted a test page, watched as nothing happened (it didn't display any messages in the web interface), did a /usr/local/etc/rc.d/cupsd restart, killed the test page, then resubmitted one, and then it mentioned the USB busy will retry in 30 seconds line. I reattached my error_log for today's activities. I will be on the road for the better part of a week, so I will try to help out as much as I can given the circumstances. Thank you everyone for your assistance with this. I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen I did this fix and it enabled the local server that has the printer connected to it to print (a test page anyways) however, when I try to print to the printer through the network via my MacBook Pro (which worked before), I get the message in the CUPS Web Interface: /usr/local/libexec/cups/filter/foomatic-rip failed Basically, I have the same problem reported in the one-message-thread Can't print to CUPS from Macintosh. Does anyone have any ideas? The FreeBSD community has my appreciation for all of its help on this matter. Based on the number of problems associated with this issue (there's this thread, the aforementioned Mac thread, and the cups 1.2 - no output thread), would it be worthwhile to create a new Port named cups-devel (keeping the 1.2.x codebase) and downgrade the existing cups to the latest 1.1.x version until the bugs have been ironed out on the 1.2.x branch (or at least adding an entry to /usr/ports/ UPDATING to warn those updating)? Would 1.2.1 fix these issues (that is the current stable version whereas FreeBSD's CUPS is at 1.2.0), or perhaps the 1.3svn branch? I am unsure where the current problems lay (on the CUPS side, on how it is installed in the FreeBSD environment, or on the FreeBSD environment itself). Earlier in this thread, the issues were primarily related with permissions (since, it was mentioned, CUPS is trying to run with a more reasonable set of permissions instead of via 'root'), but now they appear to be configuration specific. I am willing to try whatever is proposed to help the developers get past these issues. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Jul 8, 2006, at 2:19 PM, Rico Secada wrote: On Sat, 8 Jul 2006 12:43:45 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: Hi, I just installed cups from ports and had a similar problem with printing. Normally I haven't got any problems. The printer is a HL-1430 connected to USB and the error I got was: 'Unable to open USB device usb:/dev/unlpt0 Permission Denied.' Now I don't know if this is relevant in any way. After trying all kinds of solutions I finally decided to simply do chmod 777 /dev/ unlpt0, and that solved the problem. Hello Rico, Thank you for your reply. Your workaround may only work until you reboot your machine and /dev/unlpt0 is re-permission'd. To make that fix more permanent, you will need to add the following to your /etc/ devfs.rules file (feel free to modify the 0660 to something more of your liking). [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups And, add the following to your /etc/rc.conf file. devfs_system_ruleset=system These were outlined earlier on in this thread. Do you have other computers that network print to your printer (and if so, does network printing work for you)? Thank you for your reply. Best and kind regards, Rico On Jun 29, 2006, at 6:51 PM, Jan-Espen Pettersen wrote: I just tried /dev/unltp0 and I have the same issues. Basically, I killed all of the jobs, made your change, submitted a test page, watched as nothing happened (it didn't display any messages in the web interface), did a /usr/local/etc/rc.d/cupsd restart, killed the test page, then resubmitted one, and then it mentioned the USB busy will retry in 30 seconds line. I reattached my error_log for today's activities. I will be on the road for the better part of a week, so I will try to help out as much as I can given the circumstances. Thank you everyone for your assistance with this. I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen I did this fix and it enabled the local server that has the printer connected to it to print (a test page anyways) however, when I try to print to the printer through the network via my MacBook Pro (which worked before), I get the message in the CUPS Web Interface: /usr/local/libexec/cups/filter/foomatic-rip failed Basically, I have the same problem reported in the one-message-thread Can't print to CUPS from Macintosh. Does anyone have any ideas? The FreeBSD community has my appreciation for all of its help on this matter. Based on the number of problems associated with this issue (there's this thread, the aforementioned Mac thread, and the cups 1.2 - no output thread), would it be worthwhile to create a new Port named cups-devel (keeping the 1.2.x codebase) and downgrade the existing cups to the latest 1.1.x version until the bugs have been ironed out on the 1.2.x branch (or at least adding an entry to /usr/ports/ UPDATING to warn those updating)? Would 1.2.1 fix these issues (that is the current stable version whereas FreeBSD's CUPS is at 1.2.0), or perhaps the 1.3svn branch? I am unsure where the current problems lay (on the CUPS side, on how it is installed in the FreeBSD environment, or on the FreeBSD environment itself). Earlier in this thread, the issues were primarily related with permissions (since, it was mentioned, CUPS is trying to run with a more reasonable set of permissions instead of via 'root'), but now they appear to be configuration specific. I am willing to try whatever is proposed to help the developers get past these issues. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Rainer Heesen --- wrote: I have a Minolta PagePro 1350 printer. When I use the workaround I get the error 'raw printers cannot use file: devices!' Is there another workaround? [EMAIL PROTECTED] ~$ lpstat -d -p -t system default destination: Minolta printer Minolta disabled since Fri Jun 30 17:14:11 2006 - Raw printers cannot use file: devices! scheduler is running system default destination: Minolta device for Minolta: /dev/lpt0 Minolta accepting requests since Fri Jun 30 17:14:11 2006 printer Minolta disabled since Fri Jun 30 17:14:11 2006 - Raw printers cannot use file: devices! Minolta-47 rainer 195584 Fri Jun 30 17:14:11 2006 -- I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen The problem is that read operations on usb printers might just block/hang with no data from the printer (?). ulpt doesn't have non-blocking I/O, so I've made a patch that simply times out read operations, and disables further reads if it detects a blocking/stall condition. It is possible that this breaks the back-channel, as I'm unsure if we can expect a printer to send inbound data before we actually write anything out? It looks like there are similar problems with other backends? I've only looked at the usb backend yet. Jan-Espen Pettersen signature.asc Description: OpenPGP digital signature
Re: CUPS, USB printers Permission Denied
The problem is that read operations on usb printers might just block/hang with no data from the printer (?). ulpt doesn't have non-blocking I/O, so I've made a patch that simply times out read operations, and disables further reads if it detects a blocking/stall condition. It is possible that this breaks the back-channel, as I'm unsure if we can expect a printer to send inbound data before we actually write anything out? It looks like there are similar problems with other backends? I've only looked at the usb backend yet. Sorry, the attachment got cleared by mailman. http://www.radiotube.org/patch-backend_usb-unix.c Put it into /usr/ports/print/cups-base/files if you would like to test it. signature.asc Description: OpenPGP digital signature
Re: CUPS, USB printers Permission Denied
On Saturday 01 July 2006 12:40, Jan-Espen Pettersen wrote: The problem is that read operations on usb printers might just block/hang with no data from the printer (?). ulpt doesn't have non-blocking I/O, so I've made a patch that simply times out read operations, and disables further reads if it detects a blocking/stall condition. It is possible that this breaks the back-channel, as I'm unsure if we can expect a printer to send inbound data before we actually write anything out? It looks like there are similar problems with other backends? I've only looked at the usb backend yet. Sorry, the attachment got cleared by mailman. http://www.radiotube.org/patch-backend_usb-unix.c Put it into /usr/ports/print/cups-base/files if you would like to test it. That works for me with my USB Lexmark E210. (The file:/ URI workaround also works). Thanks! Are you coordinating anything with the cups project or the port maintainer to explore this issue? JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
I have a Minolta PagePro 1350 printer. When I use the workaround I get the error 'raw printers cannot use file: devices!' Is there another workaround? [EMAIL PROTECTED] ~$ lpstat -d -p -t system default destination: Minolta printer Minolta disabled since Fri Jun 30 17:14:11 2006 - Raw printers cannot use file: devices! scheduler is running system default destination: Minolta device for Minolta: /dev/lpt0 Minolta accepting requests since Fri Jun 30 17:14:11 2006 printer Minolta disabled since Fri Jun 30 17:14:11 2006 - Raw printers cannot use file: devices! Minolta-47 rainer 195584 Fri Jun 30 17:14:11 2006 -- I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
I just tried /dev/unltp0 and I have the same issues. Basically, I killed all of the jobs, made your change, submitted a test page, watched as nothing happened (it didn't display any messages in the web interface), did a /usr/local/etc/rc.d/cupsd restart, killed the test page, then resubmitted one, and then it mentioned the USB busy will retry in 30 seconds line. I reattached my error_log for today's activities. I will be on the road for the better part of a week, so I will try to help out as much as I can given the circumstances. Thank you everyone for your assistance with this. I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen signature.asc Description: OpenPGP digital signature
Re: CUPS, USB printers Permission Denied
I found that the usb backend stalled here before actually doing any work. Before I've done any actual debugging of the backend, I suspect that it is being blocked on a status read attempt, though this is only my current guess. Here is a workaround: In printers.conf () you will probably find a line like this: DeviceURI usb:/dev/ulpt0 change usb: to file:, so that it looks something like this: DeviceURI file:/dev/ulpt0 Then restart cups. Cups will not read any status information from the printer, but at least it can print. Be warned about unknown side effects. :) Jan-Espen Pettersen Thanks, that did fix the problem! I'll be adding your hint to the PR/99460. Nicolas. -- FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc pgp8ROuPyslzH.pgp Description: PGP signature
Re: CUPS, USB printers Permission Denied
OOPS! I apologize to everyone on this list for not compressing my error_log file and wasting your time and bandwidth downloading it. On Jun 27, 2006, at 7:43 PM, Anthony Agelastos wrote: On Jun 25, 2006, at 11:37 PM, Nicolas Blais wrote: On Sunday 25 June 2006 23:32, John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. After playing with the permissions on ulpt, I can print a test page, though half of it comes out after I manually feed my printer. After that half-printed page, anything I try to print after will get me a USB port busy; will retry in 30 seconds... message and it never prints. My system essentially does the same thing (the 30 second message that is). After changing my LogLevel and killing and resubmitting a test page, here is my error_log file. Does anyone else have any idea what I can try next? Everyone on this list has been wonderful with this thread. Thanks again. error_log -- FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Jun 25, 2006, at 11:37 PM, Nicolas Blais wrote: On Sunday 25 June 2006 23:32, John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. After playing with the permissions on ulpt, I can print a test page, though half of it comes out after I manually feed my printer. After that half-printed page, anything I try to print after will get me a USB port busy; will retry in 30 seconds... message and it never prints. My system essentially does the same thing (the 30 second message that is). After changing my LogLevel and killing and resubmitting a test page, here is my error_log file. Does anyone else have any idea what I can try next? Everyone on this list has been wonderful with this thread. Thanks again. error_log.bz2 Description: Binary data -- FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Anthony Agelastos wrote: On Jun 25, 2006, at 11:37 PM, Nicolas Blais wrote: On Sunday 25 June 2006 23:32, John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. After playing with the permissions on ulpt, I can print a test page, though half of it comes out after I manually feed my printer. After that half-printed page, anything I try to print after will get me a USB port busy; will retry in 30 seconds... message and it never prints. My system essentially does the same thing (the 30 second message that is). After changing my LogLevel and killing and resubmitting a test page, here is my error_log file. Does anyone else have any idea what I can try next? Everyone on this list has been wonderful with this thread. Thanks again. I'm not seeing any errors in the log - assuming that the section that contains the job you mention starts at 19:29:47 on Jun 27th. I see job 9 start and I see job 9 canceled but I don't see any errors in between. A completely random thing: have you tried using /dev/unltp0 instead of /dev/ulpt0? It shows up as USB Printer # (no reset) in the cups web interface on my system. HTH, Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Monday 26 June 2006 00:15, Micah wrote: John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. JN Check the error log for more verbose messages (located in /var/log/cups/ or from the cups web interface). I just discovered the web interface, so I'll keep an eye on it. From what I've read while trying to solve my failure is that some of the backends/drivers don't work properly with the new cups. We're probably dealing with several simultaneous failures that need to be worked out. That's the conclusion I'm coming to as well. My sense so far is that most of the issues stem from the new cups trying to do as little as possible as root and from other pieces assuming / requiring that they will be run as root. Obviously the /dev/ulpt permissions thing is a result of this. Another case in point is the cups-pdf backend. It stopped working after the cups upgrade until I made it setuid root. FWIW, cups is working with an Epson 777 and the gimp-print drivers using /dev/unlpt0. It seems to work as well as it did before once I got the permissions issue worked out. Good deal. My network printers at work are also working since the upgrade, so all hope is not lost. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On вс, 2006-06-25 at 23:32 -0400, John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed Could you set LogLevel debug in your /usr/local/etc/cups/cupsd.conf file, and then mail me /var/log/cups/error_log ? Whatever your problem is - the answer is there. I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. JN -- regards, Sergey Akifyev AGAVA Software Ltd http://agava.com PGP key available from: ftp://ftp.gascom.ru/pub/PGP-keys/asa.txt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CUPS, USB printers Permission Denied
Hello all, I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Hello and thank you for the very quick reply. On Jun 25, 2006, at 7:34 PM, albi wrote: On Sun, 25 Jun 2006 19:28:35 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 are the permissions on /dev/ulpt0 correct ? I have no idea what it is supposed to be. %ls -l /dev/ulpt0 crw-r--r-- 1 root operator0, 68 Jun 25 19:01 /dev/ulpt0 if the printer runs fine as root you know it's likely a permission-problem What's the best way to run it as root? When I log into the CUPS web interface as root and try to print a test page, it gives me the message I posted above. If, as root, I try to print a Postscript file via lp, it does nothing. Thank you all again for your assistance. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I'm going to try backing up and blowing away my etc/cups dir, re-updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Would you reply with the output you get when you run ls -l /dev/ ulpt0 please? Thanks, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: Hello all, I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Same here. I have opened a bug report : http://www.freebsd.org/cgi/query-pr.cgi?pr=99460 -- FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc pgpU3SZDzC3ik.pgp Description: PGP signature
Re: CUPS, USB printers Permission Denied
On Sun, 25 Jun 2006 19:28:35 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 are the permissions on /dev/ulpt0 correct ? if the printer runs fine as root you know it's likely a permission-problem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Hello and thank you for your reply. On Jun 25, 2006, at 7:47 PM, Garrett Cooper wrote: Would you reply with the output you get when you run ls -l /dev/ ulpt0 please? Thanks, %ls -l /dev/ulpt0 crw-r--r-- 1 root operator0, 68 Jun 25 19:01 /dev/ulpt0 Thank you for your help. Is this as it should be? -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Anthony Agelastos wrote: Hello and thank you for the very quick reply. On Jun 25, 2006, at 7:34 PM, albi wrote: On Sun, 25 Jun 2006 19:28:35 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 are the permissions on /dev/ulpt0 correct ? I have no idea what it is supposed to be. %ls -l /dev/ulpt0 crw-r--r-- 1 root operator0, 68 Jun 25 19:01 /dev/ulpt0 if the printer runs fine as root you know it's likely a permission-problem What's the best way to run it as root? When I log into the CUPS web interface as root and try to print a test page, it gives me the message I posted above. If, as root, I try to print a Postscript file via lp, it does nothing. Thank you all again for your assistance.___ I had the same problem. chown ulpt0 to group cups and add group write. That will fix it. I added the following to /etc/devfs.rules to make the fix permanent: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups Don't forget to restart devfs. HTH, Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
Anthony Agelastos wrote: On Jun 25, 2006, at 9:05 PM, Micah wrote: Anthony Agelastos wrote: Hello and thank you for the very quick reply. On Jun 25, 2006, at 7:34 PM, albi wrote: On Sun, 25 Jun 2006 19:28:35 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 are the permissions on /dev/ulpt0 correct ? I have no idea what it is supposed to be. %ls -l /dev/ulpt0 crw-r--r-- 1 root operator0, 68 Jun 25 19:01 /dev/ulpt0 if the printer runs fine as root you know it's likely a permission-problem What's the best way to run it as root? When I log into the CUPS web interface as root and try to print a test page, it gives me the message I posted above. If, as root, I try to print a Postscript file via lp, it does nothing. Thank you all again for your assistance.___ I had the same problem. chown ulpt0 to group cups and add group write. That will fix it. I added the following to /etc/devfs.rules to make the fix permanent: I did chgrp cups /dev/ulpt0 chmod g+w /dev/ulpt0 [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups I did not have a /etc/devfs.rules file, so I copied /etc/defaults/devfs.rules to /etc/devfs.rules and added what you suggested at the bottom of it. Don't forget to restart devfs. When I do /etc/rc.d/devfs restart it seems like nothing happens. So, I rebooted my machine and the group was back to operator. What am I doing wrong? Thank you so much for your assistance with this. Oops, I've had a custom devfs.rules for so long that I forgot that you need the following in rc.conf: devfs_system_ruleset=system I would also create a new /etc/devfs.rules that only has the three lines as shown above since that's pretty close to what mine has. I'm not sure what all the hide/unhide stuff in the default rules does. Issuing a /etc/rc.d/devfs restart /should/ cause ownership and permissions to change - at least it did for me. You can always unplug the USB cable or power-cycle the printer to test it. HTH, Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Sunday 25 June 2006 23:32, John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. After playing with the permissions on ulpt, I can print a test page, though half of it comes out after I manually feed my printer. After that half-printed page, anything I try to print after will get me a USB port busy; will retry in 30 seconds... message and it never prints. -- FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc pgpyMgvKTbUbJ.pgp Description: PGP signature
Re: CUPS, USB printers Permission Denied
John Nielsen wrote: On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 Doing a `dmesg | grep ulpt0`, I get ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode The printer itself works (I plugged it directly into my MacBook and it printed fine). To ensure it wasn't an awkward build error, I issued a `portupgrade -fR cups` and rebuilt it and everything it is dependent upon. Does anyone else have any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL i386). Just a me too so far with an el cheapo Lexmark USB laser printer (E210). Are you using the foomatic script? I am, with a PPD from linuxprinting.org. I am not sure, actually (it was so long ago, I do not remember how I got it working). I installed hpijs and Make and Model mentions Foomatic/hpijs, so perhaps. I am sorry I could not be of more assistance with this question. I'm going to try backing up and blowing away my etc/cups dir, re- updating the port, reinstalling foomatic and my ppd, and see if that makes any difference. I'll post whatever I learn. Thank you for posting your findings and for your quick reply. No luck. I basically re-installed everything (including config files and the foomatic filters) from scratch. I also changed the permissions on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions error, but I still get nothing from the printer. The message that comes up in the cups web interface when I try to print a test page is: /usr/local/libexec/cups/backend/usb failed I did get my other printer (on a different machine) working with cups 1.2.0 by just changing the permissions on the device node. I hadn't ever set this printer up with cups before today, though. It's using gutenprint. JN Check the error log for more verbose messages (located in /var/log/cups/ or from the cups web interface). From what I've read while trying to solve my failure is that some of the backends/drivers don't work properly with the new cups. We're probably dealing with several simultaneous failures that need to be worked out. FWIW, cups is working with an Epson 777 and the gimp-print drivers using /dev/unlpt0. It seems to work as well as it did before once I got the permissions issue worked out. HTH, Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CUPS, USB printers Permission Denied
On Jun 25, 2006, at 9:05 PM, Micah wrote: Anthony Agelastos wrote: Hello and thank you for the very quick reply. On Jun 25, 2006, at 7:34 PM, albi wrote: On Sun, 25 Jun 2006 19:28:35 -0400 Anthony Agelastos [EMAIL PROTECTED] wrote: I updated CUPS and I cannot print to my USB laser printer. The web interface shows the following: hp_LaserJet_1160Le (Default Printer) Unable to open USB device usb:/dev/ulpt0: Permission denied Description: Hewlett-Packard LaserJet 1160Le Location: Den Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) Printer State: stopped, accepting jobs, published. Device URI: usb:/dev/ulpt0 are the permissions on /dev/ulpt0 correct ? I have no idea what it is supposed to be. %ls -l /dev/ulpt0 crw-r--r-- 1 root operator0, 68 Jun 25 19:01 /dev/ulpt0 if the printer runs fine as root you know it's likely a permission-problem What's the best way to run it as root? When I log into the CUPS web interface as root and try to print a test page, it gives me the message I posted above. If, as root, I try to print a Postscript file via lp, it does nothing. Thank you all again for your assistance.___ I had the same problem. chown ulpt0 to group cups and add group write. That will fix it. I added the following to /etc/devfs.rules to make the fix permanent: I did chgrp cups /dev/ulpt0 chmod g+w /dev/ulpt0 [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups I did not have a /etc/devfs.rules file, so I copied /etc/defaults/ devfs.rules to /etc/devfs.rules and added what you suggested at the bottom of it. Don't forget to restart devfs. When I do /etc/rc.d/devfs restart it seems like nothing happens. So, I rebooted my machine and the group was back to operator. What am I doing wrong? Thank you so much for your assistance with this. HTH, Micah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]