I spent all day installing Red5: first on BSD, then on Ubuntu
I burned a whole day wrestling with Red5. Have you come across it? It is a media server. In my case, it needs to receive and distribute a live video stream from a camera. I first tried installing it on Ubuntu, but got stuck somewhere around the battle with jdk 1.6. It turned out I needed to remove version 1.5. So I switched to the BSD server and tried installing it there, then went back to Ubuntu, removed all of Java, and started wrestling with the server from scratch. In the end, the process looked like this:
apt-get install subversion
apt-get install java-package
apt-get install sun-java6-jdk
apt-get install sun-java6-jre
apt-get install ant
mkdir -p ~/svn/red5
cd ~/svn/red5
svn co http://red5.googlecode.com/svn/java/server/trunk red5
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun/
export ANT_HOME=/usr/share/ant/
cd ~/svn/red5
/usr/share/ant/bin/ant
mkdir /usr/share/red5
cp -R ~/svn/red5/dist/* /usr/share/red5/
cd /usr/share/red5
chmod 755 red5.sh
/usr/share/red5/red5.sh &
netstat -ant
telnet localhost 5080
and it worked. Almost immediately, I recorded a video from the laptop camera in FLV format and successfully found it on the server. That is enough for now. There is a big football match tomorrow, so Red5 can wait until Thursday…