Ubuntu

How to Install Jitsi Meet on Ubuntu 20.04

What is Jitsi Meet?

Jitsi Meet is a collection of free and open-source application that allows you to to build and deploy high-quality video conferencing platform. It’s a multi-platform application that can run on a different operating system such as Windows, Linux, macOS X, and Android.

Two main applications at the heart of Jitsi video conferencing platform:

  • A Jitsi Videobridge: It is an application that allows you to build high-quality and scalable multiparty video conferencing applications. Rather than mixing videos, the Jitsi Videobridge just relays video and can be managed through XMPP, HTTPS, or Rest-API.
  • A Jitsi Meet itself: It is a JavaScript webRTC application that used as a front-end of the Jitsi video conferencing Platform. It’s used the Jitsi Videobridge to handle multiparty video conferencing and using Opus for better Audio quality, and secure with encrypted chat.

Why using Jitsi Meet?

  • 100% free as freedom and open-source
  • High-quality video and audio
  • Small CPU and Memory consumption
  • Share your desktops, presentations, etc
  • Edit document together with Eteherpad
  • Anonymous, no need for account
  • integrated with encrypted chat
  • Invite user with simple URL

What we will do?

In this tutorial, we will show you how to install Jitsi Meet on Ubuntu 20.04 Server. We will install Jitsi Meet packages, secure the installation with SSL from Letsencrypt and UFW firewall on the latest version of Ubuntu 20.04.4 Server.

Prerequisites

For this guide, we will install the Jitsi Meet on the Ubuntu system with 2GB of RAM and 2 CPUs.

To complete this Jitsi Meet installation, you must have access to the Ubuntu 20.04 Server and have the root privileges.

Also, you must have the domain name for the Jitsi Meet installation, and make sure it’s resolved to your server IP address.

Before going ny further, run the sudo command below to get the root privileges.

sudo su

After that, start the Jitsi Meet installation using the following steps.

Step 1 – Install Packages Dependencies

First, you must install some packages dependencies and enable the ubuntu ‘universe’ repository on your system.

Install the ‘gnupg2’ and ‘apt-transport-https’ using the apt command below.

apt install gnupg2 apt-transport-https

After that, you must enable the Ubuntu ‘universe’ repository and update all repositories on your system using the following command.

apt-add-repository universe
apt update

Enable Universe Repository Ubuntu server

As a result, you’ve installed some packages dependencies for the Jitsi Meet installation, and you’ve enabled the Ubuntu ‘universe’ repository on the Ubuntu 20.04 system.

Step 2 – Generate SSL Letsencrypt with Certbot

By default, the Jitsi Meet provides a bash for generating SSL Letsencrypt after it’s installation.

But, for this guide, you will generate the SSL Letsencrypt manually using the certbot tool. After that, you need to input the location path of your SSL certificate during the Jitsi Meet installation.

Install the certbot tool using the apt command below.

apt install certbot

Next, generate the SSL Letsencrypt for your Jitsi Meet domain name using the certbot command below.

certbot certonly --standalone --preferred-challenges http-01 --agree-tos --no-eff-email -m [email protected] -d meet.your-domain.com

Make sure to change the email address and domain name with your own.

Details certbot command used for generating SSL Letsencrpt:

–standalone: Create temporary web server for Letsencrypt authentication
–preferred-challenges: Specify the challenge authorization, you’re using the ‘http-01’ challenge for Authorization
–agree-tos: Automatically agree with the Letsencrypt TOS (Terms of Services)
–no-eff-email: No share email with EFF

Generate SSL Letsencrypt with Certbot

Once the command is completed, your SSL certificates will be located at ‘/etc/letsencrypt/live/meet.your-domain/‘ directory.

Check your SSL certificates using the ‘ls’ command below.

ls -lah /etc/letsencrypt/live/meet.your-domain.com/

As can be seen, you will get multiple SSL certificates. You need to the ‘fullchain.pem‘ as the public key, and the ‘privkey.pem‘ as the private key for the Jitsi Meet installation.

SSL Letsencryp Path Location

As a result, you’re ready to install the Jitsi Meet with your specific SSL certificates.

Step 3 – Add Jitsi Meet Key and Repository for Ubuntu 20.04

For this tutorial, you will install Jitsi Meet from the official Jitsi repository for the Ubuntu/Debian system. And you must add the Jitsi Meet GPG key and repository before start installing Jitsi Meet packages.

Add the Jitsi Meet GPG key and repository using the following commands.

curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg'
echo 'deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/' | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null

After that, update all repositories on your Ubuntu system.

apt update

And as a result, you’re ready to install Jitsi Meet packages to your Ubuntu 20.04 Server.

Add Jitsi Meet Repository to Ubuntu 20.04 System

Step 4 – Install Jitsi Meet on Ubuntu 20.04

At this stage, you’ve added the Jitsi Meet GPG key and repository. Now you will install Jitsi Meet packages from the official Jitsi repository.

Install Jitsi Meet packages using the apt command below.

apt install jitsi-meet

During the installation, you will be asked for the domain name and SSL certificates configuration.

Type your domain name for the Jitsi Meet installation and choose ‘OK‘.

Setup Domain Name for Jitsi Meet on ubuntu 20.04

For the SSL certificates configuration, choose the “second option” to use the specific SSL certificates.

Specify SSL Certificates for Jitsi Meet Installation

Now type the full path of your SSL private key “/etc/letsencrypt/live/meet.your-domain.com/privkey.pem“.

SSL Private Key for Jitsi Meet

After that, type the full path of your SSL public key “/etc/letsencrypt/live/meet.your-domain.com/fullchain.pem“.

SSL Public Key for Jitsi Meet

Now wait for the Jitsi Meet installation will be completed.

As a result, you’ve successfully installed the Jitsi Meet on the Ubuntu 20.04 Server.

Step 5 – Secure Jitsi Meet with UFW Firewall on Ubuntu 20.04

The Jitsi Meet installation comes with different services and opens some system ports to make it works.

It’s always recommended to always using a firewall on your server, especially in the Production environment.

In this step, you will add some ports that used by the Jitsi Meet to the UFW firewall. Add the HTTP and HTTPS ports for Jitsi Meet web-based application, and add the port ‘10000-20000/udp’ for the Jitsi Video bridge service.

To add these Jitsi Meet ports, run the ‘ufw’ commands below.

for i in ssh http https 4443/tcp 10000:20000/udp
do
    ufw allow $i
done

Next, start the UFW service and enable it to run the boot time using the following command.

ufw enable

Type ‘y’ to enable the UFW firewall, and as a result, you’ve enabled the UFW firewall services on the Ubuntu system.

Add UFW Firewall Rules for Jitsi Meet

Additonally, check all available rules on the UFW firewall using the ufw command below.

ufw status verbose

Below is the result you will get.

UFW Firewall Check Rules

As a result, you’ve successfully secured the Jitsi Meet installation using the UFW firewall. And you’re ready to start a new video conference using Jitsi Meet with your team.

Step 6 – Start First Video Conference using Jitsi Meet

To start the video conference using Jitsi Meet, you can use different client applications.

If you’re using a computer/laptop, you can use your web browser as your client, Jitsi Meet support various browser including the Mozilla Firefox, Google-Chrome, or Opera Browser. And for Android users, download the Jitsi Meet application for Android from F-Droid.

– Start Videe Conference with the Web Browser

In this step, you will create the first video conference using the web browser.

Open the web browser and type the Jitsi Meet installation URL on the address bar.

https://meet.sysadminjournal.com/

Now you will get the Jitsi Meet default index page.

Start Video Conference with Web Browser on Jitsi Meet

To create a new room or join the conference, type the conference/room name and click the ‘Go‘ button.

Next, the server will ask for permission to access your mic and webcam through the web browser, click ‘OK‘ to allow both permissions.

After that, you will get the conference room with your team.

Share Screen Jitsi Meet Video Conferencde

As a result, you’ve successfully logged in and/or created the room conference with your team using the Jitsi Meet.

And finally, you’ve completed the installation of Jitsi Meet on the latest Ubuntu 20.04 Server. Also, you’ve secured the Jitsi Meet with the SSL Letsencrypt and UFW firewall.

– Next Step: Secure Jitsi Meet with Jicofo Secure Domain

How to Secure Jitsi Meet:
After you’ve successfully installed Jitsi Meet, learn how to secure your Jitsi Meet installation with Jicofo Secure Domain.

5 Comments

  1. Jery Hardianto Reply

    Hello everyone, I tried to install JITSI-Meet on UBUNTU SERVER 20.04 I got an error [email protected]: ~ # apt Install-y JITSI-Meet
    Reading package lists… Done
    Building Dependency Tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    Requested an impossible situation or if you are using the unstable
    Distribution that some required packages have not yet been created
    Or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have with dependencies:
    Jitsi-Meet: Depends: Jitsi-Meet-prosody (= 1.0.4127-1) But it is not going to be installed
    Recommends: Jitsi-Meet-turnserver (= 1.0.4127-1) But it is not going to be installed or
    Apache2 but it is not going to be installed
    E: Unable To correct problems, you have held broken packages.

    • ndlr Reply

      Before installing Jitsi Meet packages on your system, you must update and upgrades all of your system to the latest version.
      sudo apt update && sudo apt upgrade

      After that, install Jitsi Meet using this guide.

      • Jery Hardianto Reply

        I tried to update and upgrade, but there have been no changes still with the same problem

        • hakase Reply

          Unfortunately, the problem is about the broken packages on your system.
          I would recommended you to change the system for the “Jitsi Meet” installation using the latest and fresh installation of Ubuntu 20.04 “FocalFossa“.

          Thanks for visiting mysite and enjoy your time.

  2. hello i got a fresh ubuntu 20.04 i’m getting also the same issue dependacy issue with meet-prosody version

Write A Comment