Installing Red5 0.8 on Ubuntu 9.04
Posted on 21. Aug, 2009 by joshhrob in Streaming
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 http://red5.googlecode.com/svn/java/server/trunk/ 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:
/usr/share/ant/bin/ant

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 red5.sh

Execute the following command to start the red5 server:
/usr/share/red5/red5.sh &

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

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.
Print This Post
|









17 Comments
Jason
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
UKApache
12. Oct, 2009
I found these instructions a bit more readable:
http://sandeepghael.com/2009/07/getting-red-5-up-and-running-on-ubuntu-9-04/
Hamed Zaghaghi
22. Oct, 2009
Hi,
I have a problem with red5 installer!
i can install it but when i run red.sh, and go to localhost:5080/installer, it can’t list applications. do you know why?
regards
Kei
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
joshhrob
28. Mar, 2010
By default it won’t start automatically. Use the /usr/share/red5/red5.sh script to start it manually. You will need to create a startup script if you want it to start when the server starts.
King
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
preps
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.
tiscor
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.
arturo
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
Excellent!
Thank you very much.
karthick
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.
Kaltura Wordpress MU Setup
05. May, 2010
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/red5.sh
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 java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.red5.server.Bootstrap. Program will exit.
Please see if you can through some light on this?
Jamal
25. May, 2010
Hello all ,
Please I wnt to know how can I install the red5 on a sharing server , I’m using 1and1 http://www.1and1.com.
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
albabin
11. Jun, 2010
please new tuto for ubuntu 10 and red5 please
Leave a reply