[cups] Configuration of Client-Side Avahi browsing

Till Kamppeter till.kamppeter at gmail.com
Wed Dec 9 05:57:16 PST 2015


Hi,

this thread has inspired me to add more sophisticated filtering to the 
browsing by cups-browsed.

In the current cups-filters package (1.3.0) cups-browsed has the 
following new functionality:

- BrowseDeny lines to exclude printers of certain servers or networks
- BrowseOrder lines to coordinate between BrowseAllow and BrowseDeny
- BrowseAllow/BrowseDeny/BrowseOrder applies also to DNS-SD broadcasted
   remote printers
- New BrowseFilter lines which allow filtering on properties like queue
   name, host name, port, domain, service name, color, duplex, PDLs, ...

Run

man cups-browsed.conf

or see the comments in

/etc/cups/cups-browsed.conf

after installing the new version.

This way you can get exactly the desired printers into your print 
dialogs, for example on the machines in the engineering department only 
the printers relevant to the engineering department and so on.

    Till



On 11/23/2015 11:07 AM, Alexander Hofmann wrote:
> Hi,
>
> I'm currently trying to find the portion of code adding hundreds of
> printers to my "Print Document"-Dialog by querying Avahi. I first
> accused GTK of doing this, but it seems that cups now has this feature
> it self...
>
> While it might be helpful in some cases, I'm tired of searching my 3
> installed printers alongside of hundrets of other on the site and even
> off-site via VPN. I can disable "avahi-daemon" or disable it's DBus
> interface which will stop this, but I'd be more satisfied if I could
> configure this directly. It's also not related to "cups-browsed" - it's
> not running (I don't even have the service installed). It's possible
> that I'm completely on the wrong track here, maybe I'm better off asking
> package maintainers etc, but still, maybe you can help...
>
> So, my questions are:
> a) does cups (version 1.7.2 as in Linux Min 17.2), without the
> browsed-daemon, have the feature of searching and including Avahi-based
> printers and adding them dynamically to the list? I checked the source
> of "dnssd" and "mdns" backends, they utilize Avahi, but removing them
> doesn't change anything
> b) Is there any possibility to ask cups who actually added the printer
> to the list? I.e., if some Mint-Specific daemon caused the problem -
> could I ask cups to tell me the process or script etc. that added the
> printer?
>
> Thank you very much in advance.
>
> Regards,
>
> Alexander Hofmann
>
>
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
>




More information about the cups mailing list