您的位置:首页 > 运维架构 > Linux

OpenMeetings-linux-中文安装过程

2013-03-26 17:55 295 查看
先贴官方文档下载地址:http://pan.baidu.com/share/link?shareid=373410&uk=419885835

step1 step2 安装linux XXXX

(这个我就不说了吧)

Step 3: Install Dependent software

First update the repos:

apt-get update

Now let’s create our work area

mkdir -p /usr/adm

We need to first install Libre Office:

apt-get install libreoffice -y

Libre Office installs OpenJDK so we need to install Oracle Java 6 JDK and update the alternatives

– grab the relevant binary from oracle.

cd /usr/adm

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" \http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64.bin (这是对于64位ubuntu的jdk)(因为我的ubuntu是32位的,所以我系在的32位的jdk-6u41-linux-i586.bin)

cd /usr/adm

chmod +x jdk-6u32-linux-x64.bin

./jdk-6u32-linux-x64.bin (解压,安装)

mkdir -p /usr/lib/jvm

mv jdk1.6.0_32 /usr/lib/jvm/

update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1

update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1

update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1

(

对于以我来说应该是

update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_41/bin/javac 1

update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_41/bin/java 1

update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_41/bin/javaws 1

)

update-alternatives --config javac

update-alternatives --config java

update-alternatives --config javaws

确认一下有没有安装成功 版本号不是openjdk就好

java -version

确认一下快捷方式有没有建立

ls -la /etc/alternatives/java*

最后要对OM做一下升级

apt-get update

apt-get install autoconf automake build-essential checkinstall git libass-dev libfaac-dev -y

apt-get install libgpac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev -y (没成功)

apt-get install librtmp-dev libspeex-dev –y

apt-get install libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-dev -y

apt-get install imagemagick sox libtool -y

apt-get install libgif-dev xpdf libfreetype6 libfreetype6-dev libjpeg62 libjpeg8 -y

apt-get install libjpeg8-dev libjpeg-dev libdirectfb-dev -y

apt-get install libart-2.0-2 libt1-5 zip unzip bzip2 subversion git-core checkinstall -y

apt-get install texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libx11-dev -y

apt-get install libxfixes-dev libxvidcore-dev zlib1g-dev libogg-dev sox libvorbis0a libvorbis-dev -y

apt-get install libgsm1 libgsm1-dev libfaad2 flvtool2 lame make g++ -y

Step 4: 编译和安装SWFTOOLs

cd /usr/adm

wget http://www.swftools.org/swftools-2013-02-19-1826.tar.gz (下载SWFTOOLs)

tar -zxvf swftools-2013-02-19-1826.tar.gz (解压)

cd swftools-2013-02-19-1826/

./configure

make

checkinstall (这里有个让你输入软件描述的地方)

安装完毕之后,确认一下是否安装成功

pdf2swf --version (应该输出:pdf2swf - part of swftools 2013-02-19-1826)

Step 5: 安装yasm (某汇编用的东西。。。)

cd /usr/adm

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz

cd yasm-1.2.0

./configure

make

checkinstall --pkgname=yasm --pkgversion="1.2.0" --backup=no --deldoc=yes --fstrans=no --default

(文档上这个写在了两行,提示 installscript.sh: 4: : not found 的错误。这个东西要放在一行里执行,就是去掉\符号,连接成一行。文档上的分成两行是不行的——应该是里面哪儿多了个空格)

Step 6: 安装 x264

cd /usr/adm

git clone --depth 1 git://git.videolan.org/x264.git

cd x264

./configure --enable-static

make

checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes --fstrans=no --default (同stpe 5的最后一步,不要按照文档)

Step 7: 安装 AAC audio encoder

cd /usr/adm

git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git

cd fdk-aac

autoreconf -fiv (提示我autoreconf:command not found)(百度了一下 说是缺少autoconf这个东东,使用apt-get install autoconf 安装完了之后就可以运行了)

./configure --disable-shared

make

checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default

(同step5)

Step 8: 安装 VP8 video encoder and decoder

cd /usr/adm

git clone --depth 1 http://git.chromium.org/webm/libvpx.git
cd libvpx

./configure --disable-examples --disable-unit-tests

make

checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default

Step 9: 编译和安装 ffmpeg 0.11.1

Let’s go back to our temporary working area

cd /usr/adm

Download, compile and install ffmpeg by issuing these commands:

wget http://ffmpeg.org/releases/ffmpeg-1.1.3.tar.gz
tar -zxvf ffmpeg-1.1.3.tar.gz

cd ffmpeg-1.1.3

./configure --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-libxvid --enable-libgsm

