LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-18-2009, 11:50 AM   #1
da1
Member
 
Registered: May 2007
Distribution: FreeBSD
Posts: 113

Rep: Reputation: 16
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 ?

Last edited by da1; 02-18-2009 at 11:53 AM.
 
Old 02-21-2009, 05:06 PM   #2
da1
Member
 
Registered: May 2007
Distribution: FreeBSD
Posts: 113

Original Poster
Rep: Reputation: 16
After 1 w or so, I was unable to solve the problem, and lack the resources to do a full reinstall of the OS to detect the problem. Maybe sometime in the neer future I will but until them I would like to thanks all you guyz that took the time to read my post, and if any light will be shed on this particular matter I will post it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Darn Dell machines..... Decepticon22 Red Hat 3 08-25-2005 01:37 PM
Darn Linux!!! oopicmaster Linux - General 2 03-06-2004 07:18 AM
Darn clouds! BajaNick General 5 11-09-2003 05:25 PM
Darn screensaver? Nicksan Linux - General 1 06-23-2003 03:20 AM
How did you find this darn site?? acid_kewpie General 33 03-15-2002 02:44 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration