AirPlay lets you share music from Apple devices to your favourite speakers. You can set up your own AirPlay Server on your Raspberry Pi and connect it to your favourite speakers.
Step 1: Equipment List
Step 2: Construction
Step 3: Check for Updates
Type in this command to check for updates:
sudo apt-get update
Step 4: Install All Necessary Packages
- Install the dependencies
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
- Clone the shairport repository
git clone https://github.com/mikebrady/shairport-sync.git
Step 5: Install Shairport
- Navigate to the cloned folder
- Build the program
autoreconf -i -f
./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
Compile the program
sudo make install
Step 6: Enable Shairport to Start on Boot
- Register the service
sudo systemctl enable shairport-sync
- Start the service
sudo service shairport-sync start
(From now on the service will automatically start on boot)
Step 7: Customize Your AirPlay Server
You can change the name of your AirPlay Server by editing the file 'shairport-sync.conf' in '/usr/local/etc'
sudo nano /usr/local/etc/shairport-sync.conf
- Delete the two slashes (//) in front of the name variable (where name = "%H")
- Change the "%H" to a name of your choice (e.g. "Living Room")
You can also set a password to your AirPlay server and many other options in the 'shairport-sync.conf'
That's it! You can now connect your iPhone or iPad to your new AirPlay Server. Have fun with it!
If you have any questions, don't hesitate to contact me.