Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know I can manually add a .service file for each printer I have. But I would like to have them published automatically.

But from what I've read, it is also possible to get CUPS to inform avahi about its printers. (both cups and avahi are compiled with dbus support.)

The printers do not show up (despite marking CUPS to Share printers connected to this system). Any recommendations about how to configure either CUPS or Avahi or about how to debug this?

FWIW, I already have BrowseLocalProtocols all in cupsd.conf.

CUPS version is 1.5.4, and avahi is 0.6.31.

share|improve this question

you can use this script (thanks to Timothy J Fontaine) to generate the service-files via cron and move them to /etc/avahi/services/ like

./ -d /etc/avahi/services
/etc/init.d/avahi-daemon restart
share|improve this answer
Sorry, but this is what I meant with I know I can manually add a .service file for each printer I have., what I would like to have is for CUPS to just inform Avahi of its (current) printers without having to resort to a script to create the necessary files. So when using Fontaine's script, if a CUPS printer is created/deleted/renamed, I need to modify Avahi service files to reflect that (instead of having CUPS and Avahi figuring it out themselves). – Francisco Aug 28 '13 at 8:48
Can you check whether Avahi option had been switched ON during build time for your case? Because apparently it is off – silpol Dec 15 '14 at 18:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .