Last active
April 20, 2020 10:57
-
-
Save rcarmo/b58d828d19af85d138c70e2fa1ec7164 to your computer and use it in GitHub Desktop.
Setup shairport-sync on a Raspberry Pi
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
deps: | |
sudo apt-get update | |
sudo apt-get dist-upgrade -y | |
sudo apt-get autoremove -y | |
sudo apt-get install -y \ | |
build-essential git autoconf automake libtool \ | |
xmltoman libdaemon-dev libpopt-dev libconfig-dev \ | |
libasound2-dev libpulse-dev \ | |
avahi-daemon libavahi-client-dev \ | |
libssl-dev libsoxr-dev \ | |
libsndfile1-dev | |
output: | |
printf "\n# Set audio output to headphone jack\naudio_pwm_mode=2\n" | sudo tee -a /boot/config.txt | |
wlan0: | |
printf "iface wlan0 inet dhcp\nwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf\n" | sudo tee -a /etc/network/interfaces.d/wlan0 | |
alac: | |
-git clone https://github.com/mikebrady/alac.git | |
cd alac && \ | |
git pull && \ | |
autoreconf -fi && \ | |
./configure && \ | |
make && \ | |
sudo make install && \ | |
sudo ldconfig | |
shairport: | |
-git clone https://github.com/mikebrady/shairport-sync.git | |
cd shairport-sync && \ | |
git pull && \ | |
autoreconf -i -f && \ | |
./configure --with-alsa \ | |
--with-stdout \ | |
--with-pipe \ | |
--with-avahi \ | |
--with-ssl=openssl \ | |
--with-libdaemon \ | |
--with-metadata \ | |
--with-soxr \ | |
--with-metadata \ | |
--with-configfiles \ | |
--with-apple-alac \ | |
--with-convolution \ | |
--with-systemd \ | |
--sysconfdir=/etc && \ | |
make && \ | |
sudo make install && \ | |
sudo systemctl enable shairport-sync.service && \ | |
sudo systemctl enable shairport-sync.service && \ | |
sudo systemctl start shairport-sync.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment