tutorial: How to install Airtime to an Ubuntu 12.04 vps
Those are the steps for Airtime installation to an Ubuntu VPS. Although it supposed to have an automatic installation procedure, in reality, there are several issues during install (locale, Alsa drivers, postgresql etc.) that hangs up the setup, most of the times because of a poor template in the providers.
So, I wrote an easy step-by-step installation that is working like a charm, at least for several of my boxes.
Airtime is a fabulus piece of software that turns a vps in a full radio automation system, with capability of restreaming, live shows by any dj, scheduling, even recording and uploading live shows and music to soundcloud!
I run it perfectly in a 512 MB 2vcpu core VPS having tested with 70+ listeners, and the load was never over 0.20 (including transcoding while playing an mp3 from the internal storage, for one radio station – I have not tested with multiple radio stations in the same box or multiple streams).
Memory usage (including apache and postgre) is not exceeding 170-200MB.
For safety, remove default php cache. Airtime uses its own
apt-get remove php5-xcache
Add sourcefabric to sources list. Open
And add the file
deb http://apt.sourcefabric.org/ precise main
(Of course you can use another edition of Ubuntu or even Debian. For Debian, go to Sourcefabric to see the needed repo)
Then, install keyring for sourcefabric and update
apt-get install sourcefabric-keyring
PREPARE SYSTEM FOR UTF-8
Add the line
Run those lines to configure completely for UTF-8
sudo dpkg-reconfigure locales
Install the database management system
apt-get install postgresql
Install a streaming server
apt-get install icecast2
If you don’t get configuration prompts, then, after installation add the config manually in this:
Check this file
The value of ENABLE should be set to true on the last line of that file:
Save and close this file with Ctrl+O and Ctrl+X, then start Icecast:
service icecast2 start
Install alsa tools
apt-get install alsa alsa-tools
FINAL STEP: INSTALL AIRTIME
apt-get install airtime