Recently working on a videochat application I wanted to use my own VPS server for some real world testing.

Version 0.9 RC2 is the current available for Red5… and after fiddling trying to get things going, I found this cool tutorial which worked like a charm.

Credits of course to the original poster:
http://www.videochat-scripts.com/install-red5-0-9-on-linux-ubuntu/

My VPS is currently running on Ubuntu “Lucid” 10.04.

First installed required packages one by one:
apt-get install subversion
apt-get install java-package
apt-get install sun-java6-jdk
apt-get install ant

Used arrows to browse to the Ok and confirm on jdk installation dialogs.

Verified installed java version:
java -version

Downloaded latest Red5:
mkdir -p ~/svn/red5
cd ~/svn/red5
svn co http://red5.googlecode.com/svn/java/server/trunk red5

Build Red5 with Ant:
export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export ANT_HOME=/usr/share/ant/
cd ~/svn/red5/red5
/usr/share/ant/bin/ant

Installed Red5:
mkdir /usr/share/red5
cp -R dist/* /usr/share/red5/

cd /usr/share/red5
chmod 755 red5.sh
chmod 755 red5-shutdown.sh

Started Red5:
./red5.sh > start.log &

Verified opened ports:
netstat -ant

…and thats it.

Afterwards you just need to remember to direct your connections to rtmp:// on the default port 1935, and have a correspondent web app on your Red5 “webapps” folder… or just like I did, reuse a demo app ( I used the ‘live’ one ), that best fits what you want to do. ;-)