Install and Configure Jitsi Meet on Ubuntu 20.04 Using centron Infrastructure
Jitsi Meet is a cost-free, open-source video conferencing solution offering premium-grade features, including excellent audio fidelity, robust encryption and privacy, and cross-platform compatibility. With Jitsi Meet, launching your own video conferencing platform is simple and effective.
Requirements
- Fresh Ubuntu 20.04 LTS x64 system hosted via centron.
- Minimum 2 GB RAM. Choose a High Performance Compute instance for optimal results.
- Configured sudo user (non-root).
- Domain (FQDN) pointing to your server’s IP.
Example Configuration
- Server hostname:
jitsi
- FQDN:
jitsi.example.com
- IP:
192.0.2.123
1. Create a Swap Partition
A 2 GB swap file helps improve system performance for 2 GB RAM servers.
sudo dd if=/dev/zero of=/swapfile count=2048 bs=1M
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
free -m
2. Set Hostname and Domain
Define the server’s hostname and domain before enabling HTTPS certificates from Let’s Encrypt.
sudo hostnamectl set-hostname jitsi
3. Configure Firewall Rules
Allow required ports: OpenSSH, HTTP, HTTPS, and UDP range for media streaming.
sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw allow in 10000:20000/udp
sudo ufw enable
Confirm by entering y
when prompted.
4. System Update
Update the system.
sudo apt update && sudo apt upgrade -y
5. Install OpenJDK 8 JRE
Install Java Runtime Environment version 8 required by Jitsi Meet.
sudo apt install -y openjdk-8-jre-headless
java -version
Set JAVA_HOME
environment variable:
echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed 's:bin/java::')" | sudo tee -a /etc/profile
source /etc/profile
6. Install Nginx Web Server
Nginx is required for Jitsi Meet’s web interface and will be automatically configured.
sudo apt install -y nginx
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
7. Install Jitsi Meet
Add the official repository and install Jitsi Meet:
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
echo "deb https://download.jitsi.org stable/" | sudo tee -a /etc/apt/sources.list.d/jitsi-stable.list
sudo apt update
sudo apt install -y jitsi-meet
During setup, input your domain name and select the self-signed SSL option initially.
8. Install Let’s Encrypt SSL Certificate
Use the following script to enable HTTPS support.
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
Enter your email address when prompted.
Handle Certbot Error
If you encounter the missing python-virtualenv
error, apply this workaround:
Install certbot from the official Ubuntu repository:
sudo apt install certbot
Modify the script to replace certbot-auto
with certbot
:
sudo sed -i 's/\.\/certbot-auto/certbot/g' /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
Create a symbolic link to satisfy the script’s location requirement:
sudo ln -s /usr/bin/certbot /usr/sbin/certbot
Rerun the SSL script:
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
9. Launch a Jitsi Meeting
Open your browser and visit https://jitsi.example.com
to start using your newly configured Jitsi Meet instance powered by centron.