Last active
February 14, 2016 18:47
-
-
Save alexander-heimbuch/4c0ba74fd91bf5c71123 to your computer and use it in GitHub Desktop.
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
cat << "EOF" | |
______ ____ ___ __ | |
/\ _ \ __ /\ _`\ /\_ \ /\ \ | |
\ \ \L\ \/\_\ _ __\ \ \L\ \//\ \ __ __ __\ \ \ | |
\ \ __ \/\ \/\`'__\ \ ,__/ \ \ \ /'__`\ /\ \/\ \\ \ \ | |
\ \ \/\ \ \ \ \ \/ \ \ \/ \_\ \_/\ \L\.\_\ \ \_\ \\ \_\ | |
\ \_\ \_\ \_\ \_\ \ \_\ /\____\ \__/.\_\\/`____ \\/\_\ | |
\/_/\/_/\/_/\/_/ \/_/ \/____/\/__/\/_/ `/___/> \\/_/ | |
/\___/ | |
\/__/ | |
EOF | |
echo "Updating OS" | |
apt-get -y update && apt-get -y upgrade | |
echo "Removing unnecessary X11 packages" | |
apt-get -y remove x11-common x11-utils x11-xkb-utils libx11-6 lxde-common | |
apt-get -y autoremove | |
dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge | |
apt-get -y autoclean | |
echo "Activate the headphone jack and increase the volume to 11" | |
amixer cset numid=3 1 | |
amixer set PCM -- 0 | |
echo "Installing Dependencies" | |
apt-get -y install git build-essential avahi-utils libssl-dev libao-dev libpulse-dev libasound2-dev | |
echo "Install Shairport" | |
cd /tmp | |
git clone https://github.com/abrasive/shairport.git | |
cd shairport | |
./configure | |
make && make install | |
echo "Add startup script" | |
cd scripts/debian/ | |
cp -r * /etc/ | |
echo "Add shairport user" | |
adduser --system --disabled-login --ingroup audio shairport | |
echo "Configuring shairport" | |
sed -i -- 's/#USER=shairport/USER=shairport/g' /etc/default/shairport | |
sed -i -- 's/#GROUP=audio/GROUP=audio/g' /etc/default/shairport | |
sed -i -- 's/#AP_NAME=/AP_NAME=AirPi/g' /etc/default/shairport | |
echo "Add shairport to init scripts" | |
update-rc.d shairport defaults | |
echo "Starting shairport service" | |
service shairport start | |
echo "Configure your Airplay receiver at /etc/default/shairport" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment