Warning: Undefined variable $bestlang in /home/vcscript/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/transposh.php on line 651
Install latest Red5 on Linux Ubuntu – Video Chat Scripts

Install latest Red5 on Linux Ubuntu


Warning: Undefined array key "geoIP" in /home/vcscript/public_html/wp-content/plugins/ppv-live-webcams/ppv-live-webcams.php on line 1042

Warning: Undefined array key "postTypesAuthors" in /home/vcscript/public_html/wp-content/plugins/paid-membership/paid-membership.php on line 1936

Warning: Undefined array key "postTypesExternal" in /home/vcscript/public_html/wp-content/plugins/paid-membership/paid-membership.php on line 2029

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...
Video Chat Scripts
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.