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
Good tutorial. Installed with no issues. This will be fun to play with
I've following problem-
I appreciate any help.
This is great! Cheers @jvnadr!
It's working on ubuntu 12.04 lts but I was tried 16.04.
Not bad, two years this thread has waited for it's revival.
I just used this post about a month ago... Funny it popped up again! I ended up having to use 64bit version of Ubuntu because it would randomly start broadcasting dead air... After switching, worked great!
Thanks op for posting this way back then! Helped alot!
I still use an old ubuntu 12 installation of airtime after 2,5 years, and it works! If I find some time, I will try to install it on a newer OS to post an updated tutorial.
Submit it as tutorial to LEB and get paid for it.
Thank you for this tutorial
I can not install on a vps in DigitalOcean, I followed the steps of the official tutorial and this, but always the same error.
help me, please.
Try to install libasound2-plugins first then try the install again...
What is Bandwidth usage. Per minute with 70 listener?
Assuming that you stream at 128Kbps, ~65MB per minute.
How to reinstall airtime?
apt-get install airtime
Thank you very much for the help @Kendid
I just have to solve this bug to make it work fine.
PLAYOUT_ENGINE_PROCESS_ID and LIQUIDSOAP_PROCESS_ID
Looks like your locale is not setup properly... Did you follow the instructions above? What is your output for the command "locale" ?