The idea of this tutorial is to share my iTunes library and play from anywhere in my house using Airplay technology. I have a large storage for my favourite songs stored in Ubuntu server.
The main reason I do this is because investing storage using Ubuntu is a lot cheaper compare to any storage device for Mac available at stores. It also has expandability option. I just need to add new hard disks if I want more storage. I don't have to buy Airport device, and use my existing stereos and TV.
I am still using my old PC with Pentium 4 processor, 2 GB RAM, and a bunch of hard disks. I use Ubuntu 13.04. So far I have no issues with this setup. I added the Airport feature to it using Shairport to share my music library so I can play any song in the library using my iPhone or iPad. Plug it to my stereo in living room or bed room, or just plug the headphone.
This article will only discuss how to setup the Shairport, an open source version of Airport. If you don't know how to setup the Ubuntu part, you can find another article on this site. You need wifi setup in your network.
I mount the disk called "Music" from the Mac. Point iTunes Media location to this volume. You can setup the volume automatically when you start the Mac.
First, to setup Shairport you need to install required libraries. Open terminal and type:
sudo apt-get install unzip make gcc openssl pkg-config libssl-dev libavahi-client-dev libasound2-dev
Download the shairport file.
Or if it doesn't work, download from this link.
Extract and install the files.
unzip 1.0-dev cd 1.0-dev
Optionally run this command.
sudo make install
Start the Shairport. Change the Airbuntu to your preferred name.
./shairport -a “AirPlay AirBuntu” -d
If everything ok, open your IOS device you should see the Airbuntu Airport is active. Make sure you have shared your iTunes library from your Mac. To do this, open your iTunes preferences, click Sharing, then check the Share my library on local network. Then select Share entire library, so you can play everything not only music.
From tour IOS device, open iTunes, change music Library to the available shared library. Now you can enjoy playing music from your shared iTunes library.