Re: multiple probs with cups 1.1.18.0-4
Stephen Hilton said: # dmesg | egrep -i 'lp|parall' ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc1: Parallel port at port 0x278-0x27f irq 8 on isa0 lpt1: Printer on ppbus1 lpt1: Interrupt-driven port ppi1: Parallel I/O on ppbus1 Doug, What does your KERNEL config file look like for LPT ports? Mine is setup like this: # Parallel ports device ppc0at isa? irq 7 device ppc1at isa? irq 5 device ppbus # Parallel port bus (required) device lpt # Printer Yes, except ppc1 is at irq8 I noticed your 2nd port is detected at IRQ 8, is this an add-in PCI based port or what? yes, it is an add-in ISA card What is your printing status now, USB printers working with CUPS, but still no LPT port printers recognized? Haven't tried USB yet, concentrating on getting two parallel printers up first. Very strange. For a while, CUPS (via lpinfo -v) was showing both parallel ports. Now it only recognizes lpt0 (the internal). Seem to be printing OK on either printer when it's attached to lpt0. Still cannot use the configure printer option in http interface, however. -- Regards, Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
multiple probs with cups 1.1.18.0-4
Hello, I'm not really sure if QUESTIONS is the right place to start with this issue but here goes. (BTW, I've googled the mailing archives for both FreeBSD and CUPS, read TFMs, and used the article posted on freebsddiary.org) My intention is to build a print server supporting 2 parallel and two USB printers. I'm running 4.7-STABLE and have built world and a custom kernel on Jan 13 2003. I've done a fresh cvsup of the ports system this morning to get the latest parts of the CUPS system. make and make install went fine and I have launched the cupsd via /usr/local/etc/rc.d/cups.sh start Problems start occurring at this point. Here are the issues I'm having: 1. CUPS does not see my parallel ports. # dmesg | egrep -i 'lp|parall' ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc1: Parallel port at port 0x278-0x27f irq 8 on isa0 lpt1: Printer on ppbus1 lpt1: Interrupt-driven port ppi1: Parallel I/O on ppbus1 # lpinfo -v network socket network http network ipp network lpd serial serial:/dev/ttyd0?baud=115200 serial serial:/dev/ttyd1?baud=115200 direct usb:/dev/ulpt0 direct usb:/dev/unlpt0 So I'm not seeing either parallel printer. Not sure if this is a CUPS issue or FreeBSD issue at this point. 2. CUPS http interface broke If I point a browser at the CUPS host: http://cupsserver:631/admin I see the admin page, but the navbar across the top is missing, all I see is the ALT text. The cups /var/log/cups/access_log shows 403 errors for all /images/*gif. When I attempt to add a new printer via http interface by issuing http://cupsserver:631/printers The browser returns an alert... The document contains no data and the /var/log/cups/error_log says... W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! If I try to add a new printer with the URL: http://cupsserver:631/admin/?op=add-printer I go to the next page of the wizard and fill in the printer form, but a submission returns the same errors as above. 3. Cannot add printers via CLI: If I try to add a new printer from a CLI, I see... # lpadmin -p LaserJet -E -v parallel:/dev/lpt0 -m laserjet.ppd lpadmin: add-printer (set device) failed: client-error-not-possible the /var/log/cups/error_log reports: I [03/Feb/2003:12:20:52 -0600] New printer 'LaserJet' added by 'root'. E [03/Feb/2003:12:20:52 -0600] add_printer: bad device-uri attribute 'parallel:/dev/lpt0'! If anyone suggestions on where to go from here I'd appreciate it. Perhaps someone has successfully installed and is using the latest CUPS and could provide some pointers. -- Regards, Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: multiple probs with cups 1.1.18.0-4
I played with Cups about a month ago, here are my thoughts I've done a fresh cvsup of the ports system this morning to get the latest parts of the CUPS system. make and make install went fine and I have launched the cupsd via /usr/local/etc/rc.d/cups.sh start Problems start occurring at this point. Here are the issues I'm having: 1. CUPS does not see my parallel ports. # dmesg | egrep -i 'lp|parall' ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc1: Parallel port at port 0x278-0x27f irq 8 on isa0 lpt1: Printer on ppbus1 lpt1: Interrupt-driven port ppi1: Parallel I/O on ppbus1 I had the same problem with the parallel port. I had to reboot the machine with the printer plugged in and turned on for it to show up. 2. CUPS http interface broke If I point a browser at the CUPS host: http://cupsserver:631/admin I see the admin page, but the navbar across the top is missing, all I see is the ALT text. The cups /var/log/cups/access_log shows 403 errors for all /images/*gif. When I attempt to add a new printer via http interface by issuing http://cupsserver:631/printers The browser returns an alert... The document contains no data and the /var/log/cups/error_log says... W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! W [03/Feb/2003:12:11:16 -0600] Possible DoS attack - more than 10 clients connecting from 172.16.1.33! I did not have this problem, sorry. I would suggest you double check which hosts you are allowing to connect. There are 2(?) spots in the cupsd.conf file to check/change depending on if you are using it as a headless server (like me) or a desktop. Wouldn't be a bad idea to limit it with hosts.allow too. If I try to add a new printer with the URL: http://cupsserver:631/admin/?op=add-printer I go to the next page of the wizard and fill in the printer form, but a submission returns the same errors as above. 3. Cannot add printers via CLI: If I try to add a new printer from a CLI, I see... # lpadmin -p LaserJet -E -v parallel:/dev/lpt0 -m laserjet.ppd lpadmin: add-printer (set device) failed: client-error-not-possible I got the 'client error not possible' when I was trying to force cups to recognize the parallel printer before I had restarted the computer, but this was still via the web interface. the /var/log/cups/error_log reports: I [03/Feb/2003:12:20:52 -0600] New printer 'LaserJet' added by 'root'. E [03/Feb/2003:12:20:52 -0600] add_printer: bad device-uri attribute 'parallel:/dev/lpt0'! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: multiple probs with cups 1.1.18.0-4
On Mon, Feb 03, 2003 at 12:05:05PM -0800, Derrick Ryalls wrote: 1. CUPS does not see my parallel ports. I had the same problem with the parallel port. I had to reboot the machine with the printer plugged in and turned on for it to show up. I powered off the computer and printers, powered on two printers then the computer and still lpinfo -v did not see my printers. 2. CUPS http interface broke I did not have this problem, sorry. I would suggest you double check which hosts you are allowing to connect. There are 2(?) spots in the cupsd.conf file to check/change depending on if you are using it as a headless server (like me) or a desktop. Wouldn't be a bad idea to limit it with hosts.allow too. You were right, I double-checked my cupsd.conf and found where I had to allow connection to other hosts on the subnet. Also fixed DocumentRoot and now the web interface appears to function correctly. 3. Cannot add printers via CLI: Somehow, after changing the cupsd.conf and re-starting cupsd, I can now see my printers with lpinfo. Here's the extent of my changes to my cupsd.conf: rcsdiff -r1.2 -r1.1 cupsd.conf === RCS file: RCS/cupsd.conf,v retrieving revision 1.2 retrieving revision 1.1 diff -r1.2 -r1.1 2c2 # $Id: cupsd.conf,v 1.2 2003/02/03 20:54:33 doug Exp $ --- # $Id: cupsd.conf,v 1.1 2003/01/24 15:14:34 doug Exp $ 49c49 ServerName printsrv.mydomain.org --- #ServerName myhost.domain.com 56c56 ServerAdmin [EMAIL PROTECTED] --- #ServerAdmin [EMAIL PROTECTED] 124c124 DocumentRoot /usr/local/share/doc/cups --- #DocumentRoot /usr/local/share/doc/cups 475c475 BrowseAddress @LOCAL --- #BrowseAddress @LOCAL 710,711d709 Allow From 172.16.1.0/24 Allow From 192.168.1.0/25 780,781d777 Allow From 172.16.1.0/24 Allow From 192.168.1.0/25 787c783 # End of $Id: cupsd.conf,v 1.2 2003/02/03 20:54:33 doug Exp $. --- # End of $Id: cupsd.conf,v 1.1 2003/01/24 15:14:34 doug Exp $. Thanks for your help! -- Regards, Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: multiple probs with cups 1.1.18.0-4
Just about everything woking in cups now except I'm unable to configure a printer via web interface. The browswer reports: Admin Error: server-error-service-unavailable The error log says: I [03/Feb/2003:22:33:23 -0600] Started /usr/local/libexec/cups/cgi-bin/admin.cgi (pid=20038) The access log says: 172.16.1.33 - root [03/Feb/2003:22:33:22 -0600] GET /admin/?op=config-printerprinter_name=DeskJet HTTP/1.1 200 0 localhost - - [03/Feb/2003:22:33:23 -0600] POST / HTTP/1.1 200 204 172.16.1.33 - root [03/Feb/2003:22:33:22 -0600] GET /admin/?op=config-printerprinter_name=DeskJet HTTP/1.1 200 1555 Any ideas? -- Regards, Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: multiple probs with cups 1.1.18.0-4
Just about everything woking in cups now except I'm unable to configure a printer via web interface. The browswer reports: Admin Error: server-error-service-unavailable The error log says: I [03/Feb/2003:22:33:23 -0600] Started /usr/local/libexec/cups/cgi-bin/admin.cgi (pid=20038) The access log says: 172.16.1.33 - root [03/Feb/2003:22:33:22 -0600] GET /admin/?op=config-printerprinter_name=DeskJet HTTP/1.1 200 0 localhost - - [03/Feb/2003:22:33:23 -0600] POST / HTTP/1.1 200 204 172.16.1.33 - root [03/Feb/2003:22:33:22 -0600] GET /admin/?op=config-printerprinter_name=DeskJet HTTP/1.1 200 1555 None of that looks unusual, they appear in my logs too. Just to make sure we are on the same page, here is what I did when I was adding a printer via web interface: Ensure cupsd was running web browse to http://server:631 supply username root, password Click either 'Do Administration Tasks' or 'Administration' via top toolbar Click 'Add Printer' button Follow prompts.. If you are doing exactly that then I am can only guess on what to do. You might try to restart the cupsd service, check /var/log/messages, etc. You might try adding a printer via command line, although I got the impression you have successfully done that. Hope this helps, and good luck. -Derrick To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: multiple probs with cups 1.1.18.0-4
On Mon, Feb 03, 2003 at 11:41:03PM -0600, Stephen Hilton wrote: # dmesg | egrep -i 'lp|parall' ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc1: Parallel port at port 0x278-0x27f irq 8 on isa0 lpt1: Printer on ppbus1 lpt1: Interrupt-driven port ppi1: Parallel I/O on ppbus1 Doug, What does your KERNEL config file look like for LPT ports? Mine is setup like this: # Parallel ports device ppc0at isa? irq 7 device ppc1at isa? irq 5 device ppbus # Parallel port bus (required) device lpt # Printer Yes, except ppc1 is at irq8 I noticed your 2nd port is detected at IRQ 8, is this an add-in PCI based port or what? yes, it is an add-in ISA card Regards, Stephen Hilton [EMAIL PROTECTED] -- Regards, Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message