Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save HeraclesJam/e9bc0bc17aba8ad395b5346db0e4b735 to your computer and use it in GitHub Desktop.

Select an option

Save HeraclesJam/e9bc0bc17aba8ad395b5346db0e4b735 to your computer and use it in GitHub Desktop.
用 shairport-sync 在 Raspberry Pi 上實作 AirPlay 功能
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