Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Guides Forum _ Icecast Server with Relaying

Posted by: Robert83 Aug 31 2006, 10:35 AM

Hello everyone,

This one is going to be a Icecast streaming server guide on CentOS 4.x , for those who do not know what Icecast is, well it's a cool software that can stream music for you, for more details see .

In this guide I will only cover howto install Icecast in order to relay music from other webradio servers like ShoutCast, this is how I use it for the company in order to please the users. And since I doubt that anyone will have the time to update the playlist every day this is the stuff for lazy people how just want to hear music without having to work for it to much.

Let's begin, you install a CentOS 4.0 - 4.3 minimal install with only CD1 , or you do it with a full install not important.

Then you update the system to latest like this :

In terminal/console type :

yum update

yum install rpm-devel rpm-libs rpm-build libvorbis-devel libogg-devel curl-devel libxslt-devel libtheora-devel speex-devel

once done you will probably have to restart system if a new kernel was downloaded, you can do it anyway it wont hurt you.


then we get Icecast package src.rpm file from this website like this :

cd /home

then we need to build the rpm package from this src.rpm like this

cd /home
rpmbuild --rebuild icecast-2.3.1-0.src.rpm

once this is done there will be a rpm file in your /usr/src/redhat/RPMS/i386/

cd /usr/src/redhat/RPMS/i386
rpm -Uvh icecast*.rpm

next step we configure icecast , there is a minimal configuration we need to do in order to get relaying working.

edit the /etc/icecast.xml file like this, changing only the things I mention here :




you can have multiple relays, without problems, just create the aditionals relay under the first <relay> ... </relay> option.

Now we must create the directory and files for the logging.

mkdir /var/log/icecast
chown nobody.nobody /var/log/icecast
cd /var/log/icecast
touch access.log
touch error.loog
chown nobody.nobody *.log

with this done, you can finally start your icecast server like this

icecast -b -c /etc/icecast.xml

Here is a sample music.pls file for winamp :


then you simply load the music.pls file with winamp, and it should play fine.

Robert B

ps.: hereby I would like to ask for a little help, if you know of any good trance station please send me a pm, thank you

Powered by Invision Power Board (
© Invision Power Services (