First, you need to install the below-supported packages
sudo su
apt-add-repository universe
apt update
apt install -y gnupg2
apt install -y nginx-full
apt install -y apt-transport-https
OpenJDK 8 or OpenJDK 11 must be used. Check Java is installed or not by the below command
java -version
If the Java version is not shown, enter the below command
apt install -y openjdk-8-jre-headless
echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | sudo tee -a /etc/profile
source /etc/profile
Setup hostname using the below command. Please replace your-domain.com to actual your domain name
sudo hostnamectl set-hostname your-domain.com
nano /etc/hosts
In /etc/hosts
file check below lines x.x.x.x is the public address of your server.
127.0.0.1 localhost
x.x.x.x your-domain.com
Save the file and then enter the below command. If ping shows the domain name, then it’s worked.
ping "$(hostname)"
For Ubuntu 18.04, add the Prosody package repository
echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
apt update
The above package add prosody 11, so after installation make sure storage = "memory"
in the file /etc/prosody/conf.avail/your-domain.com.cfg.lua change your-domain.com with your actual domain name.
Add Jitsi Meet package
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
apt update
Enable firewall its option
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
sudo ufw status verbose
apt install jitsi-meet
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
Behind NAT settings – edit below file
nano /etc/jitsi/videobridge/sip-communicator.properties
Add below line to /etc/jitsi/videobridge/sip-communicator.properties
file
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=<Local.IP.Address>
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>
Comment below line to /etc/jitsi/videobridge/sip-communicator.properties
file
org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES
Save the file, and restart JVB
Increase system limit
Edit /etc/systemd/system.conf
and add below lines
DefaultLimitNOFILE=65000
DefaultLimitNPROC=65000
DefaultTasksMax=65000
Check value updated on not run below command
systemctl show --property DefaultLimitNPROC
systemctl show --property DefaultLimitNOFILE
systemctl show --property DefaultTasksMax
Run the below command to update changes
sudo systemctl daemon-reload
sudo systemctl restart jitsi-videobridge2
sudo systemctl status jitsi-videobridge2
q
cat /proc/`cat /var/run/jitsi-videobridge/jitsi-videobridge.pid`/limits