Re: Use of Cups printing in a home network.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-07-03 at 08:58 -0500, Aaron Konstam wrote:
> There must be a misconfiguratin on in the cupsd.conf but I cna't find
> it. No browsing occurs and I can't figure out why. I have done this
> several times on other lans and it has worked.
> 
> Would someone whose home network has printing working be willing to
> share there cupsd.conf with me?

You've motivated me to have another bash at this, since it used to work,
but no-longer does on my network (I stopped trying to get it to browse,
and manually configured each client to use the server).  It was
convenient to have it working, so I figured it worth the effort to try
again.

I've had a play, and got it working again.  If all goes well, you'll
only have to do three things (change what I say, save the file, and
restart CUPS on the server).  The clients should have the original
default cupsd.conf and client.conf files (they need nothing done to them
for browsing to work).

Scroll through your server's cupsd.conf file until you get to the
BrowseAddress parameters.  Despite what it suggests, BrowseAddress
@LOCAL doesn't work for me (though @LOCAL works in other areas of the
configuration).  Specify an address for your server to broadcast its
details in one of the following manners:

BrowseAddress 192.168.1.255
BrowseAddress 192.168.1.0/255.255.255.0
BrowseAddress @IF(eth0)

Those options, at least, work on my system (FC4 on clients and servers).
Change the addresses to suit your own network.  Read the comments in the
original file around that area.

Below is an abbreviated example server configuration (I've removed
masses of explanatory comments provided in the original file, but left
various defaults showing - makes it easy to find the ones to fiddle
with, and do it in the right places, but doesn't make this e-mail huge).
Change the addresses to suit your network (mine's on a 192.168.1 subnet,
my server is at 192.168.2), use your own domain names instead of
example.com).  Change the ServerAdmin address if you want, but the other
"localhost" addresses are on purpose, and should stay that way.

Mine allows relatively unfettered access to print, but only the local
machine can reconfigure.  For anyone implementing CUPS over a wider
network than a home LAN (and that includes wireless), be more stringent
that I have.

#
# "$Id: cupsd.conf.in,v 1.17 2005/01/03 19:29:45 mike Exp $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.
#

######## Server Identity

ServerName printer.example.com
ServerAdmin root@localhost

######## Server Options

#AccessLog /var/log/cups/access_log
#Classification unclassified
#ClassifyOverride off
#DataDir /usr/share/cups
#DefaultCharset utf-8
#DefaultLanguage en
#DocumentRoot /usr/share/doc/cups-1.1.23
#ErrorLog /var/log/cups/error_log
LogFilePerm 0600
#FileDevice No
#FontPath /usr/share/cups/fonts
MaxLogSize 2000000000
LogLevel info
#MaxLogSize 0
#PageLog /var/log/cups/page_log
#PreserveJobHistory Yes
#PreserveJobFiles No
#AutoPurgeJobs No
#MaxCopies 100
#MaxJobs 500
#MaxJobsPerPrinter 0
#MaxJobsPerUser 0
#MaxPrinterHistory 10
Printcap /etc/printcap
#PrintcapFormat BSD
#PrintcapFormat Solaris
#PrintcapGUI /usr/bin/glpoptions
#RequestRoot /var/spool/cups
#RemoteRoot remroot
#ServerBin /usr/lib/cups
#ServerRoot /etc/cups
#ServerTokens Minor


######## Fax Support

#FaxRetryLimit 5
#FaxRetryInterval 300


######## Encryption Support

#ServerCertificate /etc/cups/ssl/server.crt
#ServerKey /etc/cups/ssl/server.key


######## Filter Options

#User lp
#Group sys
#RIPCache 8m
#TempDir /var/spool/cups/tmp
#FilterLimit 0


######## Network Options

#Port 80
#Port 443
Listen 127.0.0.1:631
Listen 192.168.1.2:631
#HostNameLookups On
#KeepAlive On
#KeepAliveTimeout 60
#MaxClients 100
#MaxClientsPerHost 0
#MaxRequestSize 0
#Timeout 300

######## Browsing Options

Browsing On
BrowseProtocols cups
#BrowseAddress x.y.z.255
#BrowseAddress x.y.255.255
#BrowseAddress x.255.255.255
#BrowseAddress 255.255.255.255
#BrowseAddress @LOCAL
#BrowseAddress @IF(name)
BrowseAddress 192.168.1.255
#BrowseShortNames Yes
BrowseAllow from 192.168.1.0/255.255.255.0
#BrowseDeny address
#BrowseInterval 30
#BrowseOrder allow,deny
BrowseOrder deny,allow
#BrowsePoll address:port
#BrowsePort 631
#BrowseRelay source-address destination-address
#BrowseRelay @IF(src) @IF(dst)
#BrowseTimeout 300
#ImplicitClasses On
#ImplicitAnyCLasses Off
#HideImplicitMembers On


######## Security Options
#SystemGroup sys
#RootCertDuration 300
#Encryption IfRequested


<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From @LOCAL
</Location>

#<Location /classes>
#</Location>

#<Location /classes/name>
#</Location>

#<Location /jobs>
#</Location>

#<Location /printers>
#</Location>

#<Location /printers/name>
#AuthType None
#Order Deny,Allow
#Deny From All
#Allow From .example.com
#</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

#
# End of "$Id: cupsd.conf.in,v 1.17 2005/01/03 19:29:45 mike Exp $".
#
# Lines below are automatically generated - DO NOT EDIT


-- 
(Currently running FC4, in case that's important to the thread)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux