Getting avahi to automatically publish CUPS printers
up vote
3
down vote
favorite
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.
cups avahi
add a comment |
up vote
3
down vote
favorite
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.
cups avahi
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
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.
cups avahi
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.
cups avahi
cups avahi
edited Mar 15 '13 at 19:05
asked Mar 15 '13 at 16:07
Francisco
1,095815
1,095815
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18
add a comment |
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
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
1
Sorry, but this is what I meant withI 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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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
1
Sorry, but this is what I meant withI 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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
add a comment |
up vote
0
down vote
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
1
Sorry, but this is what I meant withI 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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
add a comment |
up vote
0
down vote
up vote
0
down vote
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
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
answered Aug 18 '13 at 20:38
Stephan
1012
1012
1
Sorry, but this is what I meant withI 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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
add a comment |
1
Sorry, but this is what I meant withI 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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
1
1
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
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 bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
Can you check whether Avahi option had been switched ON during build time for your case? Because apparently it is off bugs.freebsd.org/bugzilla/show_bug.cgi?id=188751
– silpol
Dec 15 '14 at 18:04
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
I have the same problem on my Gentoo, and cups is certainly built with Avahi support.
– L29Ah
Aug 10 at 23:42
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f566552%2fgetting-avahi-to-automatically-publish-cups-printers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I know the mentioned script, but as i understand jcups is using avahi to find any published printers on the net but not to automatically publish it over avahi. But I'm searching for that feature too. If you have any news (cough) I would appreciate it
– JackGrinningCat
Jul 13 at 16:18