×
Community Blog How to Install and Setup OpenMeeting on Alibaba Cloud

How to Install and Setup OpenMeeting on Alibaba Cloud

In this tutorial, we will install and set up OpenMeeting on Alibaba Cloud Elastic Compute Service (ECS) with Ubuntu 16.04.

By Arslan Ud Din Shafiq, Alibaba Cloud Community Blog author.

OpenMeeting is a conferencing software used for online training, web conferencing, presenting, document editing, collaborative whiteboard drawing, and user desktop sharing. It is built on HTML5, Flash and Red5 media server. OpenMeeting also provides mobile-client for Android and offers a private message center that allows users to chat, create polls, and cast votes.

In this tutorial, we will install and set up OpenMeeting on Alibaba Cloud Elastic Compute Service (ECS) along with Ubuntu 16.04.

Prerequisites

  • You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get $300 – $1200 worth in Alibaba Cloud credits for your new account. If you don't know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 4GB RAM and 2 Core processor
  • A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  • Domain name must be pointed to your Alibaba Cloud ECS's IP address
  • Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  • Set up your server's hostname and create a user with root privileges.

Setting Up Your Server

Firstly, use the following command to update your Ubuntu system before proceeding with the installation of any type of package. For executing this command, remember to login from non-root user with Sudo privileges.

sudo apt update && sudo apt upgrade

Install Software-properties-common

Execute the following command to install software-properties-common.

sudo apt-get install software-properties-common

Install Java

Though OpenMeeting requires Java version 8, you can also use Oracle Java or OpenJDK. However, the installation process may vary for each one. For this tutorial, we will use Java 8 from Oracle. Follow the steps listed below to install the same.

Run the following command to add PPA in the repository for making Java available.

sudo add-apt-repository --yes ppa:webupd8team/java

You need to update the system before moving ahead with the next step.

sudo apt update

Now install Oracle Java 8 by executing the following command.

sudo apt -y install oracle-java8-installer

To verify whether you have successfully installed Java, you can execute the following command to check the Java version.

java -version

Next, set the default path for Java by using the following command.

sudo apt -y install oracle-java8-set-default

To verify the path, open duplicate shell, and log in again via SSH. Once, you are logged in you can execute the following command.

# echo $JAVA_HOME

Install Unzip

You also need to install Unzip which will later be used to unzip the compressed zip folder. Execute the following command to install unzip.

sudo apt-get install unzip -y

Install ImageMagick

To install ImageMagick, execute the command below.

sudo apt-get install imagemagick -y

Install Ghostscript

Execute the following command to install Ghostscript successfully.

sudo apt-get install ghostscript -y

Install Libxt6

Next, you need to install libxt6 by executing the command below.

sudo apt-get install libxt6 -y

Install Libxrender1

You also need to install libxrender1 by using the following command.

sudo apt-get install libxrender1 -y

Install Apache OpenOffice

You need to install Apache OpenOffice on the system to facilitate importing files with extensions like .doc, .docx, pptx or .xlx. Let's take a quick look at the following steps required to install Apache OpenOffice.

To download Apache OpenOffice, first visit this page and then execute the following command.

wget

Execute the following command to extract the data from an archived directory.

tar xf Apache_OpenOffice_4.1.5_Linux_x86-64_install-deb_en-US.tar.gz

Navigate to /en-US/DEBS using the following command.

cd en-US/DEBS

Now, de-package the .deb files by executing the command below.

sudo dpkg -i *.deb

sudo dpkg -i desktop-integration/openoffice4.1-debian-menus_4.1.5*.deb

Install FFmpeg

You will also need FFmpeg for handling video, audio, and various multimedia files later. To install the latest version of FFmpeg, follow the steps listed below.

Add PPA for installing FFmpeg by executing the command below.

sudo add-apt-repository --yes ppa:jonathonf/ffmpeg-3

Update your system using the following command.

sudo apt update

Now, execute the command below to install FFmpeg.

sudo apt install ffmpeg -y

Install SoX

Next, you need SoX for reading and writing audio files, Execute the command below to install FFmpeg.

sudo apt install sox -y

Sox and FFmpeg are employed to enable recordings in OpenMeetings.

Install MariaDB

MyBB supports MySQL and PostgreSQL. For this tutorial, we will use the MariaDB server for MySQL. By default, the Ubuntu repository has an older version of the MariaDB server. We need to add MariaDB repository to the Ubuntu system for using the new version of MariaDB by following the steps listed below.

Verify the keys by executing the command shown below.

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

Add the repository using the following command.

sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.nodesdirect.com/mariadb/repo/10.2/ubuntu xenial main'

Now update the system by using the command below.

sudo apt update

Now install MariaDB using the following command.

sudo apt install -y mariadb-server

Start and enable the MariaDB server to ensure that after reboot, the server starts automatically.

sudo systemctl start mariadb

sudo systemctl enable mariadb

Now run the following command to enhance security of MariaDB server and set password for the root user.

sudo mysql_secure_installation

Also, connect to the MySQL shell as the root user by executing the command below and enter your password.

sudo mysql -u root -p

Execute the following MySQL queries in your MariaDB server.

CREATE DATABASE plane CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'aareez'@'localhost' IDENTIFIED BY '654321Ab';
GRANT ALL PRIVILEGES ON plane.* TO 'aareez'@'localhost';
FLUSH PRIVILEGES;
EXIT; 

Navigate to /var/webapps/openmeetings/WEB-INF/lib as shown below.

cd /var/webapps/openmeetings/WEB-INF/lib

Download Connecter J by executing the following command.

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.13.zip

Now execute the command below to unzip the downloaded folder.

sudo unzip mysql-connector-java-8.0.13.zip

Now use the following command to move .jar file from /var/webapps/openmeetings/WEB-INF/lib/mysql-connector-java-8.0.13/ to /var/webapps/openmeetings/WEB-INF/lib/.

sudo mv -v /var/webapps/openmeetings/WEB-INF/lib/mysql-connector-java-8.0.13/mysql-connector-java-8.0.13.jar /var/webapps/openmeetings/WEB-INF/lib/

Install OpenMeetings

Let's take a look at the steps to install OpenMeeting.

Navigate to /var using the following command.

cd /var

Now, change ownership of /var directory as shown below.

sudo chown -R aareez:aareez /var

You will need the latest stable release of OpenMeeting to move ahead with the installation. Use the command below to get the latest release version.

wget http://www-eu.apache.org/dist/openmeetings/4.0.6/bin/apache-openmeetings-4.0.6.zip

Unzip the downloaded folder by using the following command.

unzip apache-openmeetings-4.0.6.zip

Now execute the following command to extract apache-openmeetings-4.0.6.zip.

rm -r apache-openmeetings-4.0.6.zip

To start the OpenMeeting application, you must execute the following command.

sudo su -s /bin/bash -c 'cd /var/ && sh red5.sh'

Set Up Firewalls and Ports

If you have activated firewalls, you need to define a rule in Alibaba Cloud security group for your cloud server to add an exception for port 80/TCP, 443/TCP, and 5080/TCP. You can enable these ports while creating ECS instance, but in case if you have forgotten to unblock these ports, you can follow the procedure in this guide: https://www.alibabacloud.com/help/doc-detail/25471.htm

Configure OpenMeetings

Next, you need to configure OpenMeetings. Access OpenMeeting on web-browser via http://your_domain.tld/openmeetings:5080 to navigate to the following page.

1

Once, you click on the Next button, represented by ">" sign, you will be redirected to the database configuration page as shown below.

2

Click Check to see if database is connected successfully. Secondly, click the ">" button to proceed to the next step.

3

On the below screen, you can set up a username and password for the administrator account to access the admin panel.

4

So once you are on the following screen, complete the SMTP settings and click the " > " button to proceed towards the next step.

5

Next, set paths for dependencies and click the " > " button.

6

Lastly, set SIP configurations and click the ">" button to navigate to the final page.

7

Click the Finish button on the final page shown below.

8

Install Nginx

To install Nginx server, you need to execute the command listed below.

sudo apt-get install -y nginx

Also, to ensure that the server starts automatically on system reboot, you need to start and enable the Nginx by executing the following commands consecutively.

sudo systemctl start nginx

sudo systemctl enable nginx

On successful installation, you will see the following screen.

9

Install Node.js

To install Node.js, execute the command below.

sudo apt-get install nodejs

Setup Reverse Proxy

It is imperative to set up a reverse proxy to access OpenMeeting. This will allow you to access OpenMeeting via domain name without using any port at the end of the address. You can implement the same by running the following command to create an Nginx configuration file using Nano editor.

sudo nano /etc/nginx/conf.d/open.conf

Now add the following text in the open file and save it.

server {
  listen 80;
  listen [::]:80;
  server_name softpedia.xyz;
  location / {
      proxy_pass http://localhost:5080/;
  }
}

Now restart the Nginx server by executing the following command.

sudo systemctl restart nginx

Install SSL Certificate

You need to use Certbot for installing the SSL certificate using Let's Encrypt. To do so, execute the following steps.

Update the package using the following command.

sudo apt-get update

Add the Certbot repository by using the following command.

sudo add-apt-repository ppa:certbot/certbot

Use the command below to update the package for loading the added Certbot repository.

sudo apt-get update

Now, install python-certbot-nginx using the command below.

sudo apt-get install python-certbot-nginx

Execute the following command to get Let's Encrypt SSL issued.

sudo certbot --nginx -d softpedia.xyz

Now, run the following command to restart the Nginx server.

sudo systemctl restart nginx

With this, you can see your OpenMeetings is working fine and the SSL certificate has been installed successfully.

Now, you can go ahead and access OpenMeetings

10

0 0 0
Share on

Alibaba Clouder

2,599 posts | 763 followers

You may also like

Comments