(这又是好长一个啊 拼到一行里)(要加载这么多东西,一定会出问题的吧)(好吧,果然有问题。)

(第一个问题是 libass not found 解决的方法是 apt-get install libass-dev 和 apt-get install libass4 ,其中还使用了 apt-cache search libass来查找libass)

(第二个问题是 librtmp not found , 解决方法是 下载---------rtmpdump-2.3.tgz :http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz -------------解压,执行make,make install)

(第三个问题是 libspeex not found,使用apt-cache search libspeex 然后apt-get install libspeex1 和 apt-get install libspeex-dev就可以了 )

make

checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default (同样要放在一行里)

测试安装是否成功:

ffmpeg -version (出错了,找不到librtmp.so.0之类的,解决方法是 vi /etc/ld.so.conf,加入:/usr/local/lib,执行ldconfig)

输出第一句应该是下面这个:

ffmpeg version 0.11.1 (我显示的是ffmpeg version 1.1.3,原本安装的就是ffmpeg version 1.1.3版本啊!!!!)

Step 10: 安装 qt-faststart

cd /usr/adm/ffmpeg-1.1.3/

make tools/qt-faststart

checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart

Step 11: - Create mysql DB for OM

(我已经安装过mysql了 用户名是 root ,密码是 12345qwert)

Now issue these: (Assuming username openmeetings and password = password) (无视)

CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';

GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

quit

Step 7(不知道它是怎么数的,11之后不该是12么?): 安装JOD Converter

回到目录

cd /usr/adm

Download, extract JOD by issuing these commands: (We will move the JOD location after the

installation of OM 2.x)

wget http://jodconverter.googlecode.com/files/jodconverter-core-3.0-beta-4-dist.zip
unzip jodconverter-core-3.0-beta-4-dist.zip

Step 8(应该是13,无视它吧): Install ANT 1.8.4 for compiling latest OM 2.x (我有种不祥的预感,要用ant了)

Let’s go back to our temporary working area

cd /usr/adm

Download, extract ANT by issuing these commands:

wget http://mirror.catn.com/pub/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz (这货似乎被墙了,手动去csdn或者新浪上下载吧)

tar -zxvf apache-ant-1.8.4-bin.tar.gz

测试一下是不是可以用:

cd /usr/adm/apache-ant-1.8.4/bin

./ant -version

This should output the following:

Apache Ant(TM) version 1.8.4 compiled on May 22 2012

Step 9(14:这是方案一): Download and compile latest OM 2.1

回到工作区:

cd /usr/adm

Then check out the latest source code using the following:

svn checkout https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/
Once that has completed we can then build the source by issuing the following:

cd /usr/adm/singlewebapp

/usr/adm/apache-ant-1.8.4/bin/ant clean.all

/usr/adm/apache-ant-1.8.4/bin/ant -Ddb=mysql

This will take a little while depending on your system, once it has finished you should be left the

following message:

BUILD SUCCESSFUL

(快编完的时候看到还有选择2.。。。直接下载编译好的包……你妹啊!!)

(编译了22分钟之后,失败,看日志,大概是要连接墙外的资源,还是用第二种方案吧)

Step 9a(14:方案二): Install pre-built OM 2.x (Alternative to Step 9)

Download the latest build from the following links:

2.0
https://builds.apache.org/view/MR/view/OpenMeetings/job/OpenMeetings%202.0/lastSuccessfulBuild/artifact/2.0/dist/
Or

2.1
https://builds.apache.org/job/openmeetings/lastSuccessfulBuild/artifact/singlewebapp/dist/
(第一个好用些)

The file will be something like the following “apache-openmeetings-incubating-2.xxxxx.tar.gz:

(Where xxx is the date and build version)

We can do this using wget, so first we need to go back to our build area like so:

cd /usr/adm

mkdir -p singlewebapp/dist/red5

cd singlewebapp/dist/red5

Then grab the file and extract it:

