Configure AirPlay
April 29, 2018


# 1. Install needed packets
sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl
sudo apt-get install autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman

# 2. Clone Shairport Sync Repo
cd /tmp
git clone https://github.com/mikebrady/shairport-sync.git
cd shairport-sync

# 3. Build & Install Shairport
autoreconf -i -f
./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
make
sudo make install

# 4. Enable Shairport on boot
sudo systemctl enable shairport-sync
sudo service shairport-sync start

# 5. Extra: Load Extra Configuration
vi /lib/systemd/system/shairport-sync.service
ExecStart=/usr/local/bin/shairport-sync  -c /etc/shairport-sync.conf
Get Config File from
/tmp/shairport-sync/scripts/shairport-sync.conf
Change port to play with Mac sound card
port = 3689