Avahi & CUPS: Printers showing without .service file?

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Avahi & CUPS: Printers showing without .service file?

Post by ^rooker »

[PROBLEM]
Avahi is a nice, but strange animal: If it works it's convenient - but if you want to tell it what to announce and where, things get a bit "undocumented"...
I've got a CUPS printing server running on Raspbian 8 (Jessie), and there are no ".service" files in /etc/avahi/services to announce the printers, they still show up to avahi-aware clients :shock:

Seems I'm not the only one wondering about why that is so.
I want to configure how the printer's being announced, but first I seem to have to find out why CUPS and avahi seem to have a secret relationship :wink:

[SOLUTION]
Seems that recent CUPS versions support avahi as build-option. Here's a quote from related bug #188751 on FreeBSD:
Both cups-image and cups-client are compiled with no Avahi OPTION turned on.
That explains where the print-service-announements come from.

A config file that seems related to what I'm looking for is: /etc/cups/cups-browsed.conf
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply