4

Relay Streaming Server di Linux Ubuntu

Relay Streaming Server di Linux Ubuntu

Relay Streaming Server di Linux Ubuntu

Logo Shoutcast

Tutorial ini digunakan untuk merelay radio streaming pantauan merapi, untuk membantu rekan-rekan relawan dalam memantau situasi Merapi saat ini, berikut langkah-langkanya :
Download paket shoutcast hasil modifikasi penulis yang menggunakan Shoutcast stabel version 1.9.8.

$ wget -c ftp://repo.ugm.ac.id/ekstra/software/linux/internet/shoutcast/shoutcast-1.9.8-stable.tar.gz

Ekstrak paket shoutcast

$ tar xzvf shoutcast-1.9.8-stable.tar.gz

Masuk kedalam direktori shoutcast dan jalankan perintah instalasi paket;

$ cd shoutcast
$ bash install-shoutcast.sh

Keterangan isi bash script ;

  1. mengcopykan file sc_serv /usr/sbin
  2. mengcopykan file sc_serv.conf /etc/shoutcast
  3. mengcopykan file shoutcast /etc/init.d/

Edit konfigurasi shoutcast dengan perintah berikut ;

$ vim /etc/shoutcast/sc_serv.conf

Sesuaikan baris konfigurasi, beberapa point konfigurasi sebagai berikut ;

; MaxUser.  The maximum number of simultaneous listeners allowed.
; Compute a reasonable value for your available upstream bandwidth (i.e. if
; you have 256kbps upload DSL, and want to broadcast at 24kbps, you would
; choose 256kbps/24kbps=10 maximum listeners.)  Setting this value higher
; only wastes RAM and screws up your broadcast when more people connect
; than you can support.

MaxUser=10

; Password.  While SHOUTcast never asks a listener for a password, a
; password is required to broadcast through the server, and to perform
; administration via the web interface to this server.  This server should
; consist of only letters and numbers, and is the same server your broadcaster
; will need to enter in the SHOUTcast Source Plug-in for Winamp.  THIS VALUE
; CANNOT BE BLANK.
Password=password
; PortBase. This is the IP port number your server will run on.  The
; value, and the value + 1 must be available.  If you get a fatal error when
; the DNAS is setting up a socket on startup, make sure nothing else on the
; machine is running on the same port (telnet localhost portnumber -- if you
; get connection refused then you're clear to use that port).  Ports < 1024
; may require root privledges on *nix machines.  The default port is 8000.

PortBase=8000

; RelayPort and RelayServer specify that you want to be a relay server.
; Relay servers act as clients to another server, and rebroadcast.
; Set RelayPort to 0, RelayServer to empty, or just leave these commented
; out to disable relay mode.

RelayPort=8000
RelayServer=175.111.91.181 #relay server dari http://media.ugm.ac.id:8000

Jalankan Shoutcast dengan perintah berikut ;

$ sudo /etc/init.d/shoutcast start
sc_serv.conf -> RelayServer=175.111.91.181
Started 1 servers.
Startup [SUCCESS]

Jalankan browser, kemudian ketik alamat http://domain:8000 atau http://IP_address:8000 ;
Klik tombol listen dan buka dengan player seperti Totem atau Audacious;


Selamat mencoba..

Komentar

komentar

Andrian Dion Priadi

Penulis seorang penggiat Open Source, bekerja sebagai staff IT di PTN Universitas Gadjah Mada, dan juga sebagai direktur utama CV. Manasthika Global Informasi.