Make Radio Online with SHOUTcast Server v.2 Merge at CWP CentOS

Cara Membuat Radio Online SHOUTcast Server v.2 di Panel Hosting Sendiri

CARA 1 – Install via Panel Hosting

  1. Download: http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz
  2. Upload ke File Manager Sub/Domain Anda;
  3. Extract file;
  4. Edit Permission pada file “setup.sh” dan “sc_serv” ganti dari 755 menjadi 777
  5. Akses file tersebut via SSH ke direktori domain dan folder disimpan;
    perintah:
sed -i -e 's/\r$//' setup.sh
./setup.sh

6. Open Port 8000
7. Buka Browser dan akses IP SHOUTcast:8000
8. Lakukan Setup SHOUTcast anda hingga langkah 5, klik Exit (jangan pilih Run Server);
9. Akses via SSH kembali untuk Start,

./sc_serv

Selesai. Insyaa Allah, dengan Cara 1 ini anda sudah bisa membuat server SHOUTcast.

CARA 2 – Install via CentOS 7 “Fresh”

[root@local ~]# yum -y install wget
[root@local ~]# adduser radio-user
[root@local ~]# passwd radio-user
ISIKAN PASSWORD USER ANDA
[root@local ~]# usermod -aG wheel radio-user
[root@local ~]# su - radio-user
[radio-user@local ~]$ mkdir radioserver
[radio-user@local ~]$ mkdir Shoutcast
[radio-user@local ~]$ cd Shoutcast
[radio-user@local Shoutcast~]$ pwd
[radio-user@local Shoutcast~]$ wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz
[radio-user@local Shoutcast~]$ tar xfz sc_serv2_linux_x64-latest.tar.gz
[radio-user@local Shoutcast~]$ ls
[radio-user@local Shoutcast~]$ cp sc_serv ../radioserver/
[radio-user@local Shoutcast~]$ cd ../radioserver
[radio-user@local radioserver~]$ ls
[radio-user@local radioserver~]$ mkdir control
[radio-user@local radioserver~]$ mkdir logs
[radio-user@local radioserver~]$ sudo chown -R radio-user:radio-user /home/radio-user/radioserver
ISIKAN PASSWORD USER ANDA
[radio-user@local radioserver~]$ nano sc serv.conf

Isikan :

adminpassword=remote-admin-password
password=remote-media-player-password
requirestreamconfigs=1
streamadminpassword_1=password1
streamid_1=1
streampassword_1=password1
streampath_1=http://IPServer:8000
logfile=logs/sc_serv.log
w3clog=logs/sc_w3c.log
banfile=control/sc_serv.ban
ripfile=control/sc_serv.rip

Sesuaikan Pengaturan anda, lalu tekan CTRL+X untuk save, lalu tekan Y pada keyboard, lalu tekan ENTER untuk kembali;

[radio-user@local radioserver~]$ sudo chmod +x sc_serv
"ISIKAN PASSWORD USER ANDA"
[radio-user@local radioserver~]$ firewall-cmd --zone=public --permanent --add-port=8000/tcp
[radio-user@local radioserver~]$ firewall-cmd --zone=public --permanent --add-port=8001/tcp
[radio-user@local radioserver~]$ firewall-cmd --reload
[radio-user@local radioserver~]$ ./sc_serv
  • cek Port apakah sudah terbuka ketik: ss -nutlp
  • insyaa Allah server sdh UP,
  • tekan CTRL+C untuk kembali
[radio-user@local radioserver~]$ sudo pwd
[radio-user@local radioserver~]$ su
"ISIKAN PASSWORD CentOS ANDA"
[radio-user@local radioserver~]$ sudo nano /usr/local/bin/radio
"ISIKAN PASSWORD USER ANDA"

Isikan:

#!/bin/bash
case $1 in
start)
cd /home/radio-user/radioserver/
./sc_serv &
;;
stop)
killall sc_serv
;;
start_daemon)
cd /home/radio-user/radioserver
./sc_serv daemon
;;
*)
echo"Usage radio start|stop"
;;
esac

tekan CTRL+X untuk save, lalu tekan Y pada keyboard, lalu tekan ENTER untuk kembali;

[radio-user@local radioserver~]$ sudo chmod +x /usr/local/bin/radio
[radio-user@local radioserver~]$ exit
[root@local ~]# sudo whoami
[root@local ~]# sudo echo "radio start daemon" >> ~/.bashrc

Insyaa Allah, sampai disini Server SHOUTcast sudah bisa diperintah Start, untuk perintahnya anda bisa gunakan salah satu perintah di bawah ini:

#To starts SHOUTcast server as a daemon [root@local ~]# radio start_daemon 
#To starts SHOUTcast server in foreground [root@local ~]# radio start 
#To stops SHOUTcast server [root@local ~]# radio stop

Install and Configure SHOUTcast Transcoder

[local@radio ~]$ mkdir /home/radio/sct
[local@radio ~]$ cd /home/radio/sct
[local@radio ~]$ wget http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/sc_trans_linux_10_07_2011.tar.gz
[radio@radio sct]$ tar -xzf sc_trans_linux_10_07_2011.tar.gz
[radio@radio sct]$ chown -R radio.radio /home/radio/sct
[radio@radio sct]$ chmod a+x sc_trans
[radio@radio sct]$ nano /home/radio/sct/sc_trans_basic.conf

Isikan dan letakkan dibaris bawah sendiri, scroll kebawah dulu, baru paste:

logfile=logs/sc_trans.log
calendarrewrite=0
uvoxauth_0=password
uvoxstreamid_0=1
public=0
encoder_1=aacp
encoder_2=mp3
bitrate_1=56000
bitrate_2=56000
outprotocol_1=3
serverip_1=102.104.158.253
serverport_1=8000
password_1=mypassword
streamid_1=1
endpointname_1=/Bob
streamtitle=Radio Server
streamurl=http://102.104.158.253
genre=Misc
playlistfile=playlists/main.lst
adminport=7999
adminuser=admin
adminpassword=mypassword

pada IP Server Shoutcast anda sesuaikan dulu, jika sudah tekan CTRL+X untuk save, lalu tekan Y pada keyboard, lalu tekan ENTER untuk kembali;

Insyaa Allah dari tahap ini Shoutcast anda sudah UP dan siap ditembak dengan software broadcast.

Manajemen Perintah untuk Streaming Radio mau di start atau stop streaming, bisa pilih salah satu dibawah ini:

Optional; Radio GUID and Authhash

  1. Login Server sebagai Admin di pada http://myradiodomain.com:8000
  2. klik pada “Create Authhash”
  3. Buat akun atau login jika sudah pny akun, nanti antum akan diantar untuk mengisi Form Radio antum, dari :

Radio station name – Enter your stations / streams title here.
Tags – Enter any keywords or tags relevant to your station.
Select your radio station music styles. Maximum 5 styles. – Select between 2 to 5 genres to be associated with your station.
Cover – Here you can upload a logo / cover art for your station.
Description – Give your radio station a description.
Country – Select your country.
Language – Select your language.
Time zone – Select your relevant time zone.
Website – Enter your own websites URL here.
Existing Stream URL – Here your enter your servers stream URL. So for example: http://uk5.internet-radio.com:8347
Radio Type – Select whether you are a “online station only” or a “online and AM/FM station”.

  1. jika sudah, akan diantar ke profil, silahkan klik pada “Setting”, klik pada menu “Advance”, lalu copy saja code pada kolom “Authhash”
  2. kembali ke panel shoutcast dan paste ke isian kolom “Authhash”.
  3. Selesai. Insyaa Allah.

NB: Untuk SSL (HTTPS) sepertinya untuk Shoutcast Premium (berbayar), cara lain bisa install menggunakan proxy forwarding pakai nginx atau pakai stunnel. Semoga Bermanfaat.

Code Sumber Shoutcast: http://download.nullsoft.com/shoutcast/tools/

Penulis: Damas
Sebagai Dokumentasi.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s