Difference between revisions of "Avahi Notes"
From Noah.org
Jump to navigationJump to searchm (Created page with 'Category:Engineering Monitor Zeroconf advertisements: <pre> avahi-browse -a --resolve </pre>') |
m |
||
Line 4: | Line 4: | ||
<pre> | <pre> | ||
avahi-browse -a --resolve | avahi-browse -a --resolve | ||
+ | </pre> | ||
+ | |||
+ | == avahi-daemon == | ||
+ | |||
+ | If you want Avahi to publish your SSH service you must create a service config for it. You can usually just copy the example one and use it without editing it. | ||
+ | <pre> | ||
+ | cp /usr/share/doc/avahi-daemon/examples/ssh.service /etc/avahi/services/. | ||
+ | </pre> | ||
+ | If that example is not available then the following should work if copied to '''/etc/avahi/services/ssh.service'''. | ||
+ | <pre> | ||
+ | <?xml version="1.0" standalone='no'?><!--*-nxml-*--> | ||
+ | <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | ||
+ | <service-group> | ||
+ | <name replace-wildcards="yes">%h</name> | ||
+ | <service> | ||
+ | <type>_ssh._tcp</type> | ||
+ | <port>22</port> | ||
+ | </service> | ||
+ | </service-group> | ||
</pre> | </pre> |
Revision as of 19:34, 23 October 2012
Monitor Zeroconf advertisements:
avahi-browse -a --resolve
avahi-daemon
If you want Avahi to publish your SSH service you must create a service config for it. You can usually just copy the example one and use it without editing it.
cp /usr/share/doc/avahi-daemon/examples/ssh.service /etc/avahi/services/.
If that example is not available then the following should work if copied to /etc/avahi/services/ssh.service.
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_ssh._tcp</type> <port>22</port> </service> </service-group>