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
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:
Change directories to the red5-read-only directory:
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:
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:
sudo chmod 755 red5.sh
Execute the following command to start the red5 server:
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.
|Print This Post|