Skip to content

Instantly share code, notes, and snippets.

@tagroup
Created December 9, 2012 01:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tagroup/73230119a9a153352296 to your computer and use it in GitHub Desktop.
Save tagroup/73230119a9a153352296 to your computer and use it in GitHub Desktop.
Make your Raspberry Pi talk Bonjour /Zero Configuration Protocol /Avahi
#!/bin/bash
### Make your Pi Talk Bonjour / Zero Configuration Protocol
### learn more at http://thomasloughlin.com/broadcast-host…pples-zeroconf/
apt-get -y install netatalk
apt-get -y install avahi-daemon
insserv avahi-daemon
cat > /etc/avahi/services/afpd.service <<DELIM
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
</service-group>
DELIM
/etc/init.d/avahi-daemon restart
#######################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment