Radio Serving

From blag.wiki.aktivix.org

Jump to: navigation, search

Contents

Overview

To get started serving radio, you're also going to need to do some Radio Streaming. A server like icecast or shoutcast will be required, as well as a source like MuSE. This document assumes you are using icecast.

You're going to have to consider some things before getting started:

Legal issues

Watch out if the music you're playing is copyrighted. The RIAA probably won't appreciate people playing "it's" music over the net. Also, some ISPs do not permit people setting up servers of any kind.

Internet connection speed

Internet connection speed is a limiting factor in the number of users that can listen to your radio station.

Computer hardware

Things to consider things include the amount of RAM required and processor speed. 64MB of RAM is the minimum recommended, although 32MB will do.


Installation

First off, icecast must be installed.

apt-get install icecast2

Configuration

Open /etc/icecast.xml in your favourite text editor. We're going to go through the configuration step by step. Note that you should not copy and paste these into icecast.xml, you should only edit these values in an existing icecast.xml. Copying and pasting all of these into your icecast.xml will render your icecast server useless.

   <limits>
       <clients>25</clients>
       <sources>2</sources>
       <threadpool>5</threadpool>
       <queue-size>102400</queue-size>
       <client-timeout>30</client-timeout>
       <header-timeout>15</header-timeout>
       <source-timeout>10</source-timeout>
   </limits>

Change these values to appropriate ones. Maximum clients should probably be no more than 25, most likely much less. Sources is the maximum number of radio stations. Most of the other values should be left alone.

   <authentication>
       <source-password>password</source-password>
       <relay-password>password</relay-password>
       <admin-user>admin</admin-user>
       <admin-password>password</admin-password>
   </authentication>

Pretty self-explanitory, just change the passwords. The source-password will be required later on.

   <hostname>radio.blagblagblag.org</hostname>

The hostname visible from the outside world. If you're just streaming to yourself, set this to 127.0.0.1.

   <listen-socket>
       <port>8000</port>
   </listen-socket>

Port to listen on. Uncomment the commented out line to make it so that only you can listen.

   <paths>
       <basedir>/usr/share/icecast</basedir>
       <logdir>/directory</logdir>
       <webroot>/usr/share/icecast/web</webroot>
       <adminroot>/usr/share/icecast/admin</adminroot>
   </paths>

The only thing that needs to be changed here would be the logdir setting. This directory will have to be writable to the user who is specified later on.

   <logging>
       <accesslog>access.log</accesslog>
       <errorlog>error.log</errorlog>
     	<loglevel>4</loglevel> 
   </logging>

Pretty self-explanitory.

   <security>
       <chroot>0</chroot>
       <changeowner>
           <user>icecast</user>
           <group>icecast</group>
       </changeowner>
   </security>

Specify the username and group to change to once started up. This user MUST be able to write to the directory specified earlier in the logdir setting.

Start Icecast

As root run:

icecast -c /etc/icecast.xml &

Icecast should start now. If you get error messages, go back and make sure you did everything correctly.

Radio Streaming

Now that you've set up your radio server (Icecast), you now need to go do some Radio Streaming with MuSE.


Credits

Stephen Clement

Personal tools