Skip to content

Jitsi Meet

Self-host Jitsi Meet on Debian: install from the Jitsi repository, add a Let's Encrypt certificate, open the firewall, require login and check the services.

4 min readUpdated

Jitsi Meet is an open source video conferencing system that you can run on your own server. This note installs it on Debian from the Jitsi package repository, replaces the temporary certificate with one from Let’s Encrypt, opens the firewall, restricts room creation to registered users while guests can still join, and lists what to check once it runs.

Prerequisites

  • A fresh Debian server with root or sudo access
  • A domain name, for example meet.yourdomain.com, whose DNS record points to the server
  • At least 2 GB of RAM; 4 GB is recommended for several simultaneous users

Install the required packages

Update the system and install the tools needed to add the repository:

Terminal window
sudo apt update && sudo apt upgrade -y
sudo apt install -y default-jdk gnupg2 curl

Note: The Jitsi handbook states that OpenJDK 17 must be used. Check which version default-jdk installs on your Debian release with java -version.

Add the Jitsi repository

Download the Jitsi signing key into a keyring file:

Terminal window
sudo mkdir -p /usr/share/keyrings
curl -fsSL https://download.jitsi.org/jitsi-key.gpg.key | \
gpg --dearmor | sudo tee /usr/share/keyrings/jitsi-keyring.gpg > /dev/null

Then add the repository, signed by that key, as a one-line source list:

Terminal window
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

Or, in the newer deb822 format, create /etc/apt/sources.list.d/jitsi.sources instead (use only one of the two):

/etc/apt/sources.list.d/jitsi.sources
Types: deb
URIs: https://download.jitsi.org
Suites: stable/
Components:
Architectures: amd64
Signed-By: /usr/share/keyrings/jitsi-keyring.gpg

The handbook also adds the Prosody repository, so that a current Prosody (the XMPP server Jitsi uses) is installed; some features, such as the lobby, need it:

Terminal window
sudo curl -sL https://prosody.im/files/prosody-debian-packages.key -o /usr/share/keyrings/prosody-debian-packages.key
echo "deb [signed-by=/usr/share/keyrings/prosody-debian-packages.key] http://packages.prosody.im/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/prosody-debian-packages.list

Refresh the package lists:

Terminal window
sudo apt update

Install Jitsi Meet

Terminal window
sudo apt install -y jitsi-meet

The installer asks two questions:

  • Hostname: enter your domain, for example meet.yourdomain.com.
  • TLS certificate: choose the Let’s Encrypt option, or “Generate a new self-signed certificate” as a temporary choice and add Let’s Encrypt afterwards (next section).

The installer configures a virtual host in Nginx or Apache if one of them is installed.

Add a Let’s Encrypt certificate

If you started with a self-signed certificate, replace it with one from Let’s Encrypt. A self-signed certificate causes browser warnings, and the Jitsi Meet mobile apps refuse to connect to it.

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

The script asks for an email address, requests the certificate and configures HTTPS.

Configure the firewall

Jitsi needs these ports:

  • 80/tcp and 443/tcp: web access and certificate validation
  • 10000/udp: audio and video traffic (required)
  • 3478/udp: STUN queries to the bundled coturn server (optional)
  • 5349/tcp: audio and video over TCP when UDP is blocked, served by coturn

With UFW, allow them, and SSH on 22/tcp so that enabling the firewall does not lock you out:

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

If the server is behind NAT, forward at least 443/tcp and 10000/udp to it.

Require login to create rooms (optional)

By default anyone who can reach the server can start a meeting. The secure domain setup below asks for a user name and password whenever a new room is created; once the room exists, guests join without logging in.

Note: The Jitsi handbook now marks this secure domain method as deprecated and recommends JWT (token) authentication for new installations.

Enable password authentication in Prosody

Edit the Prosody configuration for your domain:

Terminal window
sudo nano /etc/prosody/conf.avail/meet.yourdomain.com.cfg.lua

In the existing VirtualHost section for your domain, replace anonymous authentication with hashed passwords:

VirtualHost "meet.yourdomain.com"
authentication = "internal_hashed"

After that section, add a virtual host for guests:

VirtualHost "guest.meet.yourdomain.com"
authentication = "jitsi-anonymous"
c2s_require_encryption = false

The guest domain is internal to Jitsi: it needs no DNS record, certificate or web server configuration. Older guides use authentication = "anonymous"; the current handbook uses jitsi-anonymous.

Register a user

Create the account that may open rooms:

Terminal window
sudo prosodyctl register youruser meet.yourdomain.com 'yourpassword'

Tell Jicofo that login is mandatory

Jicofo, the conference focus component, must accept new conferences only from the authenticated domain. In /etc/jitsi/jicofo/jicofo.conf, add an authentication block inside the existing jicofo section (do not create a second jicofo section):

/etc/jitsi/jicofo/jicofo.conf
jicofo {
authentication: {
enabled: true
type: XMPP
login-url: "meet.yourdomain.com"
}
}

Point the web client to the guest domain

Edit the Jitsi Meet client configuration:

Terminal window
sudo nano /etc/jitsi/meet/meet.yourdomain.com-config.js

Add the anonymousdomain line to the existing hosts block (mind the commas):

var config = {
hosts: {
domain: 'meet.yourdomain.com',
anonymousdomain: 'guest.meet.yourdomain.com',
// ...
},
// ...
}

Restart the services

Terminal window
sudo systemctl restart prosody
sudo systemctl restart jicofo
sudo systemctl restart jitsi-videobridge2

Join a meeting

As the registered user:

  1. Open https://meet.yourdomain.com in a browser.
  2. Create a room, for example room1.
  3. A login dialog appears; enter the user name and password registered above.

As a guest, open https://meet.yourdomain.com/room1. Once the room has been created, you join it without logging in.

Check the services

Check that the video bridge is running:

Terminal window
sudo systemctl status jitsi-videobridge2

If something does not work, look in the logs:

  • /var/log/jitsi/jvb.log (video bridge)
  • /var/log/jitsi/jicofo.log (Jicofo)
  • /var/log/prosody/prosody.log (Prosody)

If participants cannot see or hear each other, check the firewall and NAT rules first. For users behind restrictive NATs or firewalls, a production setup should include a TURN server.

References

Related notes

1 min read

GNOME

Make the GNOME login screen (GDM) ask for a username instead of showing the list of users.

  • Linux & Systems
4 min read

SSH keys

Create and manage SSH keys: generate a key pair, set a passphrase, copy the public key, test Git hosts and recover a server you are locked out of.

  • Security
  • Linux & Systems
2 min read

Debian

Debian administration tasks: check the release, update packages, set the locale and time zone, purge removed packages and boot to text mode.

  • Linux & Systems

Type to search the whole site.