[cups] Configuration of Client-Side Avahi browsing

Helge Blischke helgeblischke at web.de
Fri Nov 27 04:44:05 PST 2015


Alex,

the SNMP backend, when run from cupsd, queries the DNS for records
describing printers in the net, and these records are supplied by avahi (or bonjour
an Mac OS X).
I’d suggest you delete any DeviceURI directives from your /etc/cups/snmp.conf file,
as there is no default value and thus the snap backend won’t get any device uri matches
which are needed to add the printers found.
So, I think, you needn’t touch avahi.

Helge

> Am 27.11.2015 um 12:02 schrieb Alexander Hofmann <alexander.hofmann at new-h.de>:
> 
> Hi,
> 
> Am 23.11.2015 um 22:37 schrieb Helge Blischke:
>> Perhaps you need to read the cups-snmp.conf manpage and look into
>> the /etc/cups/snmp.conf file.
> Hmmm... I did that; however I don't think SNMP is the culprit. Still I
> set "Address @LOCAL" to "Address 127.0.0.1" - I guess that should stop
> SNMP discovery; however: the 100drets of printers are still there. I
> somehow think I ruled out SNMP in the first place, as disabling Avahi
> stops them from appearing. I'd simply prefer a more specific solution,
> instead of disabling the whole Avahi daemon.
> 
> Regards,
> 
> Alex
> 
>> Helge
>> 
>>> Am 23.11.2015 um 14:07 schrieb Alexander Hofmann <alexander.hofmann at new-h.de>:
>>> 
>>> 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
>> _______________________________________________
>> cups mailing list
>> cups at cups.org <mailto:cups at cups.org>
>> https://www.cups.org/mailman/listinfo/cups <https://www.cups.org/mailman/listinfo/cups>
>> 
> 
> 
> _______________________________________________
> cups mailing list
> cups at cups.org <mailto:cups at cups.org>
> https://www.cups.org/mailman/listinfo/cups <https://www.cups.org/mailman/listinfo/cups>



More information about the cups mailing list