Created
November 13, 2011 14:36
-
-
Save geta6/1362178 to your computer and use it in GitHub Desktop.
install shairport for linux
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/sh | |
if [ ! "$EUID" = "0" ] ; then | |
echo "need sudo" 1>&2 | |
exit 1 | |
fi | |
apt-get install libcrypt-openssl-rsa-perl libio-socket-inet6-perl libao-dev avahi-utils avahi-discover avahi-daemon libnss-mdns mdns-scan | |
service avahi-daemon start | |
perl -MCPAN -e 'install Crypt::OpenSSL::RSA' | |
perl -MCPAN -e 'install HTTP::Message' | |
cd /usr/local/src | |
git clone https://github.com/bbhoss/shairport | |
cd shairport | |
make | |
cd /usr/local/bin | |
ln -s /usr/local/src/shairport/shairport.pl . | |
ln -s /usr/local/src/shairport/hairtunes . | |
ln -s /usr/local/src/shairport/shairport.init.sample /etc/init.d/shairport | |
service shairport start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment