Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

./airprint-generate.py -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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.