Skip to content

Instantly share code, notes, and snippets.

@dvdsmpsn
Created November 4, 2012 23:23
Show Gist options
  • Save dvdsmpsn/4014341 to your computer and use it in GitHub Desktop.
Save dvdsmpsn/4014341 to your computer and use it in GitHub Desktop.
Using Raspberry Pi as a cheap Airplay audio receiver

I'm using the Raspberry Pi as an airplay receiver to bring my 1970s hifi system a little more up to date.

Here are the steps I took and some references at the end.

Download the installer & insert an SD card

Davids-MacBook-Pro:tmp david$ curl -O http://svn.stmlabs.com/svn/raspbmc/testing/installers/python/install.py
Davids-MacBook-Pro:tmp david$ chmod +x install.py
Davids-MacBook-Pro:tmp david$ sudo ./install.py


Raspbmc installer for Linux and Mac OS X
http://raspbmc.com
----------------------------------------
Please ensure you've inserted your SD card, and press Enter to continue.

Enter the 'IDENTIFIER' of the device you would like imaged, from the following list:
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS Hybrid 500GB            499.8 GB   disk1s2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   1:                 DOS_FAT_32 NO NAME                 4.0 GB     disk2s1

Enter your choice here (e.g. 'disk1s1'): disk2s1
It is your own responsibility to ensure there is no data loss! Please backup your system before imaging
You should also ensure you agree with the Raspbmc License Agreeement
Are you sure you want to install Raspbmc to '/dev/disk2s1' and accept the license agreement? [y/N] y
It appears that the Raspbmc installation image has already been downloaded. Would you like to re-download it? [y/N] 

Unmounting the drive in preparation for writing...
Unmount of all volumes on disk2 was successful
Please wait while Raspbmc is installed to your SD card...
(This may take some time and no progress will be reported until it has finished.)
0+1173 records in
0+1173 records out
76800000 bytes transferred in 6.451605 secs (11904014 bytes/sec)
Installation complete.
Finalising SD card, please wait...
Disk /dev/rdisk2 ejected

Raspbmc is now ready to finish setup on your Pi, please insert the
SD card with an active internet connection

Boot the Raspberry Pi

Insert the SD card into the RPi with an active internet connection and wait a while. The Raspbmc distro downloads and installs itself.

After a while, it'll boot up nicely configured.

Browse to the Services > Settings > Airplay Select “Allow XBMC to receive AirPlay content”

Airplay works from my iPhone & iPad, but not the MacBook. :(

Fix up AirPlay on a 2011+ MacBook Pro using Wi-Fi

To get AirPlay working on the MacBook, open terminal & type:

networksetup -setv6off Wi-Fi

Hat tip: http://forum.stmlabs.com/showthread.php?tid=1181&pid=33141#pid33141

Add a wifi dongle & configure wifi

I bought a tiny Wifi dongle...

Create /etc/network/interfaces and add the wlan0 configurations as follow:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
  wpa-ssid "My_WiFi_SSID"
  wpa-psk "my password in clear text"

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment