Last active
December 16, 2015 11:39
-
-
Save yusuke/5429049 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| echo "update and upgrade apt" | |
| sudo apt-get update | |
| echo "y" | sudo apt-get upgrade | |
| echo "force audio out to analog" | |
| # amixer cset numid=3 N where the N parameter means the following: 0=auto, 1=analog, 2=hdmi | |
| sudo amixer cset numid=3 1 | |
| echo "set volume to maximum" | |
| sudo amixer cset numid=1 -- 100% | |
| echo "install git, etc." | |
| echo "y" | sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl | |
| echo "install perl-net-sdp" | |
| git clone https://github.com/njh/perl-net-sdp.git perl-net-sdp | |
| cd perl-net-sdp | |
| perl Build.PL | |
| sudo ./Build | |
| sudo ./Build test | |
| sudo ./Build install | |
| cd .. | |
| echo "install shairport" | |
| git clone https://github.com/hendrikw82/shairport.git | |
| cd shairport | |
| sudo make | |
| sudo make install | |
| # ./shairport.pl -a AirPi | |
| echo "let shairport on startup" | |
| sudo cp shairport.init.sample /etc/init.d/shairport | |
| cd /etc/init.d | |
| sudo chmod a+x shairport | |
| sudo update-rc.d shairport defaults | |
| sudo sed -i 's/DAEMON_ARGS="-w $PIDFILE"/DAEMON_ARGS="-w $PIDFILE -a AirPi"/g' shairport | |
| echo "start shairport" | |
| sudo ./shairport start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment