Chinaunix首页 | 论坛 | 博客
  • 博客访问: 526151
  • 博文数量: 197
  • 博客积分: 2071
  • 博客等级: 上尉
  • 技术积分: 1307
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-02 09:49
个人简介

prothes 专注嵌入式的ARM linux

文章分类

全部博文(197)

文章存档

2014年(3)

2013年(16)

2012年(108)

2011年(70)

分类:

2011-09-08 09:32:42

原文地址:linux ubuntu 下安装openmeetings 作者:zongg

以下内容翻译自网页,所有权由原网页所有:

First we need to add the partner repositories, editing the sources.list file and removing the comments for the partner lines

sudo nano /etc/apt/sources.list
加入:
deb lucid partner
sudo apt-get update

然后安装所需的软件包:

sudo apt-get install -y java-package sun-java6-bin sun-java6-jdk sun-java6-jre mysql-server openoffice.org-writer openoffice.org-calc

sudo apt-get install -y openoffice.org-impress openoffice.org-draw openoffice.org-math imagemagick gs-gpl libart-2.0-2 libt1-5 zip unzip bzip2 subversion git-core checkinstall

sudo apt-get install -y yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libogg-dev sox libvorbis0a libvorbis-dev libgsm1 libgsm1-dev libfaad2 flvtool2 lame swftools

然后,下载、编译、安装ffmpeg:

wget
tar -zxvf ffmpeg-0.6.1.tar.gz
cd ffmpeg-0.6.1/
./configure --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libgsm --enable-libfaad --enable-libfaac --enable-gpl --enable-nonfree
make
sudo checkinstall

现在,安装Openmeetings所需的所有依赖包都已经安装完毕,那么开始Openmeetings的安装过程。
获取Openmeetings(已包含red5包)
 
wget

(2011年6月5日,已经发布了新的版本1.7.0,下载链接为 )

解压,并移动到/opt目录

unzip openmeetings_1_6_rc1_r3621.zip
sudo mv red5 /opt/

将所有者改为nobody

sudo chown -R nobody\: /opt/red5

更改脚本为可执行

sudo chmod +x /opt/red5/*.sh
sudo chmod +x /opt/red5/webapps/openmeetings/jod/*.sh

现在创建openmeetings的启动脚本:

sudo 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/$NAME
fi
#
# 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

同样创建openoffice的启动脚本:

sudo nano /etc/init.d/openoffice

粘贴以下代码:

#!/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

将两个脚本都添加执行权限:

sudo chmod +x /etc/init.d/red5
sudo chmod +x /etc/init.d/openoffice

将两个服务设定为自动启动:

sudo update-rc.d red5 defaults
sudo update-rc.d openoffice defaults

差不多可以完成了,现在创建openmeetings的数据库(我们已经创建了数据库用户名openmeetings,密码为password):

echo “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

跟着修改openmeetings的配置文件,使用上面创建的数据库用户:

sudo nano /opt/red5/webapps/openmeetings/conf/hibernate.cfg.xml

在User / Password一节,配置正确的用户名openmeetings和密码password。

现在启动openmeetings和openoffice服务:

sudo /etc/init.d/red5 start
sudo /etc/init.d/openoffice start

在浏览器中输入以下网址:

http://[server ip]:5080/openmeetings/install

点击 “Continue with step 1”

填写下列信息:

Username
Userpass
Email
User time zone
Name
Default language

最后,点击“Install”按钮,完成。


阅读(925) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~