Install latest Red5 on Linux Ubuntu

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 .

 

Some prerequisites:
add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get upgrade
apt-get install locate
updatedb

 

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 -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:

  1. Copy application to /usr/share/red5/webapps (i.e. /usr/share/red5/webapps/videowhisper as explained on VideoWhisper RTMP Applications)
  2. Shutdown red5
    cd /usr/share/red5
    ./red5-shutdown.sh
  3. 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 .

My Review

Review Form...

Reviews

Loading Reviews...