Shairport
Linux can receive AirPlay audio using a program called Shairport. Shairport tries to emulate the Airport system of Apple. This version allows to stream music from a device e.g. Smartphone, Tablet, PC to the Airport Server which then play the music. The device need to be in the same Network.
Install
Download AirPlay (Shairport)
cd /tmp
sudo git clone https://github.com/abrasive/shairport.git shairport
Install dependencies
sudo apt-get install libssl-dev libavahi-client-dev libasound2-dev build-essential
Configure the Shairport build
cd shairport
./configure
Make & install Shairport
sudo make
sudo make install
Identify your audio output device
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Setup the firewall I use ufw
to do this:
1 2 3 4 5 |
|
Run Shairport
shairport -v -a 'Airplay receiver name' -o alsa-- -d hw:1,1
Add -v
to the above for debugging info, -vv
for more debug info and -vvv
for even more debug info!
Autostart
For automatically start shairport you can use the script that comes with the source. Just copy the script you need to the init.d directory.
sudo cp scripts/debian/init.d/shairport /etc/init.d/