Thread: darn cUPS
View Single Post
  #1   (View Single Post)  
Old 18th February 2009
da1 da1 is offline
Fdisk Soldier
 
Join Date: Feb 2009
Location: Berlin, DE
Posts: 49
Default darn cUPS

hell-o guyz...

here are the info's:
F-bsd 7.1-STABLE
CUPS
Brother hl-2032 (2030 series) - USB

Yesterday or the day before that I could print test pages from CUPS web interface. shuted down the pc after night, and when i booted it up again it had a little surprize for me "printer busy; will retry in 10 seconds".

now for the conf. files

cupsd.conf
Code:
[root@da1.ro ~]# cat /usr/local/etc/cups/cupsd.conf
LogLevel debug
SystemGroup wheel

# Allow remote access
Port 631
Listen /var/run/cups.sock

# Enable printer sharing and shared printers.
Browsing On
BrowseOrder deny,allow
BrowseAllow 192.168.0.6 192.168.0.2 127.0.0.1
BrowseAddress 192.168.0.6 127.0.0.1 192.168.0.2
DefaultAuthType Basic

<Location />
  # Allow shared printing and remote administration...
  Order deny,allow
  Deny from all
  Allow 192.168.0.6 192.168.0.2 127.0.0.1
</Location>

<Location /admin>
  Encryption Required
  # Allow remote administration...
  Order deny,allow
  Deny from all
  Allow 192.168.0.6 192.168.0.2 127.0.0.1
</Location>

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order deny,allow
  Deny from all
  Allow 192.168.0.2 127.0.0.1 192.168.0.6
</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
    Deny from all
    Allow from 192.168.0.2 127.0.0.1 192.168.0.6
  </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
    Deny from all
    Allow from 192.168.0.2 127.0.0.1 192.168.0.6
  </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
    Deny from all
    Allow from 192.168.0.2 127.0.0.1 192.168.0.6
  </Limit>

  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    Deny from all
    Allow from 192.168.0.2 127.0.0.1 192.168.0.6
  </Limit>

  <Limit All>
    Order deny,allow
    Deny from all
    Allow from 192.168.0.2 127.0.0.1 192.168.0.6
  </Limit>
</Policy>
Now, for a crash course in brain surgery. 127.0.0.1 and 192.168.0.2 are the bsd box and 192.168.0.6 is my xp box.

firewall is PF
all the syntax is irelevant, but what is relevant is this line here:
Code:
pass in on $ext_if proto {tcp, udp} from 192.168.0.6 to any port {0:65535}
nothing spectacular in make.conf
cups web interface is configured with https support.



Now, what I remember before the shut down. I upgraded the xfprint utility (xfce4) from ports but the printer was ok. Still, the xfprint manager wasn't available any more from X. Couldn't care less about that since the box is a NAS server. Doing echo "whatever" >> /etc/lpt0 or /dev/ulpt0 doesn't work. Replyes "Device busy".
Don't see anything relevant in logs; here are the last 25 lines of error.log from /var/log/cups/error.log
Code:
D [18/Feb/2009:19:41:10 +0200] Report: stringpool-total-bytes=9312
D [18/Feb/2009:19:42:12 +0200] Report: clients=0
D [18/Feb/2009:19:42:12 +0200] Report: jobs=3
D [18/Feb/2009:19:42:12 +0200] Report: jobs-active=0
D [18/Feb/2009:19:42:12 +0200] Report: printers=2
D [18/Feb/2009:19:42:12 +0200] Report: printers-implicit=0
D [18/Feb/2009:19:42:12 +0200] Report: stringpool-string-count=430
D [18/Feb/2009:19:42:12 +0200] Report: stringpool-alloc-bytes=7016
D [18/Feb/2009:19:42:12 +0200] Report: stringpool-total-bytes=9312
D [18/Feb/2009:19:43:14 +0200] Report: clients=0
D [18/Feb/2009:19:43:14 +0200] Report: jobs=3
D [18/Feb/2009:19:43:14 +0200] Report: jobs-active=0
D [18/Feb/2009:19:43:14 +0200] Report: printers=2
D [18/Feb/2009:19:43:14 +0200] Report: printers-implicit=0
D [18/Feb/2009:19:43:14 +0200] Report: stringpool-string-count=430
D [18/Feb/2009:19:43:14 +0200] Report: stringpool-alloc-bytes=7016
D [18/Feb/2009:19:43:14 +0200] Report: stringpool-total-bytes=9312
D [18/Feb/2009:19:44:16 +0200] Report: clients=0
D [18/Feb/2009:19:44:16 +0200] Report: jobs=3
D [18/Feb/2009:19:44:16 +0200] Report: jobs-active=0
D [18/Feb/2009:19:44:16 +0200] Report: printers=2
D [18/Feb/2009:19:44:16 +0200] Report: printers-implicit=0
D [18/Feb/2009:19:44:16 +0200] Report: stringpool-string-count=430
D [18/Feb/2009:19:44:16 +0200] Report: stringpool-alloc-bytes=7016
D [18/Feb/2009:19:44:16 +0200] Report: stringpool-total-bytes=9312
Ideas ?
Reply With Quote