Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
tutorial: How to install Airtime to an Ubuntu 12.04 vps
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

tutorial: How to install Airtime to an Ubuntu 12.04 vps

jvnadrjvnadr Member
edited August 2014 in Tutorials

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

 

Comments

  • Good tutorial. Installed with no issues. This will be fun to play with

    Thanked by 1jvnadr
  • I've following problem-
    I appreciate any help.
    thanks.

    apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    airtime : Depends: libapache2-mod-php5 but it is not installable
    Depends: mp3gain but it is not installable
    Depends: php5-cli but it is not installable
    Depends: php5-curl but it is not installable
    Depends: php5-gd but it is not installable
    Depends: php5-json but it is not installable
    Depends: php5-pgsql but it is not installable
    Depends: php-apc but it is not installable
    E: Unable to correct problems, you have held broken packages.

  • This is great! Cheers @jvnadr!

    Need to reach me quickly? Ping me on Discord

  • netomxnetomx Member, Moderator

    Nice!

  • It's working on ubuntu 12.04 lts but I was tried 16.04.
    Thanks.

  • LeeLee Member
    edited September 2016

    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.

  • jvnadr said: 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.

    Thanked by 1jvnadr
  • 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.

    Setting up shtool (2.0.8-6) ...
    Setting up php5-dev (5.3.10-1ubuntu3.25) ...
    update-alternatives: using /usr/bin/php-config5 to provide /usr/bin/php-config (php-config) in auto mode.
    update-alternatives: using /usr/bin/phpize5 to provide /usr/bin/phpize (phpize) in auto mode.
    Setting up python-pip (1.0-1build1) ...
    Setting up timidity (2.13.2-40build2) ...
    Setting up timidity-daemon (2.13.2-40build2) ...
    Adding group timidity....done
    Adding system user timidity....done
    Adding user timidity' to groupaudio' ...
    Adding user timidity to group audio
    Done.
    * Stopping TiMidity++ ALSA midi emulation... No timidity found running; none killed.
    [ OK ]
    ...fail!
    * ALSA is not active, cannot start TiMidity++ ALSA midi emulation
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place>

    help me, please.

  • Try to install libasound2-plugins first then try the install again...

  • @jvnadr

    What is Bandwidth usage. Per minute with 70 listener?

    Dewlance
  • DewlanceVPS said: What is Bandwidth usage. Per minute with 70 listener?

    Assuming that you stream at 128Kbps, ~65MB per minute.

  • Esteban88Esteban88 Member
    edited December 2016

    @kendid said:
    Try to install libasound2-plugins first then try the install again...

    How to reinstall airtime?

  • apt-get install airtime

  • @kendid said:
    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

    AIRTIME_SERVER_RESPONDING = OK
    KERNEL_VERSION = 3.13.0-103-generic
    MACHINE_ARCHITECTURE = x86_64
    TOTAL_MEMORY_MBYTES = 501400
    TOTAL_SWAP_MBYTES = 0
    AIRTIME_VERSION = 2.5.1
    OS = Ubuntu 12.04.5 LTS x86_64
    CPU = Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
    WEB_SERVER = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC = 0%
    PLAYOUT_ENGINE_CPU_PERC = 0%
    -- Displaying log file /var/log/airtime/pypo/pypo.log
    -- 2016-12-08 13:40:05,264 ERROR - [LogWriter.py : write() : line 8] - Error
    -- 2016-12-08 13:40:05,264 ERROR - [LogWriter.py : write() : line 8] - :
    -- 2016-12-08 13:40:05,264 ERROR - [LogWriter.py : write() : line 8] - unsupported locale setting

    -- 2016-12-08 13:40:05,264 ERROR - [LogWriter.py : write() : line 8] -

    --

    LIQUIDSOAP_PROCESS_ID = FAILED
    LIQUIDSOAP_RUNNING_SECONDS = 0
    LIQUIDSOAP_MEM_PERC = 0%
    LIQUIDSOAP_CPU_PERC = 0%
    -- Displaying log file /var/log/airtime/pypo-liquidsoap/ls_script.log
    -- 2016/12/08 13:33:38 [threads:3] Thread "wallclock_main" terminated (1 remaining).
    -- 2016/12/08 13:33:39 [threads:3] Thread "http polling" terminated (0 remaining).
    -- 2016/12/08 13:33:39 [main:3] Cleaning downloaded files...
    -- 2016/12/08 13:33:39 [main:3] Freeing memory...

    -- 2016/12/08 13:33:39 >>> LOG END

    --
    MEDIA_MONITOR_PROCESS_ID = 19673
    MEDIA_MONITOR_RUNNING_SECONDS = 2429
    MEDIA_MONITOR_MEM_PERC = 3.2%
    MEDIA_MONITOR_CPU_PERC = 0.0%
    -- There appears to be a problem with your Airtime installation.
    -- Please visit http://wiki.sourcefabric.org/x/HABQ

  • Looks like your locale is not setup properly... Did you follow the instructions above? What is your output for the command "locale" ?

Sign In or Register to comment.