Hello ppl.
After messing with the problem for about 1w, posting to some forums, and
torture-interogating mister google I was unable to solve this particular
matter.
It's about a FreeBSD 7.1-STABLE box with cups and a Brother hl-2032 laser
printer. I keep getting (in cups web interface and terminal) "printer
busy". Tracing back my stept I remember that I managed to install the
printer (with a ppd file for hl1240. driver seems to work with 2030
series) and print a test page from cups web interface.
But to start from scrach.
After plugins in the usb printer freebsd recognized it as /dev/ulpt0,
root:operator own and 644 permisions. Afterwards I installed cups (from
ports) modified the config file so it would allow acces from certain IP's,
added the printer from the web interface and printed a test page. All
worked out smoothly. Shuted down the pc(sleep time), and in the morning
when I powered it up again cups had a little surprise for me, kept going
on and on about "printer busy; will retry in 10 seconds". Like that wasn't
enough doing echo "whatever" >> /dev/ulpt0 or /dev/lpt0 would also return
with "printer busy" message. After 1 w or so, not managing to solve the
problem, I deinstalled cups and all dependencies it installed originaly
(this is why I didn't provide any conf file so far). Now I wan't to try
again.
So first of all let's rull out the firewall. I have pf built into my
kernel (a generic kernel with pf, altq built-in and ISA, RAID, SCSI_DELAY,
Firewire commented out; nopthing exotic;;also rebuilded the world) and
this particular line in my pf.conf -> "pass in on $ext_if proto {tcp, udp}
from 192.168.0.6 to any port {0:65535}". This alows full acces from
192.168.0.6 (my xp box) to the bsd box. Also tryed with pf disabled.
Installed cups from ports with all options. Ended up with cups-1.3.9 and
cups-base-1.3.9_3.
Now the cups conf file:
LogLevel info
SystemGroup wheel
# Allow remote access
Port 631
Listen /var/run/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class
CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs
CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
error_log reports:
I [22/Feb/2009:01:38:13 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93251)
E [22/Feb/2009:01:38:14 +0200] SSL shutdown failed: Error in the push
function.
I [22/Feb/2009:01:38:23 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93253)
I [22/Feb/2009:01:38:34 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93254)
I [22/Feb/2009:01:38:44 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93255)
I [22/Feb/2009:01:38:54 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93256)
E [22/Feb/2009:01:38:54 +0200] SSL shutdown failed: Error in the push
function.
I [22/Feb/2009:01:39:04 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93257)
I [22/Feb/2009:01:39:14 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93258)
I [22/Feb/2009:01:39:24 +0200] Started
"/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=93259)
I really don't thinmk that ssl line is causing all this.
Again, doing echo from the terminal doesn't help.
I'm really tired of this. If you have any ideas, do tell.
thx
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"