wget https://builds.apache.org/job/openmeetings/lastSuccessfulBuild/artifact/singlewebapp/dist/apache-openmeetings-incubating-2.xxxxx.tar.gz
(对于我来说 应该是

wget https://builds.apache.org/view/M-R/view/OpenMeetings/job/OpenMeetings%202.0/lastSuccessfulBuild/artifact/2.0/dist/apache-openmeetings-incubating-2.0.0.r1383872-12-09-2012_1009.tar.gz


然后

tar -zxvf apache-openmeetings-incubating-2.xxxxx.tar.gz

下载 mysql connector: http://www.mysql.com/downloads/connector/j/
cd /usr/adm/singlewebapp/dist/red5/webapps/openmeetings/WEB-INF/lib

wget http://ftp.up.ac.za/pub/linux/mysql/Downloads/Connector-J/mysql-connector-java-5.1.20.zip
(上面那个被墙了 还是用这个吧:

wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.24.zip)
unzip mysql-connector-java-5.1.20.zip

(unzip mysql-connector-java-5.1.24.zip )

cd mysql-connector-java-5.1.20

(cd mysql-connector-java-5.1.24)

mv mysql-connector-java-5.1.20-bin.jar /usr/adm/singlewebapp/dist/red5/webapps/openmeetings/WEB-INF/lib

(mv mysql-connector-java-5.1.24-bin.jar /usr/adm/singlewebapp/dist/red5/webapps/openmeetings/WEB-INF/lib)

Step 10(我也记不清是多少了): Install compiled\Pre-Built OM 2.x

Now we need to move the compiled source into the correct location, in this system we are using /usr/lib/red5, so issue the following commands to move the root folder over:

cd /usr/adm/singlewebapp/dist

mv red5/ /usr/lib/

Let’s move the JOD into place now

cp -R /usr/adm/jodconverter-core-3.0-beta-4 /usr/lib/red5/webapps/openmeetings

And set some permissions and ownerships

chown -R nobody /usr/lib/red5

chmod +x /usr/lib/red5/red5.sh

chmod +x /usr/lib/red5/red5-debug.sh

Set the start-up script for OM 2.x by issuing the following:

vi /etc/init.d/red5

and adding the following:(实际上应该是用下面的内容替换掉文件以前里的内容,而不是加到后面。如果以前有这个文件,最好备份一下。)

#! /bin/sh

### BEGIN INIT INFO

# Provides: red5

# Required-Start: $remote_fs $syslog

# Required-Stop: $remote_fs $syslog

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: Starts red5 server for Openmeetings.

### END INIT INFO

# For RedHat and cousins:

# chkconfig: 2345 85 85

# description: Red5 flash streaming server for OpenMeetings

# processname: red5

# Created By: Sohail Riaz (sohaileo@gmail.com)

# Modified by Alvaro Bustos

PROG=red5

RED5_HOME=/usr/lib/red5

DAEMON=$RED5_HOME/$PROG.sh

PIDFILE=/var/run/$PROG.pid

[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5

RETVAL=0

case "$1" in

start)

cd $RED5_HOME

start-stop-daemon --start -c nobody --pidfile $PIDFILE \

--chdir $RED5_HOME --background --make-pidfile \

--exec $DAEMON >/dev/null 2>/dev/null &

RETVAL=$?

if [ $RETVAL -eq 0 ]; then

echo $! > $PIDFILE

fi

echo

;;

stop)

start-stop-daemon --stop --quiet --pidfile $PIDFILE \

--name java

rm -f $PIDFILE

echo

[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG

;;

restart|force-reload)

$0 stop

$0 start

;;

status)

# Debian and Ubuntu 10 status check

ps aux | grep -f $PIDFILE >/dev/null 2>/dev/null && RETVAL=0 || RETVAL=3

# Ubuntu 12 status check using improved "start-stop-daemon" status query

# (use the above command, or comment out above command and uncomment the two below commands.

# start-stop-daemon --status --pidfile $PIDFILE

# RETVAL=$?

[ $RETVAL -eq 0 ] && echo "$PROG is running"

[ $RETVAL -eq 1 ] && echo "$PROG is not running and the pid file exists"

[ $RETVAL -eq 3 ] && echo "$PROG is not running"

[ $RETVAL -eq 4 ] && echo "$PROG - unable to determine status"

;;

checkports)

netstat -anp | grep soffice

netstat -anp | grep java

;;

*)

echo $"Usage: $0 {start|stop|restart|force-reload|status|checkports}"

RETVAL=1

esac

exit $RETVAL

Save the file and then set the permissions like below:

chmod +x /etc/init.d/red5

update-rc.d red5 defaults

Now we need to move the persistence files so we can connect to mysql, so issue the following:

Make backup copy

mv /usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml /usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml-ori

Rename mysql template to persistence.xml

mv /usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/mysql_persistence.xml /usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml

Edit the persistence file and add out mysql details, in this case we used “openmeetings” and

“password” – so issue the following:

vi /usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml

Then change the following

, Username=openmeetings

, Password=password"/>

At this stage we are ready to start up OM 2.x for the first time.

/etc/init.d/red5 start

Now open the browser and go to the following link. N.B remember to change the IP address to

your OM2.x server, the one below 10.17.23.11 is just for this example.
http://10.17.23.11:5080/openmeetings/install
ok 终于看到效果了 截个图

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: