Hello Tavasti,
during the last hours I created a fresh new OM-install skript for a
fresh new installed Ubuntu 12.04 (64bit). Copy-paste it to your system
and run it.
eg.
sudo su
mkdir -p /root/install
cd /root/install
vi /root/install/inst-om.sh
i
# copy-paste script
:wq
./inst-om.sh
It takes you to a running instance within 15-500 minutes depending of
your system speed.
Note: You have to press Enter a few times (Java install and ffmpeg
checkinstall)
Note: The skript has beta version status (look at mysql install comments)
hope it helps for your environment
greetings from Germany
Marcus
#!/bin/bash
## installer-skript for Openmeetings
## Marcus Wellnitz
## Datenwerk GmbH
## 2012-11-06
## OM-Version 2.0
# Change your initial variables:
INSTALLER=aptitude # either apt-get or aptitude
INSTALL_TEMP=/usr/adm
SWF_VERSION=2012-10-15-1307
FFMPEG_VERSION=0.11.1
## End initial Variables
mkdir -p ${INSTALL_TEMP}
cd ${INSTALL_TEMP}
wget --no-cookies --header "Cookie:
gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" \
http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-x64.bin
JAVA_DOWNLOAD_FILE=jdk-6u37-linux-x64.bin
JAVA_VERSION=1.6.0_37
chmod +x ${JAVA_DOWNLOAD_FILE}
./${JAVA_DOWNLOAD_FILE}
mkdir -p /usr/lib/jvm
mv jdk${JAVA_VERSION} /usr/lib/jvm/
update-alternatives --install /usr/bin/javac javac
/usr/lib/jvm/jdk${JAVA_VERSION}/bin/javac 1
update-alternatives --install /usr/bin/java java
/usr/lib/jvm/jdk${JAVA_VERSION}/bin/java 1
update-alternatives --install /usr/bin/javaws javaws
/usr/lib/jvm/jdk${JAVA_VERSION}/bin/javaws 1
update-alternatives --set javac /usr/lib/jvm/jdk${JAVA_VERSION}/bin/javac
update-alternatives --set java /usr/lib/jvm/jdk${JAVA_VERSION}/bin/java
update-alternatives --set javaws /usr/lib/jvm/jdk${JAVA_VERSION}/bin/javaws
${INSTALLER} update
${INSTALLER} -y --full-resolver upgrade
${INSTALLER} install pwgen
${INSTALLER} install openoffice.org-writer openoffice.org-calc
openoffice.org-impress \
openoffice.org-draw openoffice.org-math imagemagick sox -y
${INSTALLER} install libgif-dev xpdf libfreetype6 libfreetype6-dev
libjpeg62 libjpeg8 \
libjpeg8-dev libjpeg-dev libdirectfb-dev -y
${INSTALLER} install libart-2.0-2 libt1-5 zip unzip bzip2 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 libvorbis0a
libvorbis-dev \
libgsm1 libgsm1-dev libfaad2 flvtool2 lame -y
cd ${INSTALL_TEMP}
wget http://www.swftools.org/swftools-${SWF_VERSION}.tar.gz
tar -zxvf swftools-${SWF_VERSION}.tar.gz
cd swftools-${SWF_VERSION}
./configure
make
make install
cd ${INSTALL_TEMP}
wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz
tar -zxvf ffmpeg-${FFMPEG_VERSION}.tar.gz
cd ffmpeg-${FFMPEG_VERSION}
./configure --enable-libmp3lame --enable-libxvid --enable-libvorbis \
--enable-libgsm --enable-libfaac --enable-gpl --enable-nonfree
make
checkinstall
ffmpeg -version
MY_MYSQL_PWD="$(pwgen -BC 12 -N 1)"
MY_OPENMEETINGS_PWD="$(pwgen -BC 12 -N 1)"
echo mysql-server mysql-server/root_password select ${MY_MYSQL_PWD} |
debconf-set-selections
echo mysql-server mysql-server/root_password_again select
${MY_MYSQL_PWD} | debconf-set-selections
${INSTALLER} install mysql-server -y
cat > ${INSTALL_TEMP}/initial_mysql_database.sql << EOF
UPDATE user SET Password=PASSWORD('${MY_MYSQL_PWD}') WHERE User='root';
FLUSH PRIVILEGES; exit;DROP DATABASE IF EXISTS openmeetings
CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';
GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost'
IDENTIFIED BY '${MY_OPENMEETINGS_PWD}' WITH GRANT OPTION;
EOF
# workaround for crazy password disfunction
/etc/init.d/mysql stop
sleep 10
mysqld --skip-grant-tables &
sleep 10
mysql -u root < ${INSTALL_TEMP}/initial_mysql_database.sql
killall mysqld
sleep 10
/etc/init.d/mysql start
cd ${INSTALL_TEMP}
wget
http://jodconverter.googlecode.com/files/jodconverter-core-3.0-beta-4-dist.zip
unzip jodconverter-core-3.0-beta-4-dist.zip
cd ${INSTALL_TEMP}
wget
http://mirror.catn.com/pub/apache/ant/binaries/apache-ant-1.8.4-bin.tar.gz
tar -zxvf apache-ant-1.8.4-bin.tar.gz
cd ${INSTALL_TEMP}/apache-ant-1.8.4/bin
./ant -version
cd ${INSTALL_TEMP}
svn checkout
http://svn.apache.org/repos/asf/incubator/openmeetings/branches/2.0/
cd ${INSTALL_TEMP}/2.0
${INSTALL_TEMP}/apache-ant-1.8.4/bin/ant clean.all
${INSTALL_TEMP}/apache-ant-1.8.4/bin/ant -Ddb=mysql
cd ${INSTALL_TEMP}/2.0/dist
mv red5/ /usr/lib/
cp -R ${INSTALL_TEMP}/jodconverter-core-3.0-beta-4
/usr/lib/red5/webapps/openmeetings
chown -R nobody /usr/lib/red5
chmod +x /usr/lib/red5/red5.sh
chmod +x /usr/lib/red5/red5-debug.sh
cat >> /etc/init.d/red5 << EOF
#! /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 ([email protected])
# 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
EOF
# ===============
chmod +x /etc/init.d/red5
update-rc.d -f red5 remove
update-rc.d red5 defaults
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
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
sed -i "s/\(Username=\).*/\1openmeetings/"
/usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
sed -i "s/\(Password=\).*\"/\1${MY_OPENMEETINGS_PWD}\"/"
/usr/lib/red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
/etc/init.d/red5 start
set +v
echo "1. shredder ${INSTALL_TEMP}/initial_mysql_database.sql"
echo "2. Your MySQL root-password ist \"${MY_MYSQL_PWD}\""
echo "3. Your MySQL openmeetings-password ist \"${MY_OPENMEETINGS_PWD}\""
echo " "
echo "Now start configure your server at
http://${HOSTNAME}:5080/openmeetings/install"
exit
Am 06.11.2012 15:10, schrieb Markku Tavasti:
Hi!
Just grabbed
apache-openmeetings-incubating-2.0.0.r1361497-14-07-2012_1108.tar.gz
and opened it under /opt/openmeetings-2.0.0.r1361497
# cd /opt/openmeetings-2.0.0.r1361497
# ./red5.sh
I took my browser (firefox) to http://server.name:5080/ and it
redirected fine to http://server.name:5080/openmeetings/ but results
were not so good. After try 1-2-3 got dialog saying
Dialog title: Error Missing [204]
Dialog text: Error Missing [556]
Dialog button: Error Missing [642]
And below, NetConnection.Connect.Closed. Screenshot included.
Host is Ubuntu 12.04, java says:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
Typescript from run also attached.
Ideas what is going wrong?
--Tavasti
--
Marcus Wellnitz
Datenwerk GmbH
Vogelsbergstr. 34
60316 Frankfurt am Main
Telefon +49 (0) 69/9434086-0
Fax +49 (0) 69/9434086-9
E-Mail [email protected]
Web www.datenwerk-it.de
Sitz: Frankfurt am Main, Amtsgericht Frankfurt am Main HRB 55221
Geschäftsführer: Michael Beck