Slackware 12.2 - Setup an online radio station using icecast ============================================================ Public domain ******************************************************************************** ### icecast Server cd /usr/src/ wget -c "http://downloads.xiph.org/releases/icecast/icecast-2.3.2.tar.gz" tar zxf icecast-2.3.2.tar.gz cd icecast-2.3.2 ./configure --prefix=/usr/local/icecast make && make install mkdir -p /usr/local/icecast/var/log/icecast chown -R nobody.nogroup /usr/local/icecast/var/log/icecast/ cp /usr/local/icecast/etc/icecast.xml{,.bak} ******************************************************************************** ### /usr/local/icecast/etc/icecast.xml 100 2 5 524288 30 15 10 1 65535 hackme hackme admin hackme localhost 8000 127.0.0.1 /stream 1 /usr/local/icecast/share/icecast /usr/local/icecast/var/log/icecast /usr/local/icecast/share/icecast/web /usr/local/icecast/share/icecast/admin /usr/local/icecast/share/icecast/icecast.pid access.log error.log 3 10000 0 nobody nogroup ******************************************************************************** ### Launch icecast /usr/local/icecast/bin/icecast -c /usr/local/icecast/etc/icecast.xml tail -f /usr/local/icecast/var/log/icecast/error.log http://localhost:8000/admin/stats.xml ******************************************************************************** ### libshout (client side) cd /usr/src wget "http://downloads.us.xiph.org/releases/libshout/libshout-2.2.2.tar.gz" tar zxf libshout-2.2.2.tar.gz cd libshout-2.2.2 ./configure && make && make install ldconfig ******************************************************************************** ### ices client cd /usr/src wget http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz tar zxf ices-0.4.tar.gz cd ices-0.4 ./configure --prefix=/usr/local/ices && make && make install cp /usr/local/ices/etc/ices.{conf.dist,xml} ******************************************************************************** ### /usr/local/ices/etc/ices.xml /usr/local/ices/etc/playlist.txt 1 builtin ices 5 0 0 /tmp localhost 8000 hackme http /ices Radio Pejman General genre Pejman's Online Radio Station http://localhost/ 0 128 0 2 ******************************************************************************** ### /usr/local/ices/etc/playlist.txt /root/music/01.mp3 /root/music/02.mp3 /root/music/03.mp3 /root/music/04.mp3 /root/music/05.mp3 /root/music/06.mp3 /root/music/07.mp3 /root/music/08.mp3 /root/music/09.mp3 /root/music/10.mp3 ******************************************************************************** ### Launch ices /usr/local/ices/bin/ices -v -c /usr/local/ices/etc/ices.xml ******************************************************************************** ### Listen mplayer http://localhost:8000/ices ******************************************************************************** _BY: Pejman Moghadam_ _TAG: icecast, ices, radio_ _DATE: 2010-01-13 00:44:40_