This post shows how to install latest Red5 from svn trunk on Linux Ubuntu.
For other linux flavors (i.e. Centos) see this comprehensive tutorial Install Red5 and JDK on Centos.
This installation was done from windows so we used WinSCP and PuTTy (free software) and was inspired from online tutorials.
This installation was done fluently: if you go to other folders and do other tasks during the installation make sure you return to the right folder before resuming.
If you’re doing this remotely comment any line referring to cdrom as source from /etc/apt/sources.list .
apt-get install locate
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:
Downloaded latest Red5:
mkdir -p ~/svn/red5
svn co http://red5.googlecode.com/svn/java/server/trunk red5
Build Red5 with Ant:
cp -R dist/* /usr/share/red5/
chmod 755 red5.sh
chmod 755 red5-shutdown.sh
./red5.sh > start.log &
Verified opened ports:
netstat -anp | grep java
Open ports if needed:
iptables -A INPUT -p tcp -d 0/0 -s 0/0 –dport 5080 -j ACCEPT
iptables -A INPUT -p tcp -d 0/0 -s 0/0 –dport 1935 -j ACCEPT
To install a new rtmp application you need to:
- Copy application to /usr/share/red5/webapps (i.e. /usr/share/red5/webapps/videowhisper as explained on VideoWhisper RTMP Applications)
- Shutdown red5
- Restart red5
./red5.sh > restart.log &
An alternative to doing the red5 installation yourself would be to order red5 installation .
If you don’t have the time and experience to run your own server or vps, you should use managed red5 hosting .