Skip to main content

How I got the AirPlay server working - Carpi Project pt. 3

Continuing off from the last part, I will be detailing what steps I took to get the Airplay server working using the Shairport Sync project. Like before, we will be loosely following the guide in the INSTALL.md file. This is continued from the same project as the last post, just split into multiple parts for the sake of brevity.

June 13th, 2018.

First, update and upgrade the system, improving audio drivers, as well as downloading the latest package lists.
sudo apt-get updatesudo apt-get upgradesudo rpi-update

It is also advised to update the audio drivers. The guide also includes information on updating the audio drivers, which I have done. However, you can do that by
sudo nano /boot/config.txt
and then appending to the bottom of the file at /boot/config.txt
audio_pwm_mode = 2

In addition, the Raspberry Pi has a feature that automatically causes the WiFi card to go to sleep after a duration of time. However, we do not want the WiFi card to go to sleep, so we can execute the following command to disable automatic sleep.
iwconfig wlan0 power off
We then apply these changes by rebooting the Raspberry Pi.
sudo shutdown -r now
After rebooting the Raspberry Pi, the system now has the changes applied and we can start the server.

We can start the server by running
sudo service shairport-sync start
We can also later come back and add this to a startup script should we choose to.

We’ve now tested AirPlay audio, and it is a success. So we want to clone the card so we have a backup just in case I mess anything up in the future. A quick Google search reveals that this article’ details are correct and it is extremely easy to clone the card.



I’ll simply open Win32 Disk Imager and use the “Read” feature in order to create a clone of the SD card. Since it clones the partition table as well into an image file, I have nothing to worry about.

Next, we will look at getting Android Auto to work on it. But we’ll save that for a future blog post. Once again, since we used a backup we can always revert back to it.


Gideon Tong

Comments