How to install red5 on Linux

This is simple installation instruction. it can be done as unprivileged user (you might want sudo to root for some commands - but you dont really have to - youll just need to provide full length paths) you need to have:
1. subversion (if you want trunk version instead of last stable)
2. java - jdk and sdk
3. ant 1.7 - currently not in debian etch repositories so Im compiling it from source

Install Apache Ant Ant 1.7:
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
sudo ln -s /opt/ant/bin/ant /usr/bin/ant # shortcut - you sould now be able to use ant

now lets get red5

svn co http://svn1.cvsdude.com/osflash/red5/java/server/trunk red5
#or
wget http://dl.fancycode.com/red5/0.6.3/src/red5-0.6.3.tar.gz
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 dont have root

now let’s compile

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

# or (no idea if it works - but someone changet it - so i guess mayby it works
# ant server

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

and check if everything is working. for me its, and I hope for you itll work too.

debian tutorial was pretty confusing, and I hope I made it more clear.

Description
This video has no description.