Linux: RED5 up and running on Ubuntu 9.10

Acest document presupune o masina proaspat instalata cu Ubuntu 9.10, careia ii instalam doar un ssh din setup.

1. Incepem prin a aduce la zi pachetele distributiei plus niste tool`uri folositoare.

apt-get update
apt-get upgrade
updatedb
apt-get install htop wget screen telnet subversion

2. Instalare pachete Java si Ant(build tool).

apt-get install java-package
apt-get install sun-java6-jdk
apt-get install sun-java6-jre
apt-get install ant

3. Dupa terminarea instalarii pachetelor, testam daca java s`a instalat corect, unde s`a instalat si ce versiune avem.

sshlord@black:~$ which java
/usr/bin/java

sshlord@black:~$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

4. Descarcare si compilare Red5 cu Ant.

svn co http://red5.googlecode.com/svn/java/server/trunk red5

export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.13/
export ANT_HOME=/usr/share/ant/

cd red5
/usr/share/ant/bin/ant

5. Daca compilarea s`a incheiat cu succes, putem porni Red5.

sshlord@black:~$ cd red5/dist/

./red5.sh &

6. Inainte de a merge mai departe, putem testa daca Red5 a pornit si asculta pe portul default 5080.

sshlord@black:~/red5/dist$ netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
...
tcp6 0 0 0.0.0.0:5080 :::* LISTEN
...

7. In acest moment puteti deschide un browser si navigati la

http://[domeniu]:5080/

si ar trebui sa vedeti pagina Red5 de mai jos…

8. Daca totul a decurs corect si puteti vedea pagina de start Red5, puteti urmari un scurt demo, cum sa instalati cateva aplicatii demo si cum sa le testati.

Aceiasi pasi ii puteti urma si pe un Ubuntu 9.04…

Leave a Reply

Your email address will not be published. Required fields are marked *