HOWTO: Install Airtime on Dreamhost Debian Squeeze VPS
  • Hello,

    After much trial & error, I finally got Airtime to install on my Dreamhost VPS.

    Here are the instructions. Enjoy!

    1. Remove Dreamhost Management (Everything but Users/FTP Management)

    2. Set Up Hosts File
    sudo vi /etc/apt/sources.list

    ## Debian Squeeze sources.list

    ## Debian security updates:
    deb http://security.debian.org/ squeeze/updates main contrib non-free
    deb-src http://security.debian.org/ squeeze/updates main contrib non-free

    ## Debian.org:
    deb http://ftp.debian.org/debian/ squeeze main contrib non-free
    deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

    ## Debian Official Repository Mirror squeeze:
    deb ftp://debian.oregonstate.edu/debian/ squeeze main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/ squeeze main contrib non-free
    deb ftp://debian.oregonstate.edu/debian/ squeeze-proposed-updates main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/ squeeze-proposed-updates main contrib non-free

    ## Debian US mirror:
    deb ftp://ftp.us.debian.org/debian/ squeeze main contrib non-free
    deb-src ftp://ftp.us.debian.org/debian/ squeeze main contrib non-free

    ## Multimedia
    deb ftp://debian.oregonstate.edu/debian/ squeeze main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/ squeeze main contrib non-free
    deb ftp://debian.oregonstate.edu/debian/ squeeze-proposed-updates main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/ squeeze-proposed-updates main contrib non-free

    ## Debian US mirror:
    deb ftp://ftp.us.debian.org/debian/ squeeze main contrib non-free
    deb-src ftp://ftp.us.debian.org/debian/ squeeze main contrib non-free

    ## Other Multimedia
    deb http://www.deb-multimedia.org squeeze main non-free
    deb http://www.deb-multimedia.org squeeze-backports main

    ## Airtime

    3. Update Packages
    sudo apt-get update

    4. Install Digest::MD5
    sudo perl -MCPAN -e 'install Digest::MD5'

    5. Remove Dreamhost Custom Packages
    sudo aptitude remove '~o'

    6. Configure Locale (en-US.UTF-8)
    sudo dpkg-reconfigure locales
    REBOOT NOW!

    7. Allow Other Execution in Home Directory (required for Airtime UTF8 check)
    chmod o+x /home/<username>

    8. Install Soundfabric Package
    sudo apt-get install sourcefabric-keyring

    9. Remove PostgresSQL (Existing)

    sudo apt-get --purge remove postgresql\*
    sudo userdel -r postgres
    sudo groupdel postgres

    10. Re-install DBMS
    sudo apt-get install postgresql

    11. Verify PostgreSQL UTF8 Encoding
    sudo su -c 'psql -t -c "SHOW SERVER_ENCODING"' postgres | grep -i "UTF.*8"

    12. Install IceCast2
    sudo apt-get install icecast2

    13. Remove PulseAudio
    sudo apt-get purge pulseaudio

    14. Install Airtime
    sudo apt-get install airtime

    15. Fix Apache Sites-Enabled
    sudo unlink /etc/apache2/sites-enabled/000-default
    sudo service apache2 restart

    Thanks,
    awgneo
    Post edited by Alex Groleau at 2013-01-18 14:06:59
  • 16 Comments sorted by
  • added apache sites-enabled fix ;)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Alex, thanks for posting that!
  • NP! Great software BTW! After getting it all working it has been working extremely well :)

    One other issue I had was that my Icecast2 streams were not being configured properly after I had changed settings around on them.


    "In /etc/init.d/airtime-liquidsoap I removed --nicelevel -15 from the parameters and restarted the service with $ sudo invoke-rc.d airtime-liquidsoap restart"

    Then things starting syncing up again instead of it saying "Getting information from the server" forever in the Airtime UI. I am not sure exactly why I had to make this change, however.
  • Hello Alex, i have a VPS hosting plan (Debian Linux) in dreamhost and i have several websites up and running, my concern it is if i can install airtime in the same VPS without causing a problem with my current sites. How can i access to the linux shell to follow your steps?. Thanks for the Post, i am totally desperate to have airtime working. Thanks again!!
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Andres, Airtime uses a virtual host configuration so it is possible to run alongside other websites on the same virtual server. However if you have current websites in production I would suggest running Airtime on a separate VPS or dedicated server, just to prevent the risk of downtime.

    If budget is an issue, I would suggest running something like Virtualbox with a Debian wheezy image on your desktop machine and getting familiar with Airtime installation that way, before attempting to install on your web server.

    Cheers!

    Daniel
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    @Daniel, you have forgot Airtime Pro :-)
  • Hi, thank your for this tuto ;)

    After installation have this message:

     failed!
    [warn] ALSA is not active, cannot start TiMidity++ ALSA midi emulation ... (warning).
    Setting up oss-compat (2+deb7u2) ...
    libkmod: ERROR ../libkmod/libkmod-module.c:1567 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
    Error: could not get list of modules: No such file or directory
    Setting up g++-4.7 (4.7.2-5) ...
    Setting up g++ (4:4.7.2-1) ...
    update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
    Setting up build-essential (11.5) ...
    Setting up libstdc++6-4.7-dev (4.7.2-5) ...
    Processing triggers for menu ...
    Processing triggers for libapache2-mod-php5 ...
    [ ok ] Reloading web server config: apache2.
    Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    can you help me please?

    thank
    regards
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Jose, it seems like your server does not have any sound support, this suggests you may be running a custom kernel. What does the output of the command:

    uname -r

    return for you?
  • Hi Dan

    thank you for your help.
    I have a 7 debian vps server there is a week, it's new for me to work with command lines.

    turn around uname -r 
    3.14.32-xxxx-grs-ipv6-64-vps


  • Hi Daniel

  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Jose, that would appear to be a custom VPS kernel which may not include sound support. The Debian package of Airtime depends on various packages which expect that sound support to be available.

    If you want a trouble-free way of running Airtime on an virtual server, I would recommend Airtime Pro as Albert suggests above. See https://www.airtime.pro/

    Cheers!

    Daniel
  • hi Daniel,

    i have trial in airtime.pro, but $40 for only 40 listeners is expensive!

    is posible install sound in my VPS?

    What is better solution?

    Thanks
  • You currently have more than 40 listeners? PM me!
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Jose, the Airtime Pro costs are not just for streaming, they also include maintenance of Airtime servers, storage and live help. The Starter package is for 2 streams with up to 40 concurrent listeners each, so 80 concurrent listeners, not 40 listeners in total.

    Some streaming-only packages may be cheaper, but that's not a direct comparison. If you were to run your own Airtime server, pay for hosting, storage, bandwidth, specialist support and a system administrator with broadcast experience, I really doubt it would cost less!

    Cheers!

    Daniel
  • Daniel! Pray tell, when can we look forward to a revamped 3.0 release on .pro? 2015? 2016?
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Roger, you'll have to ask Albert S. that :-) But there's a lot of focus going into Airtime Pro at the moment.