Instantly share code, notes, and snippets.

@tagroup /mDNSforPI.sh Secret
Created Dec 9, 2012

Embed
What would you like to do?
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