This is how I quickly set up the Red5 streaming server for testing and evaluation. It worked on Fedora 11 and older Fedoras, and it might work on other distributions, or it may not. Here’s how I did it.
Downloaded the latest Java JDK:
Extract/Install the JDK:
mv jdk-6u16-linux-i586.bin\?AuthParam\=1253554171_afbbf561d35756f9a398c04d25dab478\&TicketId\=B%2Fw8lxiHRVhDThVFOVdYlgPg\&GroupName\=CDS\&FilePath\=%2FESD6%2FJSCDL%2Fjdk%2F6u16-b01%2Fjdk-6u16-linux-i586.bin\&File\=jdk-6u16-linux-i586.bin jdk-6u16-linux-i586.bin
chmod 755 jdk-6u16-linux-i586.bin
Type Q, then yes to accept the license
woah, a whole bunch of scrolling will happen. Then it may ask you about product registration. I pressed
when it asked to send a profile :)
Move the jdk1.6.0_16 to the /opt directory, for easier tracking.
Make a symlink called java to the jdk1.6.0_16 directory.
Use alternatives to make it the default java compiler.
alternatives --config java
Hey, look its not there!
alternatives --install /usr/bin/java java /opt/java/bin/java 3
Run ‘alternatives –config java’ and press 3 (or whatever priority you set)
$ java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
Alright, java is installed.
Download, Extract, Install Red5 Stable:
tar xvzf red5-0.8.0.tar.gz -C Red5
Its important to make the directory and extract to that directory because the tar.gz doesn’t include a folder to extract to. If you extract without making the folder you’ll have to figure out what it extracted and clean up all those files, see tar archive mischief for more information.
Finally Run the Red5 server:
If everything went well you should be able to open up your web browser and go to http://localhost:5080/ and see the red5 homepage. There you can watch the YouTube hosted video, and start working with the demos. Remember to open up the RTMP ports, and you should be good to go with Red5.