Accessing printers both directly and via cups server.

Kurt Pfeifle kpfeifle at danka.de
Tue Jul 25 02:37:56 PDT 2006


andre <andre at soziologen.org> wrote (Tuesday 25 July 2006 05:16):

> With my laptop, I am working in different environments.

Which version of CUPS? Which distro?

> While adding network printers directly to my server is straightforward 
> enough, I am now having trouble integrating a cups print server as well.
> 
> The printer is attached locally via parallel port to to the cups server.
> Using my machine as client works fine, but then I can't use the network
> printers elsewhere without disabling the ServerName in client.conf again. 
> Which is what the docs suggest, but not a nice option.
> 
> Obviously I'm missing something obvious. 

Don't use the client.conf *at* *all*. Disable the ServerName there
altogether.

Instead, set up the notebook (=client?) to run a cupsd, with a 
cupsd.conf like this:

   Browsing On
   #BrowseAddress #commented out!
   BrowseAllow All
   BrowseDeny None 
   BrowseOrder Deny,Allow

Your server's cupsd.conf should have this:

   Browsing On
   BrowseAddress @Local

[ if "@LOCAL" does not work, use the valid broadcast address for your 
LAN, possibly like "192.168.1.255" ]

That would may your server "announce" its printers (since it has a
BrowseAddress to send the info to), and your client pick up the info
(since it does no BrowseDeny, and does a BrowseAllow for any server
source). Of course, the server must additionally be set up to accept
this client's jobs; but you seem to have that in place already in
any case, otherwise your client.conf wouldn't have worked either.

Cheers,
Kurt




More information about the cups mailing list