Skip to content

Instantly share code, notes, and snippets.

@Gr1N
Last active August 29, 2015 14:01
Show Gist options
  • Save Gr1N/ed3dafc23a567a56cc62 to your computer and use it in GitHub Desktop.
Save Gr1N/ed3dafc23a567a56cc62 to your computer and use it in GitHub Desktop.
Airplay on RaspberryPi
# 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