-
-
Save tagroup/73230119a9a153352296 to your computer and use it in GitHub Desktop.
Make your Raspberry Pi talk Bonjour /Zero Configuration Protocol /Avahi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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