Installing Red5 0.8 on Ubuntu 9.04

Posted on 21. Aug, 2009 by in Streaming

Print This Post Print This Post

VN:F [1.6.3_896]
Rating: 8.8/10 (33 votes cast)

This build document outlines the steps to install Red5 0.8 on Ubuntu 9.04 using svn checkout from Google Code. This build is based on installation instructions Installing Red5 on Ubuntu 8.04.1 with a few updates/modifications.

We are starting with a fresh Ubuntu 9.04 install (using ubuntu-9.04-server-amd64.iso). The only software selected during installation was OpenSSH Server.


After installation, assign a static IP address and log in remotely with putty (see Ubuntu Setting Static IP Address).

Execute the following command to update apt packages:

sudo apt-get update


Install Subversion so you can download code from google code:

sudo apt-get install subversion


Press Y for yes


Repeat to install java package:

sudo apt-get install java-package


Repeat to install java jdk:

sudo apt-get install sun-java6-jdk


When the Sun License Agreement page comes up, use the right arrow key to select OK and press Enter to continue


Press the Left Arrow and select Yes to agree


Repeat to install ant

sudo apt-get install ant


Next we will download Red5 source code from googlecode. Create a temporary directory to download the code

mkdir -p ~/svn/red5


Change directories to go to the red5 code directory

cd ~/svn/red5

Now execute the following command to download the code:

svn checkout red5-read-only

Execute the following two commands to set environment variables in order to compile the code:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

export ANT_HOME=/usr/share/ant/


Change directories to the red5-read-only directory:

cd ~/svn/red5/red5-read-only


Execute the ant command to compile the code:



The source code will be compiled into the dist directory. This will take a couple minutes.

Next, we will create a permanent directory where the final red5 installation will go:

sudo mkdir /usr/share/red5


Change directories to the dist directory:

cd ~/svn/red5/red5-read-only/dist


Copy all of the files to the new red5 directory:

sudo cp -R * /usr/share/red5/


Change directories to the new red5 directory and change permissions on the red5 startup script to allow it to be executed:

cd /usr/share/red5

sudo chmod 755


Execute the following command to start the red5 server:

/usr/share/red5/ &


After server starts up, you can access the web console by entering the following URL in your browser:



If this screen comes up your installation was a success. Follow the instructions thru the web console to install and test out the demos.

If you have questions or problems with this build please leave a comment below.

VN:F [1.6.3_896]
Rating: 8.8/10 (33 votes cast)

Tags: , , , , ,

Print This Post Print This Post



18. Sep, 2009

Brilliant… !! GOOOOOOOOOOD !! it was my first time this RED5.. and i got 10/10 :)…Hey now build doc for RED5CHAT…..Thanks bro


12. Oct, 2009

Hamed Zaghaghi

22. Oct, 2009


I have a problem with red5 installer!
i can install it but when i run, and go to localhost:5080/installer, it can’t list applications. do you know why?



17. Feb, 2010

It works GREAT for me. Many thanks for your tutorial ;D

Name (required)

26. Mar, 2010

I want to know red5 server will be start manually or automatically


28. Mar, 2010

By default it won’t start automatically. Use the /usr/share/red5/ script to start it manually. You will need to create a startup script if you want it to start when the server starts.


29. Mar, 2010

This is probably the best tutorial for red5 I have found on the net. Very big thank you for this. You are cool brother


30. Mar, 2010

You just saved me a bunch of time. Very good tutorial. Now I am up and running I can spend more time on understanding Red5 better. Cheers to you.


09. Apr, 2010

thanks for this manual, It works. Can you can help me with the full configuration to send and receive video?

Meftah TAYEB

17. Apr, 2010

very good tutorial
very usefull
accessible to blind man like me
very readable
work at 100% evean with CentOs.


18. Apr, 2010

thanks, i wonder if you can tell me how configure to see de red5 server outside the localhost

Joe Montalbo

01. May, 2010

Thank you very much.


05. May, 2010

great works for me !!! Thanks a lot!! I need to configure streaming on this could some help me on doing this.I could not find any document on configuring this. It would be great if you could write something on streaming server on red5.


Atif Haider

15. May, 2010

Hey, joshhrob
I followed the above procedure. But the red5 script it fails.
BTW, I am on Ubuntu 10.04
Below is the traceback.

$ /usr/share/red5/
Running on Linux
Starting Red5
Exception in thread “main” java.lang.NoClassDefFoundError: org/red5/server/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.red5.server.Bootstrap
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: org.red5.server.Bootstrap. Program will exit.

Please see if you can through some light on this?


25. May, 2010

Hello all ,

Please I wnt to know how can I install the red5 on a sharing server , I’m using 1and1

I’ve asked somone to do it for me but he asked 270$ for that , I found that cost me more than I’ve payed for the sharing server !!!

Please help me .

Thanks in advance


11. Jun, 2010

please new tuto for ubuntu 10 and red5 please

james aco

09. Jan, 2012

i need red5 (as openmeetings demo)installaition on my cpanel server with-
an automat system plugin:
The teacher will update the calendar on the day it is available
The student buys a package for example 50 hours with a credit card.
Each time the student uses the virtual room
This updated package to balance the hours.
After using the all package, the season is Closed and the possibility of the student to use the virtual classroom.
Maybe other systems integration option with the system to allow this, such as moodle?

Thank you

james aco

16. Jan, 2012

configuring red5 application

we installed red5 on our vps with 3d company and know we need someone to configure red5 application

Thank you


14. Nov, 2013

Hi i need Help with the point
I get
Buildfile: build.xml does not exist!
Build failed

Leave a reply