Setting Icecast di Centos 5 32 Bit : Icecast 2.3.3
Prima Hosting - Pertama ikuti perintah di bawah ini untuk mendapatkan perangkat lunak:
# yum groupinstall "Development Tools"
# yum install -y curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel libxslt
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# cd /home
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# mkdir -p /usr/src/icecast
# cd /usr/src/icecast
# wget http://downloads.xiph.org/releases/icecast/icecast-2.3.3.tar.gz
# yum install -y curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel libxslt
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# cd /home
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# mkdir -p /usr/src/icecast
# cd /usr/src/icecast
# wget http://downloads.xiph.org/releases/icecast/icecast-2.3.3.tar.gz
Selanjutnya mengekstrak sumber dan berubah menjadi driectory baru:
# tar xf icecast-2.3.3.tar.gz
# cd icecast-2.3.3
# cd icecast-2.3.3
setelah itu mulai konfigurasinya :
# ./configure --prefix=/opt/icecast/2.3.3
dan terakhir untuk mengkompli semua instalasi yang telah di lakukan di atas :
# make
# make install
# make install
Anda harus memiliki Icecast biner seperti di bawah ini dengan mengetikan perintah /opt/icecast/2.3.3/latest/bin:
# ls /opt/icecast/2.3.3/bin/
icecast*
Sekarang masuklah ke direktori Icecast dan link direktori 2.3.3 dengan perintah di bawah ini :
# cd /opt/icecast
# ln -s 2.3.3 latest
# ln -s 2.3.3 latest
Sekarang mengkonfigurasi Icecast dengan mengedit file icecast.xml. Pertama memindahkan file sampel orignal ke tempat alternatif :
# cd /opt/icecast/latest/etc
# mv icecast.xml icecast.xml.orig
# vi icecast.xml
# mv icecast.xml icecast.xml.orig
# vi icecast.xml
<icecast> <!-- LIMITS --> <limits> <clients>100</clients> <sources>10</sources> <threadpool>5</threadpool> <queue-size>524288</queue-size> <client-timeout>30</client-timeout> <header-timeout>15</header-timeout> <source-timeout>10</source-timeout> <burst-on-connect>1</burst-on-connect> <burst-size>65535</burst-size> </limits> <!-- GENRIC --> <authentication> <source-password>password</source-password> <admin-user>admin</admin-user> <admin-password>password</admin-password> </authentication> <hostname>MyHost/IP</hostname> <listen-socket> <port>8000</port> </listen-socket> <fileserve>1</fileserve> <!-- PATHES --> <paths> <basedir>/opt/icecast/latest/share/icecast</basedir> <webroot>/opt/icecast/latest/share/icecast/web</webroot> <adminroot>/opt/icecast/latest/share/icecast/admin</adminroot> <logdir>/var/log/icecast</logdir> <pidfile>/var/run/icecast/icecast.pid</pidfile> <alias source="/" dest="/status.xsl"/> </paths> <!-- LOG --> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <playlistlog>playlist.log</playlistlog> <loglevel>1</loglevel> <logsize>10000</logsize> <logarchive>1</logarchive> </logging> <!-- SECURITY --> <security> <chroot>0</chroot> <changeowner> <user>icecast</user> <group>icecast</group> </changeowner> </security> </icecast>
The above icecast.xml is very simple. The first section LIMITS defines how many radio stations you maximum want to provide (sources=10), how many clients may connect (clients=100) etc.
Bagian kedua GENERIC mendefinisikan username, hostname Host / IP), port (8000) untuk server sendiri dll
Bagian PATCHES mendefinisikan jalan ke gui web.
Icecast memiliki gui web kecil dan sederhana untuk melihat apa yang terjadi dan bagian ini mendefinisikan mana untuk menemukan dokumen-dokumen web.
agian LOGGING tentu saja untuk penebangan, di mana dan apa yang harus log dll.
Bagian KEAMANAN mendefinisikan bahwa perangkat lunak Icecast sendiri harus berjalan di bawah Icecast pengguna dan kelompok Icecast.
Sekarang kita perlu tiga hal lagi yang harus dilakukan: membuat user dan kelompok yang disebut Icecast sebagaimana didefinisikan dalam file konfigurasi icecast.xml, membuat tempat untuk log dan tempat untuk file pid.
Pertama membuat pengguna Icecast dengan ID 200 dan kelompok Icecast dengan ID 200:
# groupadd -g 200 icecast
# useradd -d /var/log/icecast -m -g icecast -s /bin/bash -u 200 icecast
# useradd -d /var/log/icecast -m -g icecast -s /bin/bash -u 200 icecast
Dengan opsi -m mengatur direktori untuk log secara otomatis dibuat dan langkah kedua dapat terhindar. Hanya direktori untuk file pid sekarang diperlukan:
# mkdir -p /var/run/icecast
# chown -R icecast:icecast /var/run/icecast
# chown -R icecast:icecast /var/run/icecast
Sekarang mencobanya dan mulai server Icecast:
# /opt/icecast/latest/bin/icecast -c /opt/icecast/latest/etc/icecast.xml -b
Starting icecast2
Detaching from the console
Changed groupid to 200.
Changed userid to 200.
Detaching from the console
Changed groupid to 200.
Changed userid to 200.
Server Anda sekarang berjalan sebagai user Icecast dan log akan diproduksi di bawah /var/log/icecast:
# ls /var/log/icecast/
access.log error.log playlist.log
Memeriksa bahwa itu benar-benar berjalan:
# pgrep -fl icecast
4434 /opt/icecast/latest/bin/icecast -c /opt/icecast/latest/etc/icecast.xml -b
Juga server Icecast harus dapat dicapai melalui webgui bawah hostname dan port yang diberikan, contoh http://MyHost/IP:8000/, ketika Anda memiliki setup satu atau lebih stasiun mereka akan muncul di sini. Pengguna untuk webgui administratif didefinisikan dalam file icecast.xml atas - Icecast. Password dalam hal ini adalah kata sandi. demikian cara setting icecast di centos5 32 bit
sekian dan terimakasih.