Openmeetingsのインストール

 まだメモ程度だけど備忘録として書いておく。
先人に感謝。

 参考までにサーバのスペックなど
OS:Ubuntu 14.04 LTS
Spec: Core2Quad/8G/128G_SSD (Express5800/110Ge)

http://laetzsch4438.wordpress.com/2014/09/22/出来たっぽいよ、openmeetings!/

より

$ sudo -E add-apt-repository ppa:webupd8team/java

$ sudo apt-get update

$ sudo apt-get -y install oracle-java8-installer

$ sudo apt-get -y install imagemagick

$ sudo apt-get -y install make

$ sudo apt-get -y install zlib1g-dev

$ sudo apt-get install SWFTools

$ wget http://www.swftools.org/swftools-0.9.2.tar.gz

$ tar xfz swftools-0.9.2.tar.gz

$ cd swftools-0.9.2

$ sudo ./configure

$ sudo make

$ sudo vi swfs/Makefile

>> $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf

>> rm -f $(pkgdatadir)/swfs/default_viewer.swf(以降を削除)

>> $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf

>> rm -f $(pkgdatadir)/swfs/default_loader.swf(以降を削除)

>> $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf

$ sudo make install

$ cd ~mishima

$ sudo apt-get -y install jodconverter

$ wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/ja/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_ja.tar.gz

$ tar xfz Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_ja.tar.gz

cd ja/DEBS/

$ sudo dpkg -i *.deb

$ cd ~mishima

$ sudo -E add-apt-repository ppa:mc3man/trusty-media

$ sudo apt-get update

$ sudo apt-get -y install ffmpeg

$ sudo apt-get -y install sox

$ sudo vi /etc/init.d/soffice

(以下を引用符消して丸ごと貼り付け)

#!/bin/bash

# openoffice.org headless server script

#

OOo_HOME=/opt/openoffice4

SOFFICE_PATH=$OOo_HOME/program/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 -nofirststartwizard -accept="socket,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/soffice

$ sudo /etc/init.d/soffice start &

(Failed to open displayが出るけど無視)

$ sudo mkdir /usr/local/openmeetings

$ sudo chmod -R 777 /usr/local/openmeetings

$ cd /usr/local/openmeetings

$ wget http://ftp.jaist.ac.jp/pub/apache/openmeetings/3.0.3/bin/apache-openmeetings-3.0.3.tar.gz

$ tar xfz apache-openmeetings-3.0.3.tar.gz

$ rm apache-openmeetings-3.0.3.tar.gz

$ cd ~/

$ sudo vi /etc/init.d/openmeetings

(以下を引用符消して丸ごと貼り付け)

#! /bin/sh

NAME=openmeetings

RED5_DIR=/usr/local/$NAME

START_DAEMON=$RED5_DIR/red5.sh

STOP_DAEMON=$RED5_DIR/red5-shutdown.sh

RUN_USER=root

PIDFILE=/var/run/$NAME.pid

LOGFILE=/var/log/$NAME.log

test -x $START_DAEMON || exit 5

start() {

echo -n "Starting OpenMeetings Service:"

cd $RED5_DIR

su -s /bin/bash -c "$START_DAEMON &" $RUN_USER >> $LOGFILE 2>&1

RETVAL=$?

echo

[ $RETVAL = 0 ] && touch ${PIDFILE}

sleep 2

return $RETVAL

}

stop() {

echo -n "Shutting down OpenMeetings:"

cd $RED5_DIR

su -s /bin/bash -c "$STOP_DAEMON &" $RUN_USER >> $LOGFILE 2>&1

RETVAL=$?

echo

[ $RETVAL = 0 ] && rm -f ${PIDFILE}

sleep 2

return $RETVAL

}

case "$1″ in

start)

start

;;

stop)

stop

;;

restart)

stop

start

;;

esac

$ sudo chmod +x /etc/init.d/openmeetings

$ sudo /etc/init.d/openmeetings start &

($ sudo /etc/init.d/openmeetings stop)止める時

$ sudo apt-get install sysv-rc-conf

$ sudo sysv-rc-conf サービスが起動時に動くように設定

$ sudo ufw allow 22/tcp

$ sudo ufw allow 1935/tcp

$ sudo ufw allow 5080/tcp

$ sudo ufw allow 8088/tcp

$ sudo ufw allow 8443/tcp

$ sudo ufw allow 4445/tcp

$ sudo ufw allow 80/tcp

#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 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 lame make g++ -y

設定

http://vc10.innov.mie-u.ac.jp:5080/openmeetings/install

SWFTools Path /usr/local/share/swftools

ImageMagick Path /etc/ImageMagick

SoX Path /usr/bin/sox

JOD Path /usr/bin/jodconverter

Twitter


過去記事(月別)