[AN] Anup Narkhede

Programmer, Hobbyist, Jack of many trades, Master of some

Pi Shairport

There are plenty of posts floating around to help you install and configure Airplay on a Raspberry Pi. This puppet recipe, based on shairport, simply automates the installation process for you. With just three steps, you can turn your Raspberry Pi into an Airplay speaker.

Requirements

  • Raspberry Pi running raspbian wheezy
  • SSH enabled and connected to the network

Getting started

Once the Pi is booted, note down its ip address by looking at the attached device list on your router.

Step 1: Copy your public key to the Raspberry Pi to allow ssh login without a password (optional).

cat ~/.ssh/id_rsa.pub | ssh pi@<ip-address> "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

Step 2: Bootstrap raspbian wheezy by running the following script on the Pi.

curl -sSL https://raw2.github.com/railsbob/puppet-pi_shairport/master/bootstrap.sh | sudo bash

This will install all packages required to run the puppet recipe.

Step 3: Initiate a puppet run from your machine.

git clone git@github.com:railsbob/puppet-pi_shairport.git
cd puppet-pi_shairport
./puppet-run.sh <ip-address>

That’s it! The puppet run will install shairport and configure it to run on the boot. Reboot the Pi and you should see an Airplay logo on your iTunes status bar. Select ‘Shairport on raspberrypi’ and test the streaming by connecting a speaker to the 3.5mm audio port.

Comments