Monday, February 1, 2010

Straming Server Linux Red 5 Installation

REyou need to have:
# chmod 755 jdk-1_5_0-linux-i586.bin

Install Apache Ant Ant 1.7:

tar -zxf apache-ant-1.7.0-bin.tar.gz
sudo mv apache-ant-1.7.0 /opt/ant # you don't need this
export ANT_HOME=/opt/ant
sudo ln -s /opt/ant/bin/ant /usr/bin/ant # shortcut - you sould now be able to use ant

now let’s get red5

svn co red5


tar -zxf red5-0.6.3.tar.gz
mv red5-0.6.3 red5

now we have red5 directory containing red5 sources.

next step is compilation - before that we might want to provide proper patches to java and ant

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
export ANT_HOME=/opt/ant/ # or other directory if you don't have root

now let’s compile

cd red5
/opt/ant/bin/ant prepare
/opt/ant/bin/ant dist

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

cd dist

# or
# ant server

red5 should now run http server on port 5080 and rtmp service on port 1935

so let’s navigate to:

Post a Comment