getting cups to work part 2
Geoffrey S. Mendelson
yellowdog-general@lists.terrasoftsolutions.com
Sat Mar 20 10:05:24 2004
Here is the posting with the sample config files.
The following is my cupsd.conf on my main server. Don't use it without
fixing the IP address in the allow/deny statements.
ServerName cable.<your.domain.name>
ServerAdmin gsm@<your.domain.name>
AccessLog /var/log/cups/access_log
#ClassifyOverride off
DataDir /usr/share/cups
DefaultCharset utf-8
DefaultLanguage en
DocumentRoot /usr/share/doc/cups
ErrorLog /var/log/cups/error_log
FontPath /usr/share/cups/fonts
LogLevel Error
MaxLogSize 1048576
PageLog syslog
PreserveJobHistory Yes
PreserveJobFiles Yes
AutoPurgeJobs Yes
MaxCopies 100
MaxJobs 500
Printcap /etc/printcap
PrintcapFormat BSD
PrintcapGUI /usr/bin/glpoptions
RequestRoot /var/spool/cups
RemoteRoot remroot
ServerBin /usr/lib/cups
ServerRoot /etc/cups
User lp
Group sys
RIPCache 8m
TempDir /var/spool/cups/tmp
FilterLimit 0
Port 631
Listen 80
HostNameLookups On
KeepAlive On
KeepAliveTimeout 60
MaxClients 100
MaxClientsPerHost 100
MaxRequestSize 0
Timeout 300
Browsing On
BrowseProtocols cups
BrowseAddress @IF(eth0)
BrowseShortNames Yes
BrowseAllow 127.0.0.0/24
BrowseAllow 192.168.1.0/24
BrowseAllow .<your.domain.name>
BrowseInterval 30
BrowsePort 631
BrowseTimeout 300
ImplicitClasses On
ImplicitAnyCLasses Off
HideImplicitMembers Off
SystemGroup sys
RootCertDuration 300
<Location />
AuthType None
Order Deny,Allow
Deny From All
Allow From 127.0.0.0/24
Allow From 192.168.1.0/24
Allow From .<your.domain.name>
</Location>
<Location /classes>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.0/24
Allow From 192.168.1.0/24
Allow From .<your.domain.name>
</Location>
<Location /jobs>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.0/24
Allow From 192.168.1.0/24
Allow From .<your.domain.name>
</Location>
<Location /printers>
AuthType None
Order Deny,Allow
Deny From All
Allow From 127.0.0.0/24
Allow From 192.168.1.0/24
Allow From .<your.domain.name>
</Location>
<Location /admin>
#AuthType None
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.0/24
Allow From 192.168.1.0/24
Allow From .<your.domain.name>
</Location>
-----------------------------------------
The following is my printers.conf file on my main server.
It's empty, because my other print servers have the printers and they
are picked up by browsing.
# Printer configuration file for CUPS v1.1.19
# Written by cupsd on Tue 07 Oct 2003 10:48:32 PM IST
----------------------------------------
The following is my printers.conf file on my upstairs print server. Note
that the printer hp on margie is defined several times. In each
definition's ppd the paper type, color and resolution are set
differently. Also the HP7550a plotter only works for me with xon/xoff
flow control although it's supposed to work better with hardware flow
control.
# Printer configuration file for CUPS v1.1.17
# Written by cupsd on Tue 07 Oct 2003 04:22:00 PM GMT
<Printer margie-hp>
Info hp photosmart 1000
Location margie's office
DeviceURI smb://margie/hp
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer margie-photo>
Info margie's printer photo quality
Location margie's desk
DeviceURI smb://margie/hp
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer margie-text>
Info text only printing fast, cheap
Location margie's office
DeviceURI smb://margie/hp
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer medici>
Info hp7550a plotter
Location upstairs
DeviceURI serial:/dev/ttyS0?baud=9600+bits=8+parity=none+flow=soft
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<DefaultPrinter ulj>
Info Laser Jet Series II
Location upstairs
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
----------------------------------------
Geoff.
Note that the CUPS SMB backend is not part of CUPS, it's part of SAMBA.
It's really just a symlink to smbspool:
ls -l /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 17 Feb 29 01:51
/usr/lib/cups/backend/smb -> /usr/bin/smbspool
--
Geoffrey S. Mendelson gsm@mendelson.com
I've watched "The Passion". It's the worst version of MacBeth I've ever seen.