Created
April 29, 2016 06:02
-
-
Save HeraclesJam/e9bc0bc17aba8ad395b5346db0e4b735 to your computer and use it in GitHub Desktop.
用 shairport-sync 在 Raspberry Pi 上實作 AirPlay 功能
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
| git clone https://github.com/mikebrady/shairport-sync.git | |
| sudo apt-get -y install build-essential git autoconf automake libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev avahi-daemon libavahi-client-dev libssl-dev libpolarssl-dev libsoxr-dev | |
| cd shairport-sync | |
| autoreconf -i -f | |
| ./configure --with-alsa --with-stdout --with-pipe --with-avahi --with-ssl=openssl --with-metadata --with-systemd | |
| make | |
| getent group shairport-sync &> /dev/null || sudo groupadd -r shairport-sync > /dev/null | |
| getent passwd shairport-sync &> /dev/null || sudo useradd -r -M -g shairport-sync -s /usr/bin/nologin -G audio shairport-sync > /dev/null | |
| sudo make install | |
| sudo systemctl restart shairport-sync && sudo systemctl status shairport-sync | |
| sudo systemctl enable shairport-sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment