By Dmitrii MaksimovDecember 17th 2020

This article will show you a step-by-step guide on how to do a quick Jitsi-Meet installation on your Ubuntu Shell. You will need to install/update the following packages prior to a Jitsi-Meet installation:

  • gnupg2
  • nginx-full
  • OpenJDK 8

Jitsi requires dependencies from Ubuntu's universe package repository.

To confirm it is enabled, run:

sudo apt-add-repository universe

You should see this on your screen:

'universe' distribution component is already enabled for all sources.

Setup a hostname on your shell:

sudo hostnamectl set-hostname *your_domain*

To add the Jitsi package repository to your Shell, run 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

And then update all package sources:

sudo apt update

If you have a firewall installed, add the following rules to allow traffic to the Jitsi Meet server:

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 10000/udp
sudo ufw allow 22/tcp
sudo ufw allow 3478/udp
sudo ufw allow 5349/tcp
sudo ufw enable

Now you are ready to install the Jitsi Meet package:

sudo apt install jitsi-meet

Notes

  1. You will be asked about SSL/TLS certificate generation. Choose Generate a new self-signed certificate. It's a recommended and secure option, however, you will be able to upload your own certificate later.
  2. You will also be asked to enter a hostname of the Jitsi Meet server. You can enter your domain name if you have one or just enter your Shells dedicated IP address.

Now we have to generate a new TLS certificate.


Run the following in your Shell:

sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

You will see this on your screen:

Enter your email address to accept the agreement and click Enter.

In order to allow only registered users to create conference rooms on your server, you have to open a /etc/prosody/conf.avail/jitsi.your_domain.cfg.lua file in any text editor:

sudo nano /etc/prosody/conf.avail/your_domain.cfg.lua

You have to edit:

authentication = "anonymous"

to

authentication = "internal_plain"

Then we should add the following code to the end of the same file:

VirtualHost "guest.your_domain"
authentication = "anonymous"
c2s_require_encryption = false

This will allow anonymous users to join your conference with a link and a password provided to them by a conference host.

Now, let's open /etc/jitsi/meet/jitsi.your_domain-config.js

sudo nano /etc/jitsi/meet/jitsi.your_domain-config.js

Add uncomment the following line:

// anonymousdomain: 'guest.jitsi.your_domain'

You should see this when you are done:

 

To add a new user to your Jitsi Meet server, run:

sudo prosodyctl register user your_domain password

And in the end, we have to restart Jitsi Meet services to load the updated configuration:

sudo systemctl restart prosody.service
sudo systemctl restart jicofo.service
sudo systemctl restart jitsi-videobridge2.service

 

Congratulations! You have completed the Jitsi Meet installation and can access your conference portal by entering your domain name or a dedicated IP address into your browser.

)