Jitsi

From OnnoWiki
Jump to navigation Jump to search

Sumber: https://www.vultr.com/docs/how-to-install-jitsi-meet-on-ubuntu-18-04-lts


More secure, more flexible, and completely free video conferencing


Prerequisites

Contoh:

  • Ubuntu 20.04 LTS x64 server (ada IPv4 address 192.168.0.153)
  • user yang bisa sudo
  • domain / hostname yang mengarah ke server tsb (contoh jitsimeet.example.com)

Step 1: Setup a swap partition

Untuk mesin RAM 2GB, setup swap 2GB (2048M) untuk memperbaiki performance.

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

Step 2: Setup hostname & fully qualified domain name (FQDN)

Dibutuhkan untuk request Let's Encrypt HTTPS certificate.

sudo hostnamectl set-hostname jitsimeet
sudo sed -i 's/^127.0.1.1.*$/127.0.1.1 jitsimeet.example.com jitsimeet/g' /etc/hosts

Cek:

hostname
hostname -f

Step 3: Set firewall untuk Jitsi Meet

Set firewall untuk Jitsi Meet

sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw allow in 10000:20000/udp
sudo ufw enable

Jika ada prompt

Command may disrupt existing ssh connections. Proceed with operation (y|n)? - ketik y dan ENTER.

Step 4: Update the system

Sebaiknya

sudo apt update
sudo apt upgrade -y && sudo shutdown -r now


Step 5: Install OpenJDK Java Runtime Environment (JRE) 8

Install OpenJDK JRE 8:

sudo apt install -y openjdk-8-jre-headless

cek:

java -version

Outputnya kira2:

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

Jika di perlukan , kita bisa tambahkan JAVA_HOME environment variable:

echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | sudo tee -a /etc/profile
source /etc/profile

Step 6: Install Nginx web server

Install,

sudo apt install -y nginx
sudo systemctl start nginx.service
sudo systemctl enable nginx.service


Step 7: Install Jitsi Meet

Update repo Jitsi,

cd
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
sudo apt update -y

Install Jitsi,

sudo apt install -y jitsi-meet

Isi pertanyaan:

  • hostname - jitsimeet.example.com.
  • SSL certificate - Generate a new self-signed certificate.

Sertifikat akan di simpan di

/etc/jitsi/meet/--domain.name--.key 
/etc/jitsi/meet/--domain.name--.crt                              


Jika di operasikan di Internet yang besar, kita butuh sertifikat dari CA, seperti Let's Encrypt. Ini bisa di peroleh menggunakan script:

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

Kita perlu memasukan email admin, misalnya admin@example.com

Jalankan Jitsi Meeting

Restart

/etc/init.d/jitsi-videobridge2 restart
/etc/init.d/jicofo restart


Di sisi Client

Edit

sudo nano /etc/hosts
192.168.0.153   jitsimeet.example.com

Browse ke

Referensi

Pranala Menarik