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.

Red5_U-2009-08-21-09-31-46

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

TVERSITY-2009-08-21-10-54-55

Install Subversion so you can download code from google code:

sudo apt-get install subversion

TVERSITY-2009-08-21-10-56-14

Press Y for yes

TVERSITY-2009-08-21-10-56-22

Repeat to install java package:

sudo apt-get install java-package

TVERSITY-2009-08-21-10-56-46

Repeat to install java jdk:

sudo apt-get install sun-java6-jdk

TVERSITY-2009-08-21-10-58-07

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

TVERSITY-2009-08-21-11-03-18

Press the Left Arrow and select Yes to agree

TVERSITY-2009-08-21-11-03-26

Repeat to install ant

sudo apt-get install ant

TVERSITY-2009-08-21-11-04-57

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

mkdir -p ~/svn/red5

TVERSITY-2009-08-21-11-07-45

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/

TVERSITY-2009-08-21-11-12-57

Change directories to the red5-read-only directory:

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

TVERSITY-2009-08-21-11-13-19

Execute the ant command to compile the code:

/usr/share/ant/bin/ant

TVERSITY-2009-08-21-11-13-40

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

TVERSITY-2009-08-21-11-20-21

Change directories to the dist directory:

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

TVERSITY-2009-08-21-11-22-15

Copy all of the files to the new red5 directory:

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

TVERSITY-2009-08-21-11-22-51

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

TVERSITY-2009-08-21-11-23-34

Execute the following command to start the red5 server:

/usr/share/red5/red5.sh &

TVERSITY-2009-08-21-11-23-53

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

http://IPADDRESS:5080

TVERSITY-2009-08-21-11-24-43

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

20 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

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.

Pingback

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

james aco

09. Jan, 2012

Hi
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

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

Thank you

Dog

14. Nov, 2013

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

Leave a reply