Airplay Receiver with Raspbian Jessie

In my post on how to create an Airplay receiver from a Raspberry Pi, I noted that I’d used Raspbian Wheezy instead of Raspbian Jessie, and in order to preface my instructions I wrote:

I’m sure most of the instructions herein will be the same.

As it turns out, this is untrue. Here are a few tips and tricks detailing how things change.

So, the initial setup and getting Wi-Fi working was almost identical, but getting the USB audio card to work was very different. Instead of following the instructions in the first post, the instructions by JoTil in this forum thread are what you need. Go to /usr/share/alsa/alsa.conf and replace

defaults.ctl.card 0
defaults.pcm.card 0

with

defaults.ctl.card 1
defaults.pcm.card 1

and your USB audio card should work (follow the instructions in the old post to verify that!).

When it comes to installing Shairport Sync the instructions also change slightly, because Jessie supports systemd and Wheezy only supports System V. Here are the new steps:

cd ~
ps aux | grep systemd | grep -v grep
git clone https://github.com/mikebrady/shairport-sync.git
sudo apt-get install autoconf libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev avahi-daemon libavahi-client-dev libssl-dev
cd shairport-sync/
autoreconf -i -f
./configure --with-alsa --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 enable shairport-sync

Renaming the configuration file is the same as before.

  • redion1992

    As recommended by the author, the .configure line should read:

    ./configure –sysconfdir=/etc –with-alsa –with-avahi –with-ssl=openssl –with-metadata –with-systemd

    This is needed for all versions post-v2.8.4.7 (https://github.com/mikebrady/shairport-sync/releases/tag/2.8.4.7), released in August last year. Otherwise, your config file will be in the wrong place.