Installazione di un sistema di web conferencing Apache OpenMeetings in Debian

From RVM Wiki
Jump to navigation Jump to search
Attenzione questo articolo è ancora incompleto.
Sentiti libero di contribuire cliccando sul tasto edit.
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list


apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update

echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

apt-get install oracle-java8-installer

apt-get install oracle-java8-set-default

NO Libreoffice

apt-get install imagemagick gdebi libgif4 libjpeg62 synaptic zlib1g-dev liboil0.3 unzip make


cd /opt
wget http://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz
tar xzvf sox-14.4.2.tar.gz

cd /opt
wget https://launchpad.net/ella-renaissance/ella-renaissance-beta/beta1/+download/swftools_0.9.1-1_amd64.deb
dpkg -i swftools_0.9.1-1_amd64.deb
(lamenta dipendenze)
echo "swftools hold" | sudo dpkg --set-selections
apt-get install -f

apt-get install flashplugin-nonfree

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

apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev nasm

mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

cd ~/ffmpeg_sources
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0

./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make
make install
make distclean

cd ~/ffmpeg_sources
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static
PATH="$HOME/bin:$PATH" makePag 5
make install
make distclean

sudo apt-get install libtool
cd ~/ffmpeg_sources
unzip fdk-aac.zip
cd mstorsjo-fdk-aac*
sudo apt-get install libtool
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
make distclean

cd ~/ffmpeg_sources
tar xzvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --prefix="$HOME/ffmpeg_build" --enable-nasm --disable-shared
make
make install
make distclean

cd ~/ffmpeg_sources
tar xzvf opus-1.1.tar.gz
cd opus-1.1
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
make distclean

cd ~/ffmpeg_sources
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
PATH="$HOME/bin:$PATH" make
make install
make clean

cd ~/ffmpeg_sources
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
PATH="$HOME/bin:$PATH" make
make install
make distclean
hash -r

cd ~/bin
cp ffmpeg ffplay ffprobe ffserver vsyasm x264 yasm ytasm /usr/local/bin
cd ~/ffmpeg_build/bin
cp lame /usr/local/bin

sudo apt-get install python-software-properties
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mirror6.layerjet.com/mariadb/repo/5.5/debian wheezy main'


apt-get update
apt-get install mariadb-server

/etc/init.d/mysql restart

mysql -u root -p
CREATE DATABASE open306 DEFAULT CHARACTER SET 'utf8';
GRANT ALL PRIVILEGES ON open306.* TO 'openmeetings'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
quit

mkdir /opt/red5306
cd /opt/red5306
wget http://www.eu.apache.org/dist/openmeetings/3.0.7/bin/apache-openmeetings-3.0.7.zip
unzip apache-openmeetings-3.0.7.zip 
rm -f apache-openmeetings-3.0.7.zip

chown -R nobody /opt/red5306

cd /opt
wget http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.35/mysql-connector-java-5.1.35.jar
cp /opt/mysql-connector-java-5.1.35.jar /opt/red5306/webapps/openmeetings/WEB-INF/lib


cd /opt/red5306/webapps/openmeetings/WEB-INF/classes/META-INF
mv persistence.xml persistence.xml-ori
mv mysql_persistence.xml persistence.xml

vi /opt/red5306/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml

...to change on line 78
, Url=jdbc:mysql://localhost:3306/openmeetings
...to
, Url=jdbc:mysql://localhost:3306/open306
...it is the name of the database that we did initially.
... to change on line 83
, Username=root
...to
, Username=openmeetings
...is the user that we did initially for the database.
...to change on line 84
, Password=" />
...to
, Password=123456" />
...it is the password that we did initially for the user "openmeetings" in the database.

chmod 640 /opt/red5306/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml

cd /opt
wget "https://cwiki.apache.org/confluence/download/attachments/27838216/red5?version=2&modificationDate=1432719272000&api=v2" -O /etc/init.d/red5
chmod +x /etc/init.d/red5

 /etc/init.d/red5 start

Esce, è ok:
start-stop-daemon: --start needs --exec or --startas
Try 'start-stop-daemon --help' for more information.

Wait 10 seconds

http://10.11.12.18:5080/openmeetings/install

Riferimenti