Disini kita akan menginstall icecast2 dan ices2 pada satu server, yang akan menjadi audio server streaming. Icecast2 merupakan sebuah server audio streaming yang mirip dengan shoutcast. Sedangkan Icest2 yang mengirim file audio ke icecast server, Icecast2 lah yang mengirim file file audio tersebut ke client. Setelah kita menginstall dan mengkonfigurasi Icecast2 dan Ices2 dan menempatkan musik kita dalam direktori yang tepat, kita akan memiliki stasiun radio internet sendiri.
Catatan : Ices2 hanya mendukung file Ogg Vorbis ! , Untuk yang mendukung mp3 gunakan IcesO
1. Instalasi icecast2
apt-get install icecast2
2. Konfigurasi icecast2
vi /etc/icecast2/icecast.xml
Masukkan password dan username Anda antara tag ‘authentication’
Untuk mengaktifkan icecast2 dengan mengedit file berikut ini dan ubah “ENABLE = false” menjadi “true”
vi /etc/default/icecast2
# Defaults for icecast2 initscript
# sourced by /etc/init.d/icecast2
# installed at /etc/default/icecast2 by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Full path to the server configuration file
CONFIGFILE=”/etc/icecast2/icecast.xml”
# Name or ID of the user and group the daemon should run under
USERID=icecast2
GROUPID=icecast
# Edit /etc/icecast2/icecast.xml and change at least the passwords.
# Change this to true when done to enable the init.d script
ENABLE=true
3. Start the icecast2 server:
/etc/init.d/icecast2 start
Sekarang di browser buka
http://IP_Server_Audio_Streaming:8000/
4. Instalasi ices2
apt-get install ices2
5. Konfigurasi ices2
Buat direktori untuk penyimpanan file log, konfigurasi dan musik:
mkdir /var/log/ices
mkdir /etc/ices2
mkdir /etc/ices2/lagu
salin contoh file konfigurasi bawaan dari paket
cp /usr/share/doc/ices2/examples/ices-playlist.xml /etc/ices2
edit the file konfigurasi:
vi /etc/ices2/ices-playlist.xml
Ubah “0″ antara tag background menjadi “1″ dan edit password dan meta info, masukkan juga /etc/ices2/playlist.txt setelah tag param name=”file”
Sekarang masukkan file .ogg mu ke dalam direktori /etc/ices/lagu
Buat file playlist /etc/ices2/playlist.txt dan masukkan path untuk file .ogg
vi /etc/ices2/playlist.txt
Seperti ini:
/etc/ices2/music/Bento.ogg
/etc/ices2/music/Janda.ogg
/etc/ices2/music/Kesurupan.ogg
/etc/ices2/music/Ngebor.ogg
/etc/ices2/music/Buaya Darat.ogg
/etc/ices2/music/Matahari.ogg
Jika selesai, start ices2:
ices2 /etc/ices2/ices-playlist.xml
5. Menambahkan ices2 ke icecast2 init script
ini akan menjalan dan menstop ices2 oleh icecast2.
vi /etc/init.d/icecast2
Ubah seperti ini:
#! /bin/sh
#
# icecast2
#
# Written by Miquel van Smoorenburg .
# Modified for Debian
# by Ian Murdock .
#
# Further modified by Keegan Quinn
# for use with Icecast 2
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/icecast2
NAME=icecast2
DESC=icecast2
ICES=/usr/bin/ices2
ICES_CONFIGFILE=/etc/ices2/ices-playlist.xml
test -x $DAEMON || exit 0
# Defaults
CONFIGFILE=”/etc/icecast2/icecast.xml”
CONFIGDEFAULTFILE=”/etc/default/icecast2″
USERID=icecast2
GROUPID=icecast
ENABLE=”false”
# Reads config file (will override defaults above)
[ -r "$CONFIGDEFAULTFILE" ] && . $CONFIGDEFAULTFILE
if [ "$ENABLE" != "true" ]; then
echo “$NAME daemon disabled – read $CONFIGDEFAULTFILE.”
exit 0
fi
set -e
case “$1″ in
start)
echo -n “Starting $DESC: ”
start-stop-daemon –start –quiet –chuid $USERID:$GROUPID \
–exec $DAEMON — -b -c $CONFIGFILE
sleep 3
start-stop-daemon –start –quiet –exec $ICES $ICES_CONFIGFILE
echo “$NAME.”
;;
stop)
echo -n “Stopping $DESC: ”
start-stop-daemon –stop –oknodo –quiet –exec $ICES
start-stop-daemon –stop –oknodo –quiet –exec $DAEMON
echo “$NAME.”
;;
reload|force-reload)
echo “Reloading $DESC configuration files.”
start-stop-daemon –stop –oknodo –quiet –exec $ICES
start-stop-daemon –stop –signal 1 –quiet –exec $DAEMON
sleep 3
start-stop-daemon –start –quiet –exec $ICES $ICES_CONFIGFILE
;;
restart)
echo -n “Restarting $DESC: ”
start-stop-daemon –stop –oknodo –quiet –exec $ICES
start-stop-daemon –stop –oknodo –quiet –exec $DAEMON
sleep 3
start-stop-daemon –start –quiet –chuid $USERID:$GROUPID \
–exec $DAEMON — -b -c $CONFIGFILE
sleep 3
start-stop-daemon –start –quiet –exec $ICES $ICES_CONFIGFILE
echo “$NAME.”
;;
*)
echo “Usage: $0 {start|stop|restart|reload|force-reload}” >&2
exit 1
;;
esac
exit 0
Selesai deh
2. Klik Kanan, Kemudian Copy
3. Paste Kode HTML ke Web-mu
RSS Feed
Twitter
Dipostkan dalam
Tags: 








Belum Ada Komentar.