Setup Red 5 Media Server on Ubuntu 16.04

Red5 is a server that allows you to run Flash multi-user applications such as streaming audio/video, remote object sharing (for multiplayer games), data synchronization etc.

This article will guide you through the install and setup process for launching a Red 5 Media Server on a Ubuntu 16.04.

First, to run Red 5 we need to install Java JDK, the easiest option for installing Java is using the version packaged with Ubuntu. Specifically, this will install OpenJDK 8, the latest and recommended version.

sudo apt-get update
sudo apt-get install -y default-jre unzip

Now, you can setup red5 server with the following command

sudo apt-get install red5-server

In case you encounter problems during setup, you may install it manually with the following instructions

Remove package (in case you install it before)

sudo apt-get remove red5-server

Create directory for Red5

mkdir -p /usr/local/red5

Set environment variable for Red

export RED5_HOME=/usr/share/red5

Get the latest release for red5, download the tar.gz and extract it to /usr/share/red5

cd /usr/share/red5
wget https://github.com/Red5/red5-server/releases/download/v1.0.8-RELEASE/red5-server-1.0.8-RELEASE.tar.gz
tar -xvzf red5-server-1.0.8-RELEASE.tar.gz
cd red5-server

Start the server

./red5.sh &

Stop the server

./red5-shutdown.sh

Published by

qoraiche

Codecs Lover

Leave a Reply