Prérequis

Ubuntu 18.04 LTS Desktop  fraichement installé

Configuration TCP/IP opérationnelle

 

Etape :

 1) Installation openJava 1.8

 2) Installation libreoffice

 3) Installation imageMagick and Sox

4) Installation Adobe Flash Player

5) Installation Compilation FFmpeg

6) Installation et configuration de mariadb

7) Installation OpenMeetings

8) Installation Script de démarrage red5-OpenMeetings

 

 

Informations sur les serveurs

OpenMeetings :

http://192.168.1.33/index.php/

Ldap :

ptu-ldap 192.168.1.80

FusionDirectory :

http://192.168.1.61/fusiondirectory/

 

Configuration TCP/IP.

Obtenir le nom de l’interface réseau sur Ubuntu 18.04

# ip a

2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

link/ether

inet 192.168.1.102/24 brd 192.168.1.255 scope global ens18

 

Configurer l’adresse ip statique

# vi /etc/network/interfaces

auto lo

iface lo inet loopback

allow-hotplug ens18

iface ens18 inet static

address 192.168.1.33

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

dns-nameservers 192.168.1.1

 

Configurer la résolution du nom du serveur en local

# vi /etc/hosts

127.0.0.1 localhost

127.0.1.1 om-home.alcd.fr om-home

192.168.1.33 om-home.alcd.fr om-home

 

Configurer le nom du serveur en local

# vi /etc/hostname

om-home

 

Mise à jour sistème

# apt-get update

# apt-get upgrade

# apt-get dist-update

 

Configuration de fuseau horaire

# dpkg-reconfigure tzdata

 

Passer en locale UTF-8 sous Ubuntu

# dpkg-reconfigure locales

 

Installation agent QEMU

# apt-get install qemu-guest-agent

 

Installation de Openssh

# apt-get install libssl-dev

# apt-get install ssh

 

Installation de OpenJava 1.8

# sudo apt install openjdk-8-jdk openjdk-8-jdk-headless

# sudo apt install icedtea-8-plugin

# sudo update-alternatives --config java

 

 Vérifier la version de java active

# java -version

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

 

Installation de libreOffice

# sudo add-apt-repository ppa:libreoffice/ppa
# sudo apt update

# apt-get install libreoffice

 

Installation ImageMagick Sox

# sudo apt install -y imagemagick libjpeg62 zlib1g-dev

# sudo apt install sox

 

Installation Adobe Flash Player

# sudo apt install flashplugin-installer

 

Installation des dépendances pour FFmpeg

# sudo apt -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 libx264-dev cmake
mercurial libopus-dev curl git vlc unzip make build-essential wget nmap

 

Compilation FFmpeg

# cd /opt
# wget https://cwiki.apache.org/confluence/download/attachments/27838216/ffmpeg_UbunDebi.sh

# chmod +x ffmpeg_UbunDebi.sh

# ./ffmpeg_UbunDebi.sh

RM : When finish the compilation, a text will announce it:
FFmpeg Compilation is Finished!

 

 

Installation de Mariadb

# apt -y install mariadb-server

 

Noter le mot de passe root de Mariadb

# Enter current password for root (enter for none): alcd

 

Démarrer le serveur Mariadb

# systemctl enable mariadb

# systemctl start mariadb

 

Sécuriser mariadb

# mysql_secure_installation

Change the root password? [Y/n] n

Remove anonymous users? [Y/n] Y

Disallow root login remotely? [Y/n] Y

Remove test database and access to it? [Y/n] Y

Reload privilege tables now? [Y/n] Y

 

Créer un utilisateur ausmane dans mariadb avec le droit root

# mysql -u root -p

MariaDB [(none)]> grant all privileges on *.* to ausmane@"%"; identified by 'alcd' with grant option;

MariaDB [(none)]> flush privileges;

MariaDB [(none)]> exit

 

Créer la base de données openmeetings et l’utilisateur userom

mysql -u root -p

 

MariaDB [(none)]> CREATE DATABASE openmeetings CHARACTER SET utf8;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON openmeetings.* TO 'userom'@'localhost' IDENTIFIED BY 'alcd';

MariaDB [(none)]> FLUSH PRIVILEGES;

MariaDB [(none)]> exit;

 

 

Installation de OpenMeetings

# mkdir /opt/red5408

# cp apache-openmeetings-4.0.8.zip /opt/red5408
# cd /opt/red540

# unzip apache-openmeetings-4.0.8.zip
# mv apache-openmeetings-4.0.8.zip /opt

# chown -R nobody /opt/red5408
# cd /opt
# wget http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-conne5.1.47.jar
RM : Telecharger manuellement : http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-conne5.1.47.jar

# cp /opt/mysql-connector-java-5.1.47.jar /opt/red5408/webapps/openmeetings/WEB-INF/lib

 

Télécharger le script de démarrage de openmeetings

# cd /opt
# wget https://cwiki.apache.org/confluence/download/attachments/27838216/red5-ubdeb2

 

 

Modifier le script de démarrage de openmeetings

# vi /opt/red5-ubdeb2

#!/bin/bash
# For RedHat and cousins: Modified for Ubuntu and Debian by Alvaro Bustos
### BEGIN INIT INFO
# Provides: red5
# Required-Start: $local_fs $remote_fs $network $syslog $named $time
# Required-Stop: $local_fs $remote_fs $network $syslog $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop OpenMeetings java based conferencing webapp
### END INIT INFO
PROG=red5
RED5_HOME=/opt/red5408
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
# . /etc/rc.d/init.d/functions

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

RETVAL=0

case "$1" in
start)
# echo -n $"Starting $PROG: "
cd $RED5_HOME
start-stop-daemon --start -c nobody --pidfile $PIDFILE
$DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
# touch /var/lock/subsys/$PROG
fi
# [ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"
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)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=1
esac

exit $RETVAL

 

# cp red5-ubdeb2 /etc/init.d/
# chmod +x /etc/init.d/red5-ubdeb2

 

Tester le démarrer red5-OpenMeetings avec le script red5-ubdeb2

RM: Re-démarrer Mariadb si nécessaire

# /etc/init.d/mysql start

RM : Tester le démarrage de  red5-openmeetings via le script

# /etc/init.d/red5-ubdeb2 start

RM: Attendre environ 40 secondes et tester la connexion avec le serveur

http://192.168.1.33:5080/openmeetings/install

RM : Tester l'arrêter red5-openmeetings avec le script

# /etc/init.d/red5-ubdeb2 stop

RM: Re-démarrer red5-openmeetings via le script

# /etc/init.d/red5-ubdeb2 start

 

Attendre environ 40 secondes et tester la connexion avec le serveur

http://192.168.1.33:5080/openmeetings/install

 

 

openmeetings

 

Configurer le démarrage automatique à chaque reboot du Serveur

# cd /etc/init.d

# update-rc.d red5-ubdeb2 defaults