Slackware 13.37 - Setup an online radio station using icecast / ices
====================================================================
Public domain
********************************************************************************
### icecast Server
cd /usr/src/
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/icecast-2.3.3.tar.gz"
su - install
cd /usr/src/
tar xf icecast-2.3.3.tar.gz
cd icecast-2.3.3
./configure --prefix=/usr --sysconfdir=/etc/icecast
make
make install DESTDIR=/usr/local/encap/icecast-2.3.3
cp /usr/local/encap/icecast-2.3.3/etc/icecast/icecast.xml{,.default}
mkdir /usr/local/encap/icecast-2.3.3/usr/share/icecast/log
logout
cd /usr/local/encap/icecast-2.3.3
mv usr/share/doc/ usr/
cat > /usr/local/encap/icecast-2.3.3/postinstall << EOF
#!/bin/bash
chown -R nobody:nogroup /usr/share/icecast
EOF
chmod +x /usr/local/encap/icecast-2.3.3/postinstall
cd /usr/local/encap/
chown -R root:root icecast-2.3.3
mkencap icecast-2.3.3/
epkg icecast-2.3.3
********************************************************************************
### /etc/icecast/icecast.xml
Earth
icemaster@localhost
100
2
5
524288
30
15
10
1
65535
sourcehackme
relayhackme
admin
adminhackme
localhost
8000
127.0.0.1
/stream
1
/usr/share/icecast
/log
/web
/admin
/icecast.pid
access.log
error.log
playlist.log
3
10000
1
1
nobody
nogroup
********************************************************************************
### Launch icecast
/usr/bin/icecast -b -c /etc/icecast/icecast.xml
tail -f /usr/share/icecast/log/error.log
http://localhost:8000/admin/stats.xml
user: admin
pass: adminhackme
********************************************************************************
### libshout (client side)
cd /usr/src
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/libshout-2.3.1.tar.gz"
su - install
cd /usr/src/
tar xf libshout-2.3.1.tar.gz
cd libshout-2.3.1
./configure --prefix=/usr && make
make install DESTDIR=/usr/local/encap/libshout-2.3.1
logout
cd /usr/local/encap/libshout-2.3.1
mv usr/share/doc/ usr/
cd /usr/local/encap/
chown -R root:root libshout-2.3.1/
mkencap libshout-2.3.1/
epkg libshout-2.3.1
ldconfig
********************************************************************************
### ices client
cd /usr/src
wget -c "http://pmoghadam.com/homepage/Pages/Deposit/Source-packages/ices-2.0.2.tar.gz"
su - install
cd /usr/src/
tar xf ices-2.0.2.tar.gz
cd ices-2.0.2
./configure --prefix=/usr/ --sysconfdir=/etc/ices
make
make install DESTDIR=/usr/local/encap/ices-2.0.2
cd /usr/local/encap/ices-2.0.2/
mkdir -p var/log/ices
mkdir -p etc/ices
cp usr/share/ices/ices-*.xml etc/ices
touch etc/ices/ices.xml
logout
cd /usr/local/encap/
mkencap ices-2.0.2
epkg ices-2.0.2
********************************************************************************
### playback : /etc/ices/ices.xml
1
/var/log/ices
ices.log
4
0
/var/log/ices/ices.pid
Radio Pejman
General genre
Pejman's Online Radio Station
playlist
basic
/etc/ices/playlist.txt
0
0
1
localhost
8000
sourcehackme
/ices.ogg
2
2000
80
64000
44100
2
********************************************************************************
### /etc/ices/playlist.txt
/root/music/01.ogg
/root/music/02.ogg
/root/music/03.ogg
/root/music/04.ogg
********************************************************************************
### Launch ices
ices /etc/ices/ices.xml
********************************************************************************
### Listen
mplayer http://localhost:8000/ices.ogg
********************************************************************************
_BY: Pejman Moghadam_
_TAG: icecast, ices, radio_
_DATE: 2012-08-23 23:50:42_