Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Icecast Server with Relaying, Installation and Configuration on CentOS 4.x
Robert83
post Aug 31 2006, 10:35 AM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



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 www.icecast.org .

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 :

CODE
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.

CODE
reboot


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

CODE
cd /home
wget http://downloads.xiph.org/releases/icecast/icecast-2.3.1-0.src.rpm


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

CODE
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/

CODE
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 :

CODE
<source_password>secret</source_password>
<relay_password>secret</relay_password>
<admin_password>secret</admin_password>

<relay>
     <server>slageronline.neteyes.hu</server>
     <port>9000</port>
     <mount>/</mount>
     <local_mount>/music</local_mount>
     <on_demand>0</on_demand>
  
     <relay_shoutcast_metadata>0</relay_shoutcast_metadata>
</relay>

<user>nobody</user>
<group>nobody</group>
<logdir>/var/log/icecast</logdir>


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.

CODE
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 :

CODE
[playlist]
NumberOfEntries=1
File1=http://192.168.10.2:8000/music


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

Sincerely
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


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post

Posts in this topic
- Robert83   Icecast Server with Relaying   Aug 31 2006, 10:35 AM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th October 2017 - 08:35 PM