Sunday, March 3, 2013

Icecast installation


Icecast is free server software for streaming multimedia. The official site address is http://www.icecast.org/.Icecast is free server software for streaming multimedia. In particular, icecast streams audio to listeners over the Internet, and is compatible with Nullsoft’s Shoutcast. Below are the steps given for installing icecast in servers.

You can download the source file for icecast from the link http://www.icecast.org/download.php. Before installing icecast, please make sure the following packages are available in the server. If not, install as follows.

# yum install curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel

Steps
--------------
cd /usr/src/
wget http://downloads.xiph.org/releases/icecast/icecast-2.3.2.tar.gz
tar -xvzf icecast-2.3.2.tar.gz
cd icecast-2.3.2/
./configure --sysconfdir=/etc/icecast --prefix=/usr --exec-prefix=/usr --datadir=/usr/share --enable-fsstd --with-libwra
make
make install

Configuration
You need to modify the /etc/icecast/icecast.xml file and change the default passwords for the users: source, relay, admin. The default passwords are ‘hackme’.


NEW-PASSWORD

NEW-PASSWORD


admin
NEW-PASSWORD

You will have to change the user that the icecast service runs as. It cannot be initiated as root. It’s very picky and will give an error message: view plain
ERROR: You should not run icecast2 as root So simply change it to something else. The most intuitive solution would be to use ‘icecast’


icecast
nogroup


And the last modification is to change the log directory from /usr/var/log/icecast to –> /var/log/icecast
/var/log/icecast

Almost done. Now add the icecast user and create the log path we specified above: mkdir /var/log/icecast
useradd icecast
chown icecast:icecast /var/log/icecast/ Now, run icecast as follows.

su icecast -c 'icecast -c /etc/icecast.xml -b'

Make sure port 8000 is opened in your firewall. Now you can test it by accessing: http://yourdomain.com:8000. You will see a black screen showing icecast status.

No comments:

Post a Comment