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

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
==Instalasi==
+
Install terlebih dahulu library paket yang dibutuhkan red5
  
Instalasi menggunakan perintah
+
    #sudo apt-get update
 +
    #sudo apt-get install openjdk-7-jdk
 +
    #sudo apt-get install ant
 +
    #sudo apt-get install subversion
  
sudo apt-get install subversion java-package sun-java6-jdk ant htop wget screen telnet
+
Setelah install paket selesai dan tidak ada error saat instalasi kita akan melanjutkan ke download red5 paket menggunakan subversion.
  
==Test Java==
+
    #svn co http://red5.googlecode.com/svn/java/server/tags/0_9_1/ red5
  
Ketik perintah
+
Pindahkan paket red5
  
which java
+
    #sudo mv red5 /usr/share/
  
harusnya keluar
+
Kemudian setelah dipindahkan paket tersebut kita masuk ke direktori /usr/share/red5/
  
/usr/bin/java
+
    #sudo cd /usr/share/red5/
  
Ketik perintah
+
Lakukan instalasi paket red5
  
java -version
+
    #sudo ant prepare
 +
    #sudo ant dist
  
akan keluar
+
    Buildfile: /usr/share/red5/build.xml
 +
    ——-
  
java version "1.6.0_22"
+
    ——-
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
 
OpenJDK Server VM (build 20.0-b11, mixed mode)
 
  
itch default
+
    dist:
 +
        [copy] Copying 1 file to /usr/share/red5/dist
  
sudo update-alternatives --config java
+
    BUILD SUCCESSFUL
 +
    Total time: 6 seconds
  
akan keluar
+
    —info jika sukses instalasi—
  
There are 2 choices for the alternative java (providing /usr/bin/java).
+
Pindahkan File Konfigurasi
 
  Selection    Path                                      Priority  Status
 
------------------------------------------------------------
 
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java  1061      auto mode
 
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java  1061      manual mode
 
  2            /usr/lib/jvm/java-6-sun/jre/bin/java      63        manual mode
 
 
Press enter to keep the current choice[*], or type selection number:
 
  
Pilih java-6-sun dalam hal ini pilih nomor 2
+
    #cp -r dist/conf .
  
==Siapkan Lingkungan==
+
Instalasi Red5 selesai, selanjutnya jalankan red5 dengan perintah
  
Siapkan lingkungan, lihat versi
+
    #./red5.sh
  
ls /usr/lib/jvm/
+
Sebelumnya kita rubah dulu Permission File
  
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.24/jre
+
    #sudo chmod a+x red5.sh
export ANT_HOME=/usr/share/ant/
 
  
[[Instalasi Flash Plugin | flash plugin installer]]
+
Jika instalasi sukses akan ada info ini
  
sudo apt-get install flashplugin-installer flashplugin-nonfree flashplugin-nonfree-extrasound
+
    [INFO] [Launcher:/installer] org.red5.server.service.Installer – Installer service created
  
Jika berjalan dengan baik harus kita dapat menginstalasi aplikasi yang sudah di siapkan.
+
Kita tes melalui browser kesayangan anda
  
==Siapkan Red5==
+
Akses  Red5 IP anda ://<IP ADDRESS>:5080//
  
Lakukan
+
Nah bagaimana kita menggunakan Red5 Media Server ini, kita akan lanjutkan untuk live streaming
 
 
  cd /usr/local/src
 
svn co http://red5.googlecode.com/svn/java/server/trunk red5
 
cd /usr/local/src/red5
 
/usr/share/ant/bin/ant
 
 
 
Dalam proses ant akan banyak mendownload ivy dari [[Internet]]. Pastikan sambungan ke [[Internet]] lancar.
 
 
 
Kita kena masalah juga di
 
 
 
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
 
[ivy:resolve] ::          UNRESOLVED DEPENDENCIES        ::
 
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
 
[ivy:resolve] :: org.slf4j#com.springsource.slf4j.api;1.6.1: not found
 
[ivy:resolve] :: org.slf4j#com.springsource.slf4j.bridge;1.6.1: not found
 
[ivy:resolve] :: org.apache.commons#com.springsource.org.apache.commons.codec;1.4.0: not found
 
[ivy:resolve] :: org.apache.commons#com.springsource.org.apache.commons.collections;3.2.1: not found
 
[ivy:resolve] :: org.apache.commons#com.springsource.org.apache.commons.modeler;2.0.1: not found
 
[ivy:resolve] :: org.apache.xerces#com.springsource.org.apache.xerces;2.9.1: not found
 
[ivy:resolve] :: org.objectweb.asm#com.springsource.org.objectweb.asm;3.2.0: not found
 
[ivy:resolve] :: org.objectweb.asm#com.springsource.org.objectweb.asm.commons;3.2.0: not found
 
[ivy:resolve] :: org.antlr#com.springsource.org.antlr;3.1.3: not found
 
[ivy:resolve] :: org.codehaus.groovy#com.springsource.org.codehaus.groovy;1.7.0: not found
 
[ivy:resolve] :: org.mozilla.javascript#com.springsource.org.mozilla.javascript;1.7.0.R2: not found
 
[ivy:resolve] :: javax.xml.stream#com.springsource.javax.xml.stream;1.0.1: not found
 
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
 
[ivy:resolve]
 
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
 
 
BUILD FAILED
 
/usr/local/src/red5/build.xml:209: The following error occurred while executing this line:
 
/usr/local/src/red5/build.xml:223: The following error occurred while executing this line:
 
/usr/local/src/red5/build.xml:174: impossible to resolve dependencies:
 
resolve failed - see output for details
 
 
 
Belum tahu apa solusi-nya
 
 
 
==Menjalankan Red5==
 
 
 
Menjalankan Red5
 
 
 
/usr/local/src/red5/red5.sh &
 
 
 
Test server menggunakan port 5080 (default red5)
 
 
 
  http://localhost:5080
 
  
 +
kita akan lanjutkan ke post berikutnya ya.. di tunggu aja…
  
 
==Test Server==
 
==Test Server==

Revision as of 18:19, 11 July 2012

Install terlebih dahulu library paket yang dibutuhkan red5

   #sudo apt-get update
   #sudo apt-get install openjdk-7-jdk
   #sudo apt-get install ant
   #sudo apt-get install subversion

Setelah install paket selesai dan tidak ada error saat instalasi kita akan melanjutkan ke download red5 paket menggunakan subversion.

   #svn co http://red5.googlecode.com/svn/java/server/tags/0_9_1/ red5

Pindahkan paket red5

   #sudo mv red5 /usr/share/

Kemudian setelah dipindahkan paket tersebut kita masuk ke direktori /usr/share/red5/

   #sudo cd /usr/share/red5/

Lakukan instalasi paket red5

   #sudo ant prepare
   #sudo ant dist
   Buildfile: /usr/share/red5/build.xml
   ——-
   ——-
   dist:
        [copy] Copying 1 file to /usr/share/red5/dist
   BUILD SUCCESSFUL
   Total time: 6 seconds
   —info jika sukses instalasi—

Pindahkan File Konfigurasi

   #cp -r dist/conf .

Instalasi Red5 selesai, selanjutnya jalankan red5 dengan perintah

   #./red5.sh

Sebelumnya kita rubah dulu Permission File

   #sudo chmod a+x red5.sh

Jika instalasi sukses akan ada info ini

   [INFO] [Launcher:/installer] org.red5.server.service.Installer – Installer service created

Kita tes melalui browser kesayangan anda

Akses Red5 IP anda ://<IP ADDRESS>:5080//

Nah bagaimana kita menggunakan Red5 Media Server ini, kita akan lanjutkan untuk live streaming

kita akan lanjutkan ke post berikutnya ya.. di tunggu aja…

Test Server

Instalasi Aplikasi Red5 yang ada di

http://localhost:5080/installer/

Demo Aplikasi Red5 Melalui

http://localhost:5080/demos/

Referensi

Pranala Menarik