http://code.google.com/p/openmeetings/wiki/InstallationOpenMeetings
2. To install Java, you need to edit /etc/apt/source.list file
remove the # sign in those lines,
#deb http://archive.ubuntu.com/ubuntu/ lucid main partner
#deb-src http://archive.ubuntu.com/ubuntu/ lucid main partner
We need to do it following commands;
#sudo apt-get reinstall python
- when add-apt-repository is not working.
Install Open Office Service on Debian/(K)Ubuntu (versions > 2.3)
- Install OpenOffice-Headless as root (through su, sudo, etc.):
- Create and edit a file named openoffice.sh (for example) with you favorite editor over /etc/init.d:
- Change the permssions to this file:
- Install openoffice.sh init script links:
- Start the service:
- You can see if openofice is running with this command:
sudo apt-get install openoffice.org-headless
vi /etc/init.d/openoffice.sh
#!/bin/bash # openoffice.org headless server script # # chkconfig: 2345 80 30 # description: headless openoffice server script # processname: openoffice # # Author: Vic Vijayakumar # Modified by Federico Ch. Tomasczik # OOo_HOME=/usr/bin SOFFICE_PATH=$OOo_HOME/soffice PIDFILE=/var/run/openoffice-server.pid set -e case "$1" in start) if [ -f $PIDFILE ]; then echo "OpenOffice headless server has already started." sleep 5 exit fi echo "Starting OpenOffice headless server" $SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1 touch $PIDFILE ;; stop) if [ -f $PIDFILE ]; then echo "Stopping OpenOffice headless server." killall -9 soffice && killall -9 soffice.bin rm -f $PIDFILE exit fi echo "Openoffice headless server is not running." exit ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0
chmod 0755 /etc/init.d/openoffice.sh
update-rc.d openoffice.sh defaults
/etc/init.d/./openoffice.sh start
netstat -nap | grep office
UbuntuLucidLTS
#Installation of openmeetings on Ubuntu 10.04.Introduction
with many references from http://openstudio.info/component/content/article/60 http://code.google.com/p/openmeetings/wiki/InstallationDebianhttp://wiki.swftools.org/index.php/InstallationDetails
Edit the sources to include partner so that the sun-jre will installsudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-fonts mysql-server imagemagick gs-gpl libt1-5 zip unzip subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libogg-dev sox libvorbis-dev libgsm1 libgsm1-dev libfaad2 flvtool2 lame gcc-multilib autoconf automake1.9 libtool ffmpeg automake
and now the openoffice bitssudo apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-impress openoffice.org-draw openoffice.org-math openoffice.org-gcj openoffice.org-filter-binfilter openoffice.org-java-common
now the prerequisites for swftools http://www.swftools.org need to be installedStarting with freetype, get the latest from here http://download.savannah.gnu.org/releases/freetype/mkdir freetype
cd freetype
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.5.tar.gz
tar -zxvf freetype-2.4.5.tar.gz
cd freetype-2.4.5
./configure
make
sudo make install
now jpeglibsudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev
and some moresudo apt-get install libgif-dev libgif4
now we can progress with swftoolsget the latest from here http://www.swftools.org/download.htmlmkdir swftools
cd swftools
wget http://www.swftools.org/swftools-2011-01-23-1815.tar.gz
tar -zxvf swftools-2011-01-23-1815.tar.gz
cd swftools-2011-01-23-1815
because of some missing items from later versions of libjpeg, xpdf needs to be put into the buildget the latest from ftp://ftp.foolabs.com/pub/xpdf/cd ./lib/pdf
wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz
now we can get on with the buildcd ../..
./configure
make
sudo make install
With all pre-reqs now installed, we can get on with openmeetings, get the latest version fromhttp://code.google.com/p/openmeetings/downloads/listmkdir openmeetings
cd openmeetings
wget http://openmeetings.googlecode.com/files/openmeetings_1_7_0_r3822.zip
sudo mkdir /opt/red5
sudo cp openmeetings_1_7_0_r3822.zip /opt/red5
cd /opt/red5
sudo unzip openmeetings_1_7_0_r3822.zip
sudo rm openmeetings_1_7_0_r3822.zip
now make the scripts executable and change the ownership.sudo chmod +x /opt/red5/*.sh
sudo chmod +x /opt/red5/webapps/openmeetings/jod/*.sh
sudo chown -R nobody\: /opt/red5
now you need to create a red5 startup scriptsudo nano /etc/init.d/red5
#! /bin/sh
#
# red5 red5 initscript
#
# Author: Simon Eisenmann .
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Red5 flash streaming server"
NAME=red5
RED5_HOME=/opt/red5
DAEMON=$RED5_HOME/$NAME.sh
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
. /etc/default/$NAMEfi
#
# Function that starts the daemon/service.
#
d_start() {
start-stop-daemon --start -c nobody --pidfile $PIDFILE --chdir $RED5_HOME --background --make-pidfile --exec $DAEMON}
#
# Function that stops the daemon/service.
#
d_stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name java
rm -f $PIDFILE}
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
exit 0
now make it executable and set to autostartsudo chmod +x /etc/init.d/red5
sudo update-rc.d red5 defaults
the database needs to be configuredecho "CREATE USER openmeetings@localhost;" | mysql -u root -p
echo "CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';" | mysql -u root -p
echo "GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION;" | mysql -u root -p
echo "FLUSH PRIVILEGES;" | mysql -u root -p
There is a MySQL sample config: mysql_persistance.xml that ships with every release of OpenMeetings.Before you start
- Make sure that you have set utf8 as default/server-character-set in your MySQL configuration (my.cnf) before you start the installation process of OpenMeetings!
- make sure MySQL is listening on TCP/IP connections!
To verify if MySQL connection is working: OpenMeetings will automatically create all tables in the database and all tables should have utf8 as encoding/collation!- If you encounter issues, you can drop the db again and delete the file $red5/webapps/openmeetings/conf/install.xml and then run the web based installer again
Steps todo
- Rename $red5/webapps/openmeetings/WEB-INF/classes/META-INF/mysql_persistence.xml to $red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
- Prepare Database Settings - go to openmeetings_version_no_xx/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
MySQL-Database-Users: Alter following config values in persistance.xml $DB_HOST $USER_NAME $USER_PASS with your values
<property name="openjpa.ConnectionProperties" value="DriverClassName=com.mysql.jdbc.Driver, Url=jdbc:mysql://$DB_HOST:3306/openmeetings?autoReconnect=true&useUnicode=true&createDatabaseIfNotExist=true&characterEncoding=utf-8&connectionCollation=utf8_general_ci&cachePrepStmts=true&cacheCallableStatements=true&cacheServerConfiguration=true&useLocalSessionState=true&elideSetAutoCommits=true&alwaysSendSetIsolation=false&enableQueryTimeouts=false&prepStmtCacheSize=3000&prepStmtCacheSqlLimit=1000, MaxActive=100, MaxWait=10000, TestOnBorrow=true, poolPreparedStatements=true, Username=$USER_NAME, Password=$USER_PASS"/>
- Run red5-service and goto the web-based installer: http://localhost:5080/openmeetings/install
where<password>
is the password that you used when configuring MySQL
Go to a browser and go to http://f.q.d.n:5080/openmeetings/install to complete the installAfter install sun-java6-jdk, we need to select another java with following command;sudo update-alternatives --config java
댓글 없음:
댓글 쓰기