View previous topic :: View next topic |
Author |
Message |
T0M3K n00b
Joined: 19 Mar 2004 Posts: 67 Location: Brooklyn, NY
|
Posted: Sat Nov 22, 2008 7:41 pm Post subject: CUPS is killing me |
|
|
So far I noticed CUPS to be the biggest pain in the rear.
I've tried many times to set it up and all times it is unsuccessful.
I somehow managed to have two printers on server, all via USB.
First of all, loading CUPS via 631 takes for ever, like there is huge packet loss or doing dial-up.
To make things worse, sometimes jobs send to printers just get lost in the way.
Now I have deskjet "/usr/libexec/cups/filter/foomatic-rip failed" in the main printer configuration page and it prints test page but not from other computers.
Code: |
# Printer configuration file for CUPS v1.2.12
# Written by cupsd on 2008-10-22 22:49
<Printer deskjet>
Info 5650 Color
Location Shelf
DeviceURI hp:/usb/deskjet_5600?serial=MY35C1R0KK79
State Idle
StateTime 1212620599
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<DefaultPrinter Laser>
Info Dell Laser 1700
Location Desk
DeviceURI usb://Dell/Laser%20Printer%201700
State Idle
StateTime 1224715729
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
|
Code: |
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
Allow 192.168.5.*
Deny all
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow 192.168.5.*
Deny all
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set$
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Dis$
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
Order deny,allow
</Limit>
</Policy>
|
_________________ http://www.dslr.net/ |
|
Back to top |
|
|
comprookie2000 Retired Dev
Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
Posted: Sat Nov 22, 2008 11:29 pm Post subject: |
|
|
Here is mine if it helps;
Code: |
opteron david # cat /etc/cups/cupsd.conf
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/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>
Encryption Required
# 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 CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
|
_________________ http://dev.gentoo.org/~dabbott/ |
|
Back to top |
|
|
T0M3K n00b
Joined: 19 Mar 2004 Posts: 67 Location: Brooklyn, NY
|
Posted: Mon Nov 24, 2008 5:00 am Post subject: |
|
|
I managed to fix my USB printer, looks like application/octet-stream wasn't properly configured mime.types and .conv or something like that, forgot already.
Anyway, I'm still facing absolutely SLOW load times with http. Takes minutes to load a page on :631
I did edit a file a bit to match above user, with the exception of limits. _________________ http://www.dslr.net/ |
|
Back to top |
|
|
T0M3K n00b
Joined: 19 Mar 2004 Posts: 67 Location: Brooklyn, NY
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|