Tutorial

This tutorial will walk your through the steps required to install RMS on the following operating systems:
CentOS 5.x - 6.x +
RHEL 5.x - 6.x +

It covers installing both JRE/JDK (Java), and the RMS Media Server.

Requirements / Prerequisites:
Root SSH Access (You can use PuTTy for this.)
Ports 1935, 1936, 5080 must be open on your server.
You should have a basic understanding of how to use SSH.



1. SSH into your server as root.



2. You most likely don't have Java on your system yet, but check to make sure with this command:
java -version

If it says:
java: command not found

Then, you don't have Java yet. If you already have it installed, then you can skip to step #5.


You can also use this command:
which java

If you don't have Java, it will say something like:
no java in XXXXX



3. Installing Java:

You have a couple of options here. You can install JDK (Java Development Kit), which includes JRE and additional tools for building and testing programs written in Java.

Or, you can install just JRE (Java Runtime Environment).

You only need JRE for the Boonex RMS Media Server, but since JDK comes with it as well you can install either.

You can install either Open JDK/JRE or Oracle JDK/JRE. Either source will work.

Open JDK/JRE can be installed very quick and easy using a simple yum command. The Oracle version requires that you download it to your computer first, and then upload it to your server to install it.

I find that Open JDK/JRE will use slightly more RAM, and is not quite as optimal in terms of performance compared to Oracle, but it's close.

On the plus side you can upgrade or remove it with a simple yum command. So, this is generally a faster easier route.


To install the Open JDK (JRE only) version (Recommended):
yum -y install java-1.7.0-openjdk

To install the Open JDK with both JDK and JRE:
yum -y install java-1.7.0-openjdk-devel

*If you install either of these you can proceed to step #5 after doing so.



To install Oracle JRE:

First you need to find out whether you have a 32bit or 64bit system.

Use the following command:
uname -m

If it says:
i686

Then you have a 32bit system


If it says:
x86_64

Then you have a 64bit system



Now go to the Oracle download page here:
http://www.oracle.com/technetwork/java/javase/downloads/index.html

->scroll down to the Java SE 7 section
-->For example Java SE 7u55
-->choose JRE Download

Oracle JRE Download



Note:
JRE/JDK 8 was recently released. However, it is fairly new and compatibility with Dolphin/RMS is not fully known yet. Therefore, it is recommended that you use JRE version 7.


--->Select the "Accept License Agreement" and choose the version you want to download.

For 32bit:
If you have a 32bit system then download the "jre-7uXX-linux-i586.rpm. Or, whatever the current version 7uXX release happens to be.

Oracle 32 bit JRE



For 64bit:
If you have a 64bit system then download the jre-7uXX-linux-x64.rpm instead. Or, whatever the current version 7uXX release happens to be.

Oracle 64 bit JRE



Once you have it downloaded to your local computer you need to upload it to your server.
You can use WinSCP to do so as root.

You can upload it to /root directory or elsewhere. I uploaded it to the /root directory.


Once you have uploaded the .rpm to the root directory use SSH again:
cd /root

For the 32bit verison enter:
rpm -ivh jre-7uXX-linux-i586.rpm


For the 64bit version enter:
rpm -ivh jre-7uXX-linux-x64.rpm


*Note: Replace the XX with the actual version you downloaded from Oracle.
**Wait for it to finish installing.


Remove/Delete the .rpm
After it has been installed you can remove the .rpm if you want.

For the 32bit:
rm -rf jre-7uXX-linux-i586.rpm


For the 64bit:
rm -rf jre-7uXX-linux-x64.rpm


*Note: Again, replace the XX with the actual version you got from Oracle.
**Or, you can delete the .rpm with WinSCP instead.



4. Optionally check Java version:

Enter the following in SSH:
java -version

It should tell you the version now like:
java version 1.7.0.55



5. Find the path to Java needed to complete RMS install later:

Enter this in SSH:
which java

It will tell you the path similar to the following:
/usr/bin/java

!!Remember this because you will need it later.



6. Wget the Boonex RMS Media server and extract it:

Enter the following commands one at a time:
mkdir /opt/ray_server
cd /opt/ray_server
wget https://get.boonex.com/RMS-LINUX-v.7.1.0
tar -xvf RMS-LINUX-v.7.1.0
cp RMS_7.1.0/* /opt/ray_server -R
rm -rf RMS_7.1.0
rm -rf RMS-LINUX-v.7.1.0


Note:
If you don't have wget on your system, then you can install it with:
yum -y install wget



7. Edit the access.dat file and add all the domains (Dolphin websites) that you want to allow access to your RMS.

If you don't have the nano editor on your system then:
yum -y install nano

You can also use the vi editor instead if you wish.


Enter:
nano /opt/ray_server/access.dat

Now add the domains that you want to allow access to your RMS server.
Enter only one per line (DO NOT use http:// or www. it should be domain.com only format.)

Then:
Hold Ctrl and press X (to exit)
Save modified buffer = y
File Name to Write /opt/ray_server/access.dat
Push enter (to save changes)

Add Your Domains



8. Add Java path (found in step #5) to red5.sh by doing the following:
nano /opt/ray_server/red5.sh

find:
JAVA_HOME=

Add the path (from step #5) to JAVA_HOME:
JAVA_HOME=/usr/bin/java;

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/red5.sh
Press enter to save the changes

Add Java Home Path



9. Add the path to where the RMS is located on your server in run_daemon.sh file:
nano /opt/ray_server/run_daemon.sh

Find:
RAY_SERVER_PATH=

Add the path to ray server location (where you extracted it to in step #6):
RAY_SERVER_PATH=/opt/ray_server;

Hold Ctrl and press X
Save modified buffer = y
File Name to Write: /opt/ray_server/run_daemon.sh
press enter to save the changes

Add Path To RMS Directory



10. Add your server's IP address to webapp.virtualHosts:

nano /opt/ray_server/webapps/board/WEB-INF/red5-web.properties

Find:
webapp.virtualHosts=0.0.0.0

Change to your server IP address (where 123.123.123.123 would be your server's real IP):
webapp.virtualHosts=123.123.123.123

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/webapps/board/WEB-INF/red5-web.properties
- press enter to save the changes

Add Server IP Boards



nano /opt/ray_server/webapps/chat/WEB-INF/red5-web.properties

Find:
webapp.virtualHosts=0.0.0.0

Change to your server IP address (where 123.123.123.123 would be your server's real IP):
webapp.virtualHosts=123.123.123.123

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/webapps/chat/WEB-INF/red5-web.properties
- press enter to save the changes

Add Server IP Chat



nano /opt/ray_server/webapps/im/WEB-INF/red5-web.properties

Find:
webapp.virtualHosts=0.0.0.0

Change to your server IP address (where 123.123.123.123 would be your server's real IP):
webapp.virtualHosts=123.123.123.123

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/webapps/im/WEB-INF/red5-web.properties
- press enter to save the changes

Add Server IP IM



nano /opt/ray_server/webapps/video/WEB-INF/red5-web.properties

Find:
webapp.virtualHosts=0.0.0.0

Change to your server IP address (where 123.123.123.123 would be your server's real IP):
webapp.virtualHosts=123.123.123.123

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/webapps/video/WEB-INF/red5-web.properties
- press enter to save the changes

Add Server IP Video



(optionally add the server IP address to global (not needed with newer versions) but you might add it anyway)
nano /opt/ray_server/webapps/global/WEB-INF/red5-web.properties

Find:
webapp.virtualHosts=0.0.0.0

Change to your server IP address (where 123.123.123.123 would be your server's real IP):
webapp.virtualHosts=123.123.123.123

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /opt/ray_server/webapps/global/WEB-INF/red5-web.properties
- press enter to save the changes

Add Server IP Global



11. Change permision of RMS .sh files to 755:
cd /opt/ray_server
chmod -v 755 *.sh



12. Test RMS with this command:
./red5.sh


Test Results:
If RMS starts successfully you would see:
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created

RMS Test Results



13. Exit test:
Hold Ctrl and press C to exit.



14. Start and Run RMS with this command:
./run_daemon.sh



15. Configure RMS Media Server on Startup (when server boots/reboots/etc.):
nano /etc/rc.local

Add to the bottom of this file:
cd /opt/ray_server
./run_daemon.sh

Hold Ctrl and press X
Save modified buffer = y
File Name to Write /etc/rc.local
- press enter to save the changes

Add Start Path To rc.local



16. Enable RMS in Dolphin Administration:
Now you need to enter your RMS details in the Flash Apps -> Ray Base Settings.

Goto Dolphin Administration
-Modules
--> Flash Apps

Click on Settings in the top right corner to specify your RMS address and ports.

Make sure that Use RMS is checked.

In the RMS Address: Enter your server's IP address.

The default ports are 1935 for RMS Port and 5080 for RMS HTTP Port.

Click Save.

Enable RMS In Dolphin Administration



17. Install Chat, IM, Boards (Whiteboard) in Dolphin Administration.
You can install Chat for example:
Modules
->Flash Apps
-->Not Installed Modules
--->Tick the Chat box
---->Scroll down and click the install button


Now your members can enjoy audio/video chat on your newly installed RMS server.

Chat With RMS Running



Problems:
Make sure your firewall or iptables are not blocking ports: 1935, 1936, or 5080.
Review all steps carefully.



To use the vi editor instead of nano you would do the following:
vi /file/path

Press a (to enter insert/edit mode)
Make your changes.
Press Esc (to exit insert/edit mode)

To save the changes:
Press :wq
Press Enter



RMS Installation:
If you would rather have us install RMS for you please feel free to contact us.

CentOS or Ubuntu operating systems only. Please make sure that you have enough CPU power and free memory available, as well as ports 1935, 1936, and 5080 open on your server before contacting us.

Or, check out our RMS Auto-Installer for CentOS, and do it yourself.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend
Sponsored Links