Building and installing a Red5 server on a Linux box. Adding a new user First we create a new user for the Red5 service.
adduser red5
and deactivate the interactive shell.
red5:x:10xy:10xy:,,,:/home/red5:/bin/false
Installing a Red5 server on a Linux server. Building a Red5 installer To get a grip on Red5 we import the source into an IDE and build the server locally using the current stable release (as of May 2010 this is version 0.9.1).
svn checkout http://red5.googlecode.com/svn/java/server/tags/0_9_1
mv 0_9_1 red5-server-0.9.1
ln -s red5-server-0.9.1 red5-server-0.9.x
Look into the interior of the server, adapt code as needed.
cd red5-server-0.9.x
ant dist
ant dist-installer
Or download the latest release from https://code.google.com/p/red5/ if the binary distribution is all you need.
Add a Red5 server startup script
Based on the /etc/init.d/skeleton
a startup script for the installation above could look like this:
#! /bin/sh
### BEGIN INIT INFO
# Provides: red5-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Red5 server script
# Description: Based on skeleton
### END INIT INFO
Starting the Red5 server manually
With the red5-server
startup script the Red5 server should start with uid=red5
.
sudo /etc/init.d/red5-server start
Point your web browser to http://localhost:5080/ to verify the basic installation:
Making Red5 script run at boot time:
update-rc.d red5-server defaults