How to install icecast in centOS server

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’. 
       <authentication>
	     <!-- Sources log in with username 'source' -->
	     <source-password>NEW-PASSWORD</source-password>
	     <!-- Relays log in with username 'relay' -->
	     <relay-password>NEW-PASSWORD</relay-password>

	     <!-- Admin logs in with the username given below -->
	     <admin-user>admin</admin-user>
	     <admin-password>NEW-PASSWORD</admin-password>
	</authentication>

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’

    <changeowner>	   
            <user>icecast</user>
	    <group>nogroup</group>
    </changeowner>
And the last modification is to change the log directory from /usr/var/log/icecast to –> /var/log/icecast 
<logdir>/var/log/icecast</logdir>

Almost done. Now add the icecast user and create the log path we specified above: </pre> mkdir /var/log/icecast useradd icecast chown icecast:icecast /var/log/icecast/ </pre> 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.


10 thoughts on “How to install icecast in centOS server

  1. I would like to thank you for the efforts you have made in writing this submit. I am hoping a similar best work within you in the future at the same time. In fact your own creative creating abilities has inspired myself to start my own, personal BlogEngine website now. Actually the blogging will be spreading it’s wings rapidly. Your own write up is a fine instance of it.

  2. Hello my friend! I want to say that this article is amazing, great written and include approximately all vital infos. I’d like to peer more posts like this .

  3. Kobyn says:

    Thank you for this tutorial. I followed these directions and almost everything went trough. I am getting this error when I type “icecast -c /path/to/icecast.xml”

    ERROR: You should not run icecast2 as root
    Use the changeowner directive in the config file

    I changed the following:
    1
    <!–

    icecast
    nogroup

    –>

    Still having the same ERROR.

    Please help. Thank you.

  4. Please ensure that you have added the user ‘icecast’ before you run the command.

  5. pyuhhh….after long failed..finally i have sucesfully installed icecast ahaha….i have bookmarked your page and thanks for the information..

    my problem was firsttime was im not seing the /etc/icecast/icecast.xml must be edit first

    i was edit the xml from the icecast installation folder source 😀

    very good and simple tutorial thanks

  6. […] the source. I followed the instructions at sachinlinux, but you can put the various files wherever you […]

  7. For icecast version 2.4.0, another package is required for the configure process. Or, at least, on the new centos box I installed, it was missing and needed to be installed.

    yum install libxslt-devel

  8. Disregard my previous comment. The install for libxslt-devel was not copied from the top line, as per my mistake. Regardless, with 2.4.0, a new issue arose with the configure line arguments

    –enable-fsstd –with-libwra

    and would not configure unless removed.

Leave a comment