File yang dibutuhkan u/ membuat Streaming Server.
* shoutcast-1-9-5-linux-glibc6.tar.gz -> Berfungsi sebagai Server Streaming
* sc_trans_posix_040.tgz -> Berfungsi untuk mengatur playlist (digunakan u/ streaming file mp3)
1. Download File tersebut, Lalu simpan file hasil download-an di /home/pick. (biar gampang ngikutin
artikelnya :-D)
2. Ekstrak file hasil downloadan tadi
root@server:/home/pick# tar zxvf shoutcast-1-9-5-linux-glibc6.tar.gz
shoutcast-1-9-5-linux-glibc6/
shoutcast-1-9-5-linux-glibc6/sc_serv
shoutcast-1-9-5-linux-glibc6/sc_serv.conf
shoutcast-1-9-5-linux-glibc6/README.TXT
root@server:/home/pick# tar zxvf sc_trans_posix_040.tgz
sc_trans_040/
sc_trans_040/sc_trans_freebsd
sc_trans_040/sc_trans_linux
sc_trans_040/sc_trans_macosx
sc_trans_040/sc_trans.conf
sc_trans_040/example.lst
3. Pindahkan folder hasil ekstrakan tadi ke /usr/local biar gampang ngemanage paket :-D
root@server:/home/pick# mv shoutcast-1-9-5-linux-glibc6 /usr/local/shoutcast
root@server:/home/pick# mv sc_trans_040/ /usr/local/sc_trans
4. edit file /usr/local/shoutcast/sc_serv.conf.
root@server:/usr/local/shoutcast# vi /usr/local/shoutcast/sc_serv.conf
Cari parameter password lalu ubah sesuai password yang anda inginkan.
Misal: Password=123
5. edit file /usr/local/sc_trans/sc_trans.conf
root@server:/home/pick# vi /usr/local/sc_trans/sc_trans.conf
6. Lalu pada file tersebut ubah beberapa parameter berikut:
PlaylistFile=laguku.lst
ServerIP=127.0.01 #127.0.0.1 adalah alamat server kita. (bisa juga diganti dgn ip server kita)
ServerPort=8000
Password=123 #password harus sama dgn password yang kita isikan pada file sc_serv.conf
StreamTitle=Radio GweX
StreamURL=http://pick.local
Genre=radio q radio mu juga
7. Setelah mengedit file diatas, skarang kita buat playlistnya.
Misal, Lagu yang akan dibuat playlist berada di dalam direktori /home/pick/lagu
root@server:/home/pick# find /home/pick/lagu -type f -name "*.mp3" > /usr/local/sc_trans/laguku.lst
8. Lalu jalankan Shoutcast yang berfungsi sebagai server pada terminal 2 dengan menekan tombol
ALT+F2
Ingat : untuk menjalankan service-service(daemon) streaming server, harus masuk dulu ke direktori
tempat file eksekusi di jalankan.
root@server:/home/pick# cd /usr/local/shoutcast/
root@server: /usr/local/shoutcast/# ./sc_serv
*******************************************************************************
** SHOUTcast Distributed Network Audio Server
** Copyright (C) 1998-2004 Nullsoft, Inc. All Rights Reserved.
** Use "sc_serv filename.ini" to specify an ini file.
*******************************************************************************
[conf] Couldn't find sc_serv.conf -- assuming defaults
Event log:
<04/04/07@21:07:48> [SHOUTcast] DNAS/Linux v1.9.5 (Dec 27 2004) starting up...
<04/04/07@21:07:48> [main] pid: 3385
<04/04/07@21:07:48> [main] loaded config from sc_serv.conf
<04/04/07@21:07:48> [main] initializing (usermax:32 portbase:8000)...
<04/04/07@21:07:48> [main] No ban file found (sc_serv.ban)
<04/04/07@21:07:48> [main] No rip file found (sc_serv.rip)
<04/04/07@21:07:48> [main] opening source socket
<04/04/07@21:07:48> [main] source thread starting
<04/04/07@21:07:48> [source] listening for connection on port 8001
<04/04/07@21:07:48> [main] opening client socket
<04/04/07@21:07:48> [main] Client Stream thread [0] starting
<04/04/07@21:07:48> [main] client main thread starting
<04/04/07@21:07:48> [main] dns thread starting
<04/04/07@21:08:06> [sleeping] 0 listeners (0 unique)
9. Setelah menjalankan Shoutcast, sekarang kita jalankan sc_trans_linux pada direktori
/usr/local/sc_trans di terminal 3 dengan menekan tombol ALT+F3
root@server:/# cd /usr/local/sc_trans/
root@server:/usr/local/sc_trans# ./sc_trans_linux
******************************************************************************
** TRANScast Distributed Network Audio Content Provider
** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
** Use "sc_trans filename.conf" to specify a config file.
******************************************************************************
<04/04/07@21:15:12> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<04/04/07@21:15:12> [MAIN] PID: 3796
<04/04/07@21:15:12> [MAIN] Loaded config from sc_trans.conf
<04/04/07@21:15:12> [MAIN] Loading playlist (laguku.lst)
<04/04/07@21:15:12> [MAIN] Found (5) entries in playlist
<04/04/07@21:15:12> [MAIN] Playlist decoder thread starting
<04/04/07@21:15:12> [DECODE] Opened cupumanik - siklus waktu.mp3
<04/04/07@21:15:12> [CONFIG] WARNING: No InputSamplerate defined, assuming 44100!
<04/04/07@21:15:12> [CONFIG] WARNING: No InputChannels defined, assuming 2!
<04/04/07@21:15:12> Warning: input file samplerate is 1 Hz, must be 44100!
<04/04/07@21:15:12> Warning: input file samplerate is 1 Hz, must be 44100!
<04/04/07@21:15:12> [MAIN] Streaming thread starting
<04/04/07@21:15:12> [DECODE] Opened cupumanik - bukan saat ini.mp3
<04/04/07@21:15:13> [STREAM] Creating stream socket
<04/04/07@21:15:13> [STREAM] Connected to host server
<04/04/07@21:15:13> [STREAM] Host server gave success (OK2)
<04/04/07@21:15:13> [STREAM] Stream to 127.0.0.1 established
<04/04/07@21:15:13> [STREAM] Sending stream information
<04/04/07@21:15:15> [MAIN] Title Updated
10. berez dah smua...skarang kita test lewat browser...ketikan http://ipserver:8000 pada address
browser.
Mis: http://192.168.0.1:8000/
11. Klo dah muncul web..shoutcastnya...and servernya up...kita test lewat WINAMP.
Pada winamp tekan tombol CTRL + L lalu isikan http://192.168.0.1:8000/listen.pls atau
http://192.168.0.1:8000