Search:  
Gentoo Wiki

HOWTO_Install_openmeetings

Description

Openmeetings is a webbased conferencing and meeting application, written on a red5 architecture in Flash. So you'll need to install Red5. An ebuild is available at http://overlays.gentoo.org/dev/bangert/wiki/Red5Gentoo . Add it to your overlay.

The complete installation of openmeetings is described at http://code.google.com/p/openmeetings/wiki/InstallationOfRelease051 You will also need OpenOfficeConvertor. The installation is described here

Pre installation

So install the following:

echo "app-office/openoffice gnome" >> /etc/portage/package.use
echo "x11-libs/cairo X" >> /etc/portage/package.use
emerge red5 swftools x11-libs/libXrandr libXtst cairo gtk+ imagemagick ghostscript  openoffice

Then create the following two files:

File: /etc/init.d/openoffice
#!/sbin/runscript
# openoffice.org  headless server script
#
# chkconfig: 2345 80 30
# description: headless openoffice server script
# processname: openoffice
#
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
# Gentoofied by BraveCobra

start() {
    ebegin "Starting OpenOffice headless server"
    $SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" &> /dev/null 2>&1
    eend $?
}

stop() {
    ebegin "Stopping OpenOffice headless server."
    killall -9 soffice.bin
    eend $?
}
File: /etc/conf.d/openoffice
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: //etc/conf.d/openoffice

OOo_HOME=/usr/bin
SOFFICE_PATH=$OOo_HOME/soffice

Edit /etc/init.d/red5

File: /etc/init.d/red5
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: $

depend() {
        need net
        use dns logger postgresql mysql
}

start() {
        ebegin "Starting Red5"
        cd /opt/red5
        su -s /bin/bash -c "/usr/bin/nohup /opt/red5/red5.sh &" ${RED5_USER} > /dev/null 2>&1
        eend $?
}

stop () {
        ebegin "Stopping Red5"
        su -s /bin/bash -c "killall -q -u ${RED5_USER} java" ${RED5_USER} > /dev/null 2>&1
        eend $?
}

and

File: /etc/conf.d/red5
# Red5's User
RED5_USER=red5

Then

rc-update add openoffice default
rc-update add red5 default

Installation

Copy the content of openmeetings051.zip to /opt/red5/webapps so that the openmeetings folder resides in /opt/red5/webapps now

chmod -R red5:red5 /opt/red5/webapps/openmeetings

Now we start the red5 server with

 /etc/init.d/red5 start

Create a database on mysql

 mysql -u root -p < create database openmeetings;

And choose the hibernate.cfg.xml file

 cd /opt/red5/webapps/openmeetings/conf/
 cp mysql_hibernate.cfg.xml hibernate.cfg.xml

Now edit it

File: hibernate.cfg.xml
...
<!-- User  / Password -->
<property name="connection.username">root</property>
<property name="connection.password">MyPassword</property>
<!-- Database Settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="connection.url">jdbc:mysql://localhost/openmeetings?useUnicode=true&createDatabaseIfNotExist=true&characterEncoding=utf-8</property>
...

Point your browser to

http://server:5080/openmeetings/install

and follow the instructions

Retrieved from "http://www.gentoo-wiki.info/OpenMeetings"

Last modified: Sun, 28 Sep 2008 12:04:00 +0000 Hits: 716