Pages

Sunday, April 23, 2017

Openmeeting in CentOS


OpenMeetings is open source software which is used for presenting, online training, web conferencing, collaborative white board drawing and document editing and user desktop sharing. The product is developed a group of open source components, like (ImageMagick, GhostScript, SWFTools, JODConverter ,FFMpeg and OpenOffice or Libre Office) and main functionality on this product is OpenLaszlo RIA framework and Red5 media server.

## Install Required Packages..

yum install wget gcc-c++ unzip zlib-devel libjpeg-devel freetype-devel giflib-devel ghostscript ImageMagick sox libreoffice libreoffice-headless tomcat-native

## Install and Configure MyQL database to store data

yum install mysql-server

# mysql -u root -p
mysql> CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';
mysql> CREATE USER 'openmeetings'@'localhost' IDENTIFIED BY 'openmeetings';
mysql> GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

## Install Swift Tools to support utilities for working with Adobe Flash files (SWF files)

# wget http://www.swftools.org/swftools-0.9.2.tar.gz
# tar -xzvf swftools-0.9.2.tar.gz
# cd swftools-0.9.2
# ./configure --libdir=/usr/lib --bindir=/usr/bin
# make
# make install
rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L /usr/local/share/swftools/swfs/default_viewer.swf

## ##  Java Version checking and Update to 1.8 and also set home directory

 cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz"
tar -zxvf jdk-8u121-linux-x64.tar.gz 
alternatives --install /usr/bin/java java /opt/jdk1.8.0_121/bin/java 2
alternatives --config java
java -version
alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_121/bin/jar 2
alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_121/bin/javac 2
alternatives --set jar /opt/jdk1.8.0_121/bin/jar
alternatives --set javac /opt/jdk1.8.0_121/bin/javac
java -version
export JAVA_HOME=/opt/jdk1.8.0_121
export JRE_HOME=/opt/jdk1.8.0_121/jre
vi /etc/bashrc 
printenv 


 ## Java MySQL connector

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.41.tar.gz
tar -zxvf mysql-connector-java-5.1.41.tar.gz 

## Dowload openmeeting and put JAVA jar file to specific location

mkdir /openmeetings
cd /openmeetings
wget http://apache.petsads.us/openmeetings/3.0.2/bin/apache-openmeetings-3.0.2.tar.gz
tar -xzvf apache-openmeetings-3.0.2.tar.gz

cd /opt/mysql-connector-java-5.0.8
cp mysql-connector-java-5.0.8-bin.jar /openmeetings/webapps/openmeetings/WEB-INF/lib


## Install ffmpeg for audio video stream

cd /opt
wget http://ffmpeg.org/releases/ffmpeg-1.1.1.tar.gz
./configure --libdir=/usr/lib --bindir=/usr/bin --enable-libmp3lame --disable-yasm
make
make install

##  lame Installation for “LAME Ain’t an MP3 Encoder”

cd /opt
wget http://kaz.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar -xzvf lame-3.99.5.tar.gz
 ./configure --libdir=/usr/lib --bindir=/usr/bin
make
make install

## Connect with MySQL database 
cd /openmeetings/webapps/openmeetings/WEB-INF/classes/META-INF
cp persistence.xml persistence.xml.bk.live
cp mysql_persistence.xml persistence.xml

Assign your mysql username and its password to configuration file. Make your you need to add your database username and password instead of us.

# vi persistence.xml
                                        , Url=jdbc:mysql://localhost:3306/openmeetings?autoReconnect=true&useUnicode=true&createDatabaseIfNotExist=true&cha$
                                        , MaxActive=100
                                        , MaxWait=10000
                                        , TestOnBorrow=true
                                        , poolPreparedStatements=true
                                        , Username=openmeetings
                                        , Password=openmeetings" />

## Start Red5 server.
cd /openmeetings
./red5.sh

### Install script to start server Automatically...

vi /etc/init.d/red5 
########################
#vi /etc/init.d/red5
#!/bin/sh -e
#
# Startup script for Red5
export RED5_HOME=/openmeetings/
start_red5="$RED5_HOME/red5.sh"
stop_red5="$RED5_HOME/red5-shutdown.sh"

start() {
echo -n "Starting Red5: " 
${start_red5} &
echo "done."
}
stop() {
echo -n "Shutting down Red5: " 
${stop_red5}
echo "done."
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 10
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
esac
exit 0

##===================

chmod +x /etc/init.d/red5
service red5 stop
chkconfig red5 on
service red5 start


###### Complete installation from web browser...

 http://serverip:5080/openmeetings/install 

This is welcome page and this step Just follow the instruction carefully and click NEXT button.

Give username password email address for next time login.

Set everything default (if no specific requirement) and also no need to set application paths

 

############# Enjoy #################################################








No comments:

Post a Comment