How To Install And Configure Apache Openmeetings 2.2.0 on CentOS 6.5
Openmeetings is an open-source video-conferencing, instant messaging, white board, screen sharing, collaborative document editing project from Apache foundation. In order to install it on CentOS, we need several prerequisites. Some of them are part of the CentOS repository and some of them need to be downloaded and compiled. First, let’s install the packages from the CentOS repo.
1.yum
install
wget telnet
gcc
-c++ zlib-devel libjpeg-devel freetype-devel
giflib-devel ghostscript ImageMagick unzip sox libreoffice mysql mysql-server
The following will be installed:
-
wget for retrieving files using HTTP, HTTPS and FTP.
- telnet client for checking and troubleshooting port connectivity
- gcc-c++ a GNU C++ compiler
- zlib-devel a compression library
- libjpeg-devel a library for reading and writing JPEG files
- freetype-devel is a library used to produce vector and bitmap fonts
- giflib-devel a library to load and save GIF images
- ghostscript is a interpreter for PostScript language and PDF
- ImageMagick is a software suite to create, edit, compose and convert bitmap images
- unzip is a program to compress (zip) and extract (unzip) files
- sox is a general purpose sound file conversion tool
- libreoffice is a suite of Office programs (calc, spreadsheet, word) a fork from OpenOffice
- mysql is an open-source SQL database.
We have to configure mysql to start on boot and do some initial configuration.
123chkconfig mysqld on
service mysqld start
mysql_secure_installation
mysql –u root –p
CREATE
DATABASE
openmeetings
DEFAULT
CHARACTER
SET
'utf8'
;
GRANT
ALL
PRIVILEGES
ON
openmeetings.*
TO
'openmeetings'
@
'localhost'
IDENTIFIED
BY
'your_password'
WITH
GRANT
OPTION
;
quit
The next step is to download the prerequisites that are not part of the CentOS repo. We will use /tmp directory as a staging area. First, we’ll install swftools, a collection of utilities for working with Adobe Flash files.
cd
/tmp
wget http:
//www
.swftools.org
/swftools-0
.9.2.
tar
.gz
tar
xvf swftools-0.9.2.
tar
.gz
cd
swftools-0.9.2
.
/configure
--libdir=
/usr/lib
--bindir=
/usr/bin
make
vi
swfs
/Makefile
There is a bug in the Makefile that won’t allow us to properly compile the utilities. Just remove “-o -L” in two rm lines.
Save and quit with “:wq!” and then install it.
1
2
| make install cd .. |
We need to install jodconverter, which is an utility that automates conversions between Open Office and Libre Office documents, then install lame, which is a MP3 encoder and finally install ffmpeg which is a toolset to record, convert and stream audio and video.
wget http: //jodconverter .googlecode.com /files/jodconverter-core-3 .0-beta-4-dist.zip unzip jodconverter-core-3.0-beta-4-dist.zip wget http: //downloads .sourceforge.net /project/lame/lame/3 .99 /lame-3 .99.5. tar .gz?r=http%3A%2F %2Fsourceforge.net%2Fprojects%2Flame%2Ffiles%2Flame%2F3.99%2F&ts=1392491323&use_mirror=hivelocity mv lame-3.9* lame-3.99.5. tar .gz tar xvf lame-3.99.5. tar .gz cd lame-3.99.5 . /configure --libdir= /usr/lib --bindir= /usr/bin make make install cd .. wget http: //ffmpeg .org /releases/ffmpeg-1 .1.1. tar .gz tar xvf ffmpeg-1.1.1. tar .gz cd ffmpeg-1.1.1 . /configure --libdir= /usr/lib --bindir= /usr/bin -- enable -libmp3lame --disable-yasm make make install cd .. |
openmeetings heavily relies on Java and when we installed Libre Office we installed OpenJDK. But, we need Oracle Java JRE. Let’s install it. First, check the installed version.
java -version |
Install and compile.
cd /tmp wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz" tar xvf jdk-7u51-linux-x64. tar .gz mv jdk1.7.0_51 /opt vi /etc/profile .d /java .sh |
Enter these lines and save the file.
export JAVA_HOME=/opt/jdk1.7.0_51 export PATH=$PATH:$JAVA_HOME/bin export JRE_HOME=/opt/jdk1.7.0_51/jre |
Check what we have.
ls -la /etc/alternatives/java * alternatives -- install /usr/bin/java java /opt/jdk1 .7.0_51 /bin/java 1 alternatives --config java |
Select “2″ and hit Enter to select the Oracle JRE. Then do:
java -version |
You should see the correct version now.
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
Finally, let’s install openmeetings.
mkdir /openmeetings cd /openmeetings wget http: //mirror .sdunix.com /apache/openmeetings/2 .2.0 /bin/apache-openmeetings-2 .2.0. tar .gz tar xvf apache-openmeetings-2.2.0. tar .gz rm apache-openmeetings-2.2.0. tar .gz
Get the Java mySQL connector.
Edit persistence.xml file and change the username and password with the username and password that you used when you created the mySQL database.
Go back to the install folder.
Finally, start the streaming server.
If everything goes well, you should see a bunch of output from the servlets. Wait for 3-4 minutes until you see that the output stabilizes, make sure that port 5080 is open and then go to: You should see this welcome page. Click Continue with STEP1 and you should see this screen. Enter the mySQL credentials, type the admin e-mail, choose the time zone and scroll all the way down and click Install. The rest of the fields can be ignored and you can configure them later. If you switch to the terminal, you’ll see a lot of activity. Once completed, you’ll be greeted that the installation is complete. Click the Enter the Application link. Log with the admin credentials. This is the main screen. Go to Administration | Configuration and make sure that you have the following values properly configured.
Finally, if you want to start the servlet automatically, create the following file. vi /etc/init .d /red5
That's IT. Enjoy UR Self with Apache OpenMeeting!!! |
Comments
Post a Comment