Setting up Red5, version 0.6.3 final, on Fedora Core 6.  mdaH)'  
Installing Red5, version 0.6.3 final takes 2 steps V@ZR~16ufR  
eL*|%@  
  1. Installing the Java 1.5 JDK ^71[+l~  
  2. Installing Apache Ant. 5J d"rO V  
  3. Setting the wright Path Variables '+>j}r`c*C  
  4. Installing Red 5 EDxum   
`*eAx'0D\  
First of all, you will need to be logged in as root. Were using bash as shell uN F{  
Step 1. Installing the Java 1.5 JDK 23SX@)f  
4|"eaHPF  
The default Java jdk that comes with FC6 didn't work! `$bs   
I havent't tested if the one that comes with FC6 by default does work. So I'll install it in the same way as on FC4 Bt5|a>Ac  
DA|.,@mj  
So the first thing we need to do is install the 1.5 jdk a$Px5~)  
You can find detailed instructions here or follow the short instructions below. P5XM X*.]  
&vy5kA g  
You will need to download the jdk 1.5 from java.sun.com. +g4U|eIFS  
Download the jdk-1_5_0_09-linux-i586.bin file, NOT the .rpm. K?*q:   
_f%?o`Y6Y  
We will be building an rpm from the bin file. q+W@I9  
Before we can do that we need to have fedora-rpmdevtools installed %iPUA8  
Assuming you are in root's homedir b[/o'*Cs  
U*pTxQ yc  

Copy code
[root@hostname ~]# yum install fedora-rpmdevtools
,^!s4kw9  
QL*[c=c  
When installation is complete (and succeded) we build the rpmbuild tree L4&56P  
qxi8a(JU,  
Copy code
[root@hostname ~]# fedora-buildrpmtree
xf(hK*%  
0mo~3IW  
Check to see if you have an rpmbuild directory: UEwoN"h&I^  
v8&t,a=  
Copy code
[root@hostname ~]# ls
`o +,/  
#ixa? U  
Install jpackage.repo from JPackage, C]{mF`  
change to the repos.d dir first `5x!K4:O  
r3 y?`i&]@  
Copy code
[root@hostname ~]# cd /etc/yum.repos.d/
<T|?Q0`W9  
kcc~2Dtt  
now get the jpackage.repo file from http://www.jpackage.org $7G?vU  
5+X7oR{   
Copy code
[root@hostname ~]# wget [url]http://www.jpackage.org/jpackage17.repo[/url]
Z"7L =  
iI`4kb{O  
If you have not yet downloaded the jdk-1_5_0_14-linux-i586.bin file (Linux self-extracting file), do so now. +ucH_yf]$  
You need a browser because you need to Click on Accept License Agreement. C2a=T !@i  
b[Ha!_[ p  
Change to the directory where you downloaded the file y PC!e[6C  
TPck'[`s  
Copy code
[root@hostname ~]# cd download
 JL~$R[ a  
F.W,~r~5  
Copy the jdk-1_5_0_19-linux-i586.bin to ~/rpmbuild/SOURCES/ ^]{3aN.5Zu  
=H-`Q:T'W  
Copy code
[root@hostname ~]# cp jdk-1_5_0_19-linux-i586.bin ~/rpmbuild/SOURCES/
X ;Z<C8-p  
t%J3n5:  
Download java-1.5.0-sun-1.5.0.09-1jpp.nosrc.rpm from JPackage "MeY&h.A  
6-#dt1)  
Copy code
[root@hostname ~]# wget [url]http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.5.0-sun-1.5.0.14-1jpp.nosrc.rpm[/url] <r${3PMi  
T,:N=wO!  
!Og &J l  
Build a new java-1.5.0-sun-1.5.0.14-1jpp.i586.rpm tukp+_n  
Y9E(>R(*n  
Copy code
[root@hostname ~]# rpmbuild --rebuild java-1.5.0-sun-1.5.0.14-1jpp.nosrc.rpm
x' +Wc  
ui3*(ASq  
Install the freshly built java packages. V9ZOzH  
First change to the RPMS directory. { Xf!spPg  
-3]~%Z  
Copy code
[root@hostname ~]# cd ~/rpmbuild/RPMS/i586/
<Ld}4h  
B 4  
Create yum-cmd: =8;L+w  
^ >yjt.n  
Copy code
[root@hostname ~]# (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo run) > yum-cmd
n>TTyQ p$  
UI*yS  
And install from this file & FV`6J  
T+#/l nOC  
Copy code
[root@hostname ~]# yum shell yum-cmd
mbkRp$o  
*a?Pq*K  
When installation is complete you can remove the yum-cmd file: 1"p=y&$  
"{:l(W#X  
Copy code
[root@hostname ~]# rm yum-cmd
qUlw~~d0=  
~h }: F?  
Now let's check the Java version: Q2cXfu  
#= X"r"aB  
Copy code
[root@hostname ~]# java -version
RXPB0r0c  
G V'"%U  
It should read something like this: 6;s<QL1d  
PS:Drpo-  
java version "1.5.0_14" yKd%L-f  
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) }iA'f8S  
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode) fz? n'-W  
/p @>%@M6  
zy y_(Q  
That was step 1. Still here? let's go to step 2 ` `E?qIy  
Step 2. Installing Apache Ant. H5 t %cm  
flza<)n (h  
qbn~Sk  
Copy code
wget [url]http://apache.mirror.transip.nl/ant/binaries/apache-ant-1.7.0-bin.tar.gz[/url] = ";IEaf  
  tar -zxf apache-ant-1.7.0-bin.tar.gz js #z  
  mv apache-ant-1.7.0 /opt/ant Bud 0dr  
  export ANT_HOME=/opt/ant A wm 8~  
  ln -s /opt/ant/bin/ant /usr/bin/ant
S.RkMBBr  
UhSEp_Np  
\sN oN:<  
Step 3. Setting the wright Path Variables. e9sYI<  
An 1XI$Y  
If you'll be running Red5 as root (which you shouldn't) you can add the paths to /root/.bash_profile |m 9Q!  
otherwise you can add them to /etc/profile add this line: h`:#fsD{m  
3XQO==w{P  
Copy code
[root@hostname ~]#  export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
V):/b1C  
HgF)I}U  
Step 4. Installing Red5. )S/MET  
move back to your download directory: 1tukD4|-D  
o3:Rv$kB  
Copy code
[root@hostname ~]# cd ~/download/
i^PEv;OZ  
3>uiX<r7  
download Red5 gK!` v  
o m7w^'  
Copy code
[root@hostname ~]# wget [url]http://dl.fancycode.com/red5/0.6.3/src/red5-0.6.3.tar.gz[/url] G[&|o$Q6  
Y(IR  m*  
E9MYADw  
Move to the direcotry destination where you want to put it, I use /opt/ and unpack 'KX$0q  
Copy code
[root@hostname ~]# cd /opt fW=h5.|m5  
i7@BN&  
[root@hostname ~]# tar zxf ~/downloads/red5-0.6.3.tar.gz
<\g&?=gQb  
0ptJ5ICIn  
change into the red5-0.6.3 L1)}&5=eJb  
:/GCuW@]t  
Copy code
[root@hostname ~]# cdred5-0.6.3
}J3<,?tN R  
s"SmCL  
and use ant to build and run Red5 >j-hL$Ok  
P2*`[^j{5  
[code] [root@hostname ~]# ant X g2w6(xc  
jW'bM>du  
[root@hostname ~]# cd dist 8uAO12PS  
g(kl,.  
[root@hostname ~]# sh ./red5.sh &[root@hostname ~]# ant ybS-dCZs  
_! p-je>  
[/code] )'MXB;R:  
CX.c5{R  
If I'm not mistaken you should be up and running. i9hWXEWcN  
/eW$FyLJ @  
Vg./7V/^E  
=================================================== VnK y OIQ  
#!/bin/sh ogCjNy*  
# vs$GWxc:3  
# Startup script for Red5 flash streaming server hF&A6MU{y  
# +[)~ai K  
# chkconfig: 345 81 81 F7{?}_<  
# description: RED5 by java %5#gq1P  
# chH fpJws  
# processname: java (unfortunately) c,r<2%qH.F  
# pidfile: /var/run/red5.pid x^[mfKO<  
# config: /etc/red5.conf ?nmqgwkJF  
|l:oJ\  
# Source function library. o dBtMSHR  
_tuk9U  
. /etc/rc.d/init.d/functions \o'1lp0  
-'Vv HI  
PID_FILE=/var/run/red5.pid 5 7-wPp  
PID=`ps ax |grep java|grep red5|awk '{print $1;}'` `o1MC zZO  
RETVAL=0 Z_|>c)$%l  
o@cn52)Pt  
start() { fp#dl>  
echo -n $"Starting $DESCR: " Q~Sgt  
# daemon java $OPTIONS > /dev/null 2>&1 & <Zzr1gKPvW  
*niN -\JR  
export ANT_HOME=/opt/ant d u."3H  
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/ "V`']|~  
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin 3?qxz K  
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar t& j,v[OJ^  
}NtOJriXo  
exec $JAVA_HOME/bin/java -Djava.security.manager -Djava.security.policy=/opt/red5/conf/red5.policy -cp /opt/red5/red5.jar:conf:/opt/red5/conf org.red5.server.Standalone > /dev/null 2>&1 & RETVAL=$? yB=*Kg)[V  
+a3.*<  
[ $RETVAL = 0 ] && touch /var/lock/subsys/red5 && echo $!>$PID_FILE && echo_success -l$97l[  
echo rv wS;#e  
return $RETVAL 9m")$Sy9~  
} Bx6e1MG  
stop() { SL=}g)O)  
echo -n $"Stopping $DESCR: " tK7g|HE<  
#killproc $PID_FILE k ,!VJTVbV  
[[ $PID != "" ]] && success && kill $PID || failure sD nMu~  
RETVAL=$? t/Z4O "  
echo z |A_k d  
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/red5 $PID_FILE rajK>'XlO  
} &J"pi'  
I@L$p/(+p[  
# See how we were called. $ B:$kb  
case "$1" in  +}Ai@a  
start) {\%Iv) 7  
start wVFp/<tqO  
;; \>iKQ%*F  
stop) 4KPy;'w  
stop dxu<K^<5  
;; T{.ONg?  
restart) :5OeTso_  
stop L9X6h 9TR  
sleep 3 D7W,oE3  
start `U]784{Q  
;; #=:n,eJ=+  
*) uM'E5EDU(  
echo $"Usage: $DESCR {start|stop|restart}" 2|]s x_  
exit 1 >A=u \0  
esac  v[?0W4T'  
$/0aw/;m  
exit $RETVAL mW>-]{(6  
============================================ Ie)q>PX`iJ  
Y:s`Ug  
,cuwfSy  
Move the file to the path:  /etc/init.d LW2i9  
Execute the command at Terminal as super user: chkconfig --add red5 ~bn+"Zd 7o  
yKikDkmT  
G,U  ybd  
!I@ ohe  
K Yh_(u38  
IC_\N !R  
+vmP9)O}  
h pE {M@E  
;0)\:  
im]F(Z-8V  
nUWKq)g   
Xts6[f*  
CmD-,:;  
Z`-| 1  
LkaduRKF=  
K1"2 0ts5  
n4u~Vt#AR  
#7n}S?]3d?  
M+]F 6  
 Sb(:T5  
r3L"m]/=  
+OOQ8b6"Y  
C{2Bksc_  
Updated by juzhax, 12-01-2008 for perak.org Dc\"yUbZf  
_\Kw\(!7[  
Original from Patrick Gutlich (|0>}q