How to install red5 on Linux

Some Cool tips to install red5 on Linux.

Prerequisite
1. Subversion (To checkout latest source from red5)
2. Java – jdk
3. Ant 1.7 – currently not in debian etch repositories so I m compiling it from source.

1) apt-get install subversion (This will install latest subversion package)

2) Install Java developing environment

Download the latest JDK version of Linux from Sun official website. Here we use the version 1.5.0.11 and its downloaded file name is jdk-1_x_x_-linux-i586.bin. (Get the latest java version to get run red5)

Add the executable permission to the file: chmod +x jdk-1_x_x_-linux-i586.bin
Execute the following command to start installation:
./jdk-1_x_x_-linux-i586.bin

According to the reference install information, it recommends the installation path: /usr/java

3) Install Apache Ant Ant 1.7:x
wget http://apache.mirror.transip.nl/ant/binaries/apache-ant-1.7.0-bin.tar.gz
=>tar -zxf apache-ant-1.7.0-bin.tar.gz
=>sudo mv apache-ant-1.7.0 /opt/ant # you dont need this
=>export ANT_HOME=/opt/ant

Input command directly through Terminal:
export JAVA_HOME=/usr/java
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Red5

svn co http://svn1.cvsdude.com/osflash/red5/java/server/trunk red5
cd red5
now we have red5 directory containing red5 sources.
next step is compilation

cd red5
/opt/ant/bin/ant prepare
/opt/ant/bin/ant build

now directory “dist” contains compiled and ready to run server

cd dist
sh red5.sh

Run red5 from dist directory other wise it will not run.
red5 should now run http server on port 5080 and rtmp service on port 1935

so lets navigate to:

http://localhost:5080/demos/port_tester.swf

Need any help: Feel free to ask….
pankaj.dangi@gmail.com

Cheeerrrrrsssss