Quantcast
Channel: Tutorials — LowEndTalk
Viewing all articles
Browse latest Browse all 1034

tutorial: How to install Airtime to an Ubuntu 12.04 vps

$
0
0

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.

 

PREPERATION

For safety, remove default php cache. Airtime uses its own

apt-get remove php5-xcache

Add sourcefabric to sources list. Open

nano /etc/apt/sources.list

And add the file

 

 

(Of course you can use another edition of Ubuntu or even Debian. For Debian, go to Sourcefabric to see the needed repo)

 

Update

 

apt-get update

 

 

Then, install keyring for sourcefabric and update

 

apt-get install sourcefabric-keyring

 

Update again

 

apt-get update

 

 

 

PREPARE SYSTEM FOR UTF-8

Reconfigure locale

nano /var/lib/locales/supported.d/local

 

Add the line

en_US.UTF-8 UTF-8

Open

nano /etc/default/locale

Add line

LANG=en_US.UTF-8

Run those lines to configure completely for UTF-8

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

 

DATABASE

Install the database management system

apt-get install postgresql

 

ICECAST SERVER

Install a streaming server

apt-get install icecast2

If you don’t get configuration prompts, then, after installation add the config manually in this:

nano /etc/icecast2/icecast.xml

Check this file

nano /etc/default/icecast2

The value of ENABLE should be set to true on the last line of that file:

 

ENABLE=true

 

 

Save and close this file with Ctrl+O and Ctrl+X, then start Icecast:

 

service icecast2 start

 

 

ALSA TOOLS

Install alsa tools

apt-get install alsa alsa-tools

 

 

 

 

FINAL STEP: INSTALL AIRTIME

 

Install Airtime

apt-get install airtime

 


Viewing all articles
Browse latest Browse all 1034

Trending Articles