· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Red5 Install/Red5 Tuto

Red5Tutotial


* 2011.4.1

* aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev

* http://www.eclipse.org/downloads/
  • /home/tcheun/.gnome2/epiphany/downloads
    • eclipse-jee-helios-SR2-linux-gtk.tar.gz
  • ephipany 에서 편집 기본설정 이후 Download 로 다운로드함.
  • tar zxvf eclipse-jee-helios-SR2-linux-gtk.tar.gz

* install red5 plugin in eclipse
  • help -> install new software -> add
Name: Red5Plugin 0.2.x (Eclipse 3.2+)
URL: http://trac.red5.org/chrome/site/projects/red5plugin/update_0.2.x/
  • select General then selected Red5 Feature
  • installed file under plugins
drwxr-xr-x 8 root root  4096 2011-04-03 16:23 org.jedai.wizard_0.2.0
-rw-r--r-- 1 root root 40680 2011-04-03 16:24 org.red5.server_0.2.0.jar
drwxr-xr-x 8 root root  4096 2011-04-03 16:24 org.red5.wizard_0.2.0

* jvm 을 openjdk 로 설정
  • eclipse.ini
-vm
/usr/lib/jvm/java-6-openjdk/jre/bin/java

* window -> preferences -> server -runtime environment -> add -> infrared5 -red5 server runtime
  • -> next -> jre: java-6-openjdk runtime directory: /usr/share/red5 -> finish -> ok

* red5 start, stop
  • edit /usr/share/red5/red5.sh
if [ -z "$JAVA_HOME" ]; then
  export JAVA_HOME="/usr/lib/jvm/java-6-openjdk/jre";
fi
  • /etc/init.d/red5-server 에 JAVA_HOME, RED5_HOME 등이 설정되어 있음.

* svn co http://red5.googlecode.com/svn/java/server/tags/0_9_1 red5-0.9.1.svn
  • cd /usr/share/red5/webapps
  • cp -Rf /home/tcheun/Downloads/red5-0.9.1.svn/webapps/installer .
  • cd root
  • cp -Rf /home/tcheun/Downloads/red5-0.9.1.svn/webapps/root/demos .
  • cd /usr/share/red5/webapps
  • find . -type d -exec chown _red5 {} \;

* edit /etc/init.d/red5-server
  • JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ -> JAVA_HOME=/usr/lib/jvm/java-6-openjdk

* flash plugin for ephipany 설치 * reboot 한 후에 demo 가 수행된다?

* 따라해보기 * import org.apache.commons.logging.Log;
  • http://www.slf4j.org/legacy.html
  • window -> preference -> Java - installed jres -> java-6-openjdk -> edit => add external jars
    • /usr/share/java/jcl-over-slf4j.jar

  • run eclipse as root
    • tcheun 으로 수행할 수 있도록 고쳐야 함.
Buildfile: /home/tcheun/eclipse-jee/.metadata/.plugins/org.eclipse.jst.server.generic.core/sjsas.xml
-checkWebDeploy:
deploy.j2ee.web:
     [copy] Copying 1 file to /usr/share/red5/webapps/red5Streaming/WEB-INF/lib
   [delete] Deleting: /home/tcheun/eclipse-jee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/red5Streaming.jar
     [copy] Copying 5 files to /usr/share/red5/webapps
BUILD SUCCESSFUL
Total time: 5 seconds

2001.4.9


* http://www.red5tutorials.net/index.php/Tutorials:Getting_Started_With_Red5_Server
  • set WEB-INF/src folder as the root folder of our java sources. 무슨 의미일까?
  • svn co http://red5.googlecode.com/svn/doc/tags/0_8rc1 red5_doc.svn
  • workspace-red5/Red5FirestApp/WEB-INF 에 svn 내용중 WEB-INF 밑의 파일들을 복사
    • cp /home/tcheun/red5_doc.svn/templates/myapp/WEB-INF/* .
  • import org.apache.commons.logging.Log; 문제 위에 서술된데로 조치
    • Access restriction
    • http://nogun.tistory.com/65
    • !accept 가 오류로 나왔지만 지우고 다시 쓰자 오류 없어짐. ?
    • part 2 의 jetty 부분은 web.xml 수정

* create a new folder under red5/webapps named firstapp
  • 점검 필요
  • owner 과 group 를 어떻게 설정해야 하는가?
  • 현재 red5 는 잘 돌고 있는가?
  • /etc/init.d/red5-server 에 보면 DAEMONUSER=_red5 로 설정되어 있다.
  • _red5 user 는 red5-server 를 설치할 때 만들어 지는 것 같다.
    • getent passwd _red5
  • oflademo 를 설치할 때 chown _red5 는 의미가 있는가?
  • 다른 example 파일들은 owner 가 root 로 되어 있다.

* /etc/red5/access.properties
red5user readwrite

* /etc/red5/red5.policy
  • 이 파일을 이해해야 함.
grant principal javax.management.remote.JMXPrincipal "red5user" {
   permission java.security.AllPermission;
};

grant principal javax.management.remote.JMXPrincipal "guest" {
   permission javax.management.MBeanPermission "*", "queryNames";
   permission javax.management.remote.SubjectDelegationPermission "javax.management.remote.JMXPrincipal.*";
};

* port 설정을 해 주어야 demo 가 제대로 돌 것 같다.
First you will need to port some ports in your firewall:

* RTMP Port: 1935
* Debug Proxy Port: 1936
* HTTP Servlet Port: 5080
* RTMPT Port: 8088



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-04-11 01:45:39
Processing time 0.0082 sec