Difference between revisions of "Red5: Instalasi dari SVN Server"

From OnnoWiki
Jump to navigation Jump to search
Line 59: Line 59:
 
...dst ..
 
...dst ..
  
 
+
dist:
 
+
      [copy] Copying 43 files to /usr/share/red5/dist/lib
    dist:
+
      [copy] Copying 22 files to /usr/share/red5/dist/conf
        [copy] Copying 1 file to /usr/share/red5/dist
+
      [copy] Copying 7 files to /usr/share/red5/dist/plugins
 
+
      [copy] Copying 1 file to /usr/share/red5/dist/webapps
    BUILD SUCCESSFUL
+
      [copy] Copying 11 files to /usr/share/red5/dist
    Total time: 6 seconds
+
 
+
BUILD SUCCESSFUL
    —info jika sukses instalasi—
+
Total time: 13 seconds
  
 
Pindahkan File Konfigurasi
 
Pindahkan File Konfigurasi
  
    #cp -r dist/conf .
+
sudo su
 +
cd /usr/share/red5/
 +
cp -r dist/conf .
  
 
Instalasi Red5 selesai, selanjutnya jalankan red5 dengan perintah
 
Instalasi Red5 selesai, selanjutnya jalankan red5 dengan perintah
  
    #./red5.sh
+
sudo su
 +
cd /usr/share/red5/
 +
sudo chmod a+x red5.sh
 +
./red5.sh
  
Sebelumnya kita rubah dulu Permission File
+
Akan keluar
  
    #sudo chmod a+x red5.sh
+
Running on  Linux
 +
Starting Red5
 +
Red5 root: /usr/share/red5
 +
Configuation root: /usr/share/red5/conf
  
Jika instalasi sukses akan ada info ini
+
...dst..
  
    [INFO] [Launcher:/installer] org.red5.server.service.Installer Installer service created
+
[INFO] [Launcher:/live] org.red5.server.Server - Add mapping global: default host:  context: live
 +
[WARN] [Launcher:/] org.red5.server.scope.Scope - Invalid scope was not added: [WebScope@1b9ecd0 Depth = 1, Path = '/default', Name = '']
 +
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created
  
Kita tes melalui browser kesayangan anda
+
Selesai sudah proses instalasi
  
Akses  Red5 IP anda ://<IP ADDRESS>:5080//
 
  
Nah bagaimana  kita menggunakan Red5 Media Server ini, kita akan lanjutkan untuk  live streaming
+
==Test Server==
  
kita akan lanjutkan ke post berikutnya ya.. di tunggu aja…
+
Browse ke server red5
  
==Test Server==
+
http://ip-address-server:5080
  
 
Instalasi Aplikasi Red5 yang ada di
 
Instalasi Aplikasi Red5 yang ada di

Revision as of 07:26, 12 July 2012

Sumber: http://sujianto.wordpress.com/2012/06/24/install-red5-streaming-server-di-ubuntu-12-04/

Install library paket yang dibutuhkan red5

sudo apt-get update
sudo apt-get update && apt-get install sun-java6-jdk
sudo apt-get install openjdk-7-jdk ant subversion
sudo update-alternatives --config java

Akan keluar

There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                           Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java            63        manual mode
  3            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1051      manual mode

Press enter to keep the current choice[*], or type selection number: 

Tekan 3 kemudian ENTER

Pastikan server mempunyai sambungan ke Internet yang baik, karena kita akan melakukan banyak download source code.

Download source code red5 melalui subversion

cd /usr/local/src
svn co http://red5.googlecode.com/svn/java/server/tags/1_0rc2/ red5

Pindahkan paket red5 & lakukan instalasi

sudo su - 
mv red5 /usr/share/
cd /usr/share/red5/
ant prepare
ant dist


Akan keluar pada layar

Buildfile: /usr/share/red5/build.xml

prepare:
    [mkdir] Created dir: /usr/share/red5/bin
    [mkdir] Created dir: /usr/share/red5/dist
    [mkdir] Created dir: /usr/share/red5/log
    [mkdir] Created dir: /usr/share/red5/dist/log
    [mkdir] Created dir: /usr/share/red5/bin/testcases/classes
    [mkdir] Created dir: /usr/share/red5/bin/testcases/testreports 

BUILD SUCCESSFUL
Total time: 1 second
root@stream:/usr/share/red5# ant dist
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar
Buildfile: /usr/share/red5/build.xml

...dst ..

dist:
     [copy] Copying 43 files to /usr/share/red5/dist/lib
     [copy] Copying 22 files to /usr/share/red5/dist/conf
     [copy] Copying 7 files to /usr/share/red5/dist/plugins
     [copy] Copying 1 file to /usr/share/red5/dist/webapps
     [copy] Copying 11 files to /usr/share/red5/dist

BUILD SUCCESSFUL
Total time: 13 seconds

Pindahkan File Konfigurasi

sudo su
cd /usr/share/red5/
cp -r dist/conf .

Instalasi Red5 selesai, selanjutnya jalankan red5 dengan perintah

sudo su
cd /usr/share/red5/
sudo chmod a+x red5.sh
./red5.sh

Akan keluar

Running on  Linux
Starting Red5
Red5 root: /usr/share/red5
Configuation root: /usr/share/red5/conf

...dst..

[INFO] [Launcher:/live] org.red5.server.Server - Add mapping global: default host:  context: live
[WARN] [Launcher:/] org.red5.server.scope.Scope - Invalid scope was not added: [WebScope@1b9ecd0 Depth = 1, Path = '/default', Name = ]
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created

Selesai sudah proses instalasi


Test Server

Browse ke server red5

http://ip-address-server:5080

Instalasi Aplikasi Red5 yang ada di

http://localhost:5080/installer/

Demo Aplikasi Red5 Melalui

http://localhost:5080/demos/

Referensi

Pranala Menarik