First of all, you will need to be logged in as root. Were using bash as shell
The default Java jdk that comes with FC4 will not work! So the first thing we need to do is install the 1.5 jdk
You can find detailed instructions here or follow the short instructions below.
You will need to download the jdk 1.5 from java.sun.com.
Download the dk-1_5_0_06-linux-i586.bin file, NOT the .rpm.
Fedora Core 4 users are advised not to use the Java RPM provided by Sun. It contains Provides that conflict with names used in packages provided as part of Fedora Core 4. Because of this, Sun Java might disappear from an installed system during package upgrade operations.
We will be building an rpm from the bin file.
Before we can do that we need to have fedora-rpmdevtools installed
[root@hostname ~]# yum install fedora-rpmdevtoolsWhen installation is complete (and succeded) we build the rpmbuild tree
[root@hostname ~]# fedora-buildrpmtreeCheck to see if you have an rpmbuild directory:
[root@hostname ~]# lsInstall jpackage.repo from JPackage,
[root@hostname ~]# cd /etc/yum.repos.d/now get the jpackage.repo file from http://www.jpackage.org
[root@hostname ~]# wget http://www.jpackage.org/jpackage.repoIf you have not yet downloaded the jdk-1_5_0_06-linux-i586.bin file (Linux self-extracting file), do so now.
[root@hostname ~]# cd downloadCopy the jdk-1_5_0_06-linux-i586.bin to ~/rpmbuild/SOURCES/
[root@hostname ~]# cp jdk-1_5_0_06-linux-i586.bin ~/rpmbuild/SOURCES/Download java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm from JPackage
[root@hostname ~]# wget http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpmBuild a new java-1.5.0-sun-1.5.0.06-1jpp.i586.rpm
[root@hostname ~]# rpmbuild --rebuild java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm
[root@hostname ~]# cd ~/rpmbuild/RPMS/i586/Create yum-cmd:
[root@hostname ~]# (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo run) > yum-cmdAnd install from this file
[root@hostname ~]# yum shell yum-cmdWhen installation is complete you can remove the yum-cmd file:
[root@hostname ~]# rm yum-cmd
[root@hostname ~]# java -versionIt should read something like this:
java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
[root@hostname ~]# cd /usr/local/untar the archive
[root@hostname ~]# tar -zxf ~/download/apache-ant-1.6.2-bin.tar.gzrename the dir to ant
[root@hostname ~]# mv apache-ant-1.6.2 ant
PATH=$PATH:$HOME/bin:/usr/local/ant/bin export PATHOR you can do it in the shell right now:
[root@hostname ~]# export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
[root@hostname ~]# export ANT_HOME=/usr/local/ant/bin
[root@hostname ~]# cd ~/download/download Red5
[root@hostname ~]# wget http://dl.fancycode.com/red5/red5-0.4.1.tar.gz
[root@hostname ~]# cd /opt
[root@hostname ~]# tar zxf ~/downloads/red5-0.4.1.tar.gzchange into the red5-0.4.1 dir
[root@hostname ~]# cd red5-0.4.1and use ant to build and run Red5
[root@hostname ~]# ant server &If I'm not mistaken you should be up and running.