Last active
August 29, 2015 14:01
-
-
Save Gr1N/ed3dafc23a567a56cc62 to your computer and use it in GitHub Desktop.
Airplay on RaspberryPi
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
# Change default audio port and test alsa | |
% amixer cset numid=3 1 | |
% speaker-test -t sine | |
# Install dependencies | |
% apt-get install libao-dev libssl-dev avahi-utils libwww-perl libcrypt-openssl-rsa-perl libio-socket-inet6-perl libmodule-build-perl | |
# Install Perl Net-SDP (more information: https://github.com/njh/perl-net-sdp) | |
% git clone https://github.com/njh/perl-net-sdp.git | |
% cd ./perl-net-sdp/ | |
% perl Build.PL | |
% ./Build | |
% ./Build test | |
% ./Build install | |
% cd .. | |
# Install ShairPort | |
% git clone https://github.com/abrasive/shairport.git | |
% cd shairport | |
% ./configure | |
% make | |
# Test it | |
% ./shairport -a AirPi | |
# If it works, install | |
% make install | |
# Daemonize ShairPort | |
# Copy default settings | |
% cp ./scripts/debian/default/shairport /etc/default/ | |
# Copy init file. Note: Do not modify init file. Edit /etc/default/shairport instead! | |
% cp ./scripts/debian/init.d/shairport /etc/init.d/shairport | |
% chmod a+x /etc/init.d/shairport | |
% update-rc.d shairport defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment