Red5 On Fedora 11 Howto
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:
wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u16-linux-i586.bin?BundledLineItemUUID=TFRIBe.pdHYAAAEj_rEMlN2k&OrderID=Tf1IBe.peGgAAAEj4bEMlN2k&ProductID=Dx1IBe.prBgAAAEirRcTvuC_&FileName=/jdk-6u16-linux-i586.bin
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
sudo ./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
ctrl+c.
when it asked to send a profile :)
Move the jdk1.6.0_16 to the /opt directory, for easier tracking.
mv jdk1.6.0_16 /opt/
Make a symlink called java to the jdk1.6.0_16 directory.
ln -s jdk1.6.0_16 java
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)
Test:
$ 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:
wget http://www.red5.org/downloads/0_8/red5-0.8.0.tar.gz
mkdir Red5
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:
sh Red5/red5.sh
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.


