Difference between revisions of "Jitsi"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://www.vultr.com/docs/how-to-install-jitsi-meet-on-ubuntu-18-04-lts Jitsi Meet is a free and open-source video conferencing service solution packed with variou...")
 
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
 +
More secure, more flexible, and
 +
completely free video conferencing
  
Jitsi Meet is a free and open-source video conferencing service solution packed with various premium features, such as superior sound quality, high-grade encryption and privacy, and universal multi-platform availability. With the help of Jitsi Meet, you can easily set up a stunning video conferencing service of your own.
 
  
One Click Jitsi Server
 
  
Vultr has preinstalled Jitsi servers ready to launch! Deploy a Jitsi Meet server in your customer portal without any installation steps required. The One Click Jitsi server supports your custom domain name, a Let's Encrypt SSL certificate, and it's the best way to install Jitsi.
+
==Prerequisites==
  
Learn more about our One Click Jitsi server, or if you prefer to install your server manually, follow the steps below.
+
Contoh:
Manual Installation
 
  
This tutorial explains the process of establishing a video conferencing service on an Ubuntu 18.04 LTS server instance using Jitsi Meet.
+
* Ubuntu 20.04 LTS x64 server (ada IPv4 address 192.168.0.153)
Prerequisites
+
* user yang bisa sudo
 
+
* domain / hostname yang mengarah ke server tsb (contoh jitsimeet.example.com)
    A fresh Vultr Ubuntu 18.04 LTS x64 server instance with an IPv4 address 203.0.113.1.
 
    A sudo user.
 
    A domain jitsimeet.example.com being pointed to the server instance mentioned above.
 
 
 
Note: When deploying on your own server instance, be sure to replace all example values with your actual ones.
 
  
 
==Step 1: Setup a swap partition==
 
==Step 1: Setup a swap partition==
  
For a machine with 2GB of memory, it's recommended to setup a 2GB (2048M) swap partition in order to improve system performance.
+
Untuk mesin RAM 2GB, setup swap 2GB (2048M) untuk memperbaiki performance.
  
 
  sudo dd if=/dev/zero of=/swapfile count=2048 bs=1M
 
  sudo dd if=/dev/zero of=/swapfile count=2048 bs=1M
Line 32: Line 26:
 
  free -m
 
  free -m
  
Note: If you are using a different server size, the size of the swap partition may vary.
+
==Step 2: Setup hostname & fully qualified domain name (FQDN)==
 
 
==Step 2: Setup the machine's hostname and fully qualified domain name (FQDN)==
 
  
You need to properly setup a hostname and an FQDN for the machine before you can enable HTTPS security by deploying a Let's Encrypt HTTPS certificate.
+
Dibutuhkan untuk request Let's Encrypt HTTPS certificate.
 
 
The following commands will setup a hostname, jitsimeet, and an FQDN, jitsimeet.example.com, for the machine:
 
  
 
  sudo hostnamectl set-hostname jitsimeet
 
  sudo hostnamectl set-hostname jitsimeet
 
  sudo sed -i 's/^127.0.1.1.*$/127.0.1.1 jitsimeet.example.com jitsimeet/g' /etc/hosts
 
  sudo sed -i 's/^127.0.1.1.*$/127.0.1.1 jitsimeet.example.com jitsimeet/g' /etc/hosts
  
Confirm the results:
+
Cek:
  
 
  hostname
 
  hostname
 
  hostname -f
 
  hostname -f
  
==Step 3: Tweak firewall rules for running Jitsi Meet==
+
==Step 3: Set firewall untuk Jitsi Meet==
  
As required by Jitsi Meet, you need to allow OpenSSH, HTTP, and HTTPS traffic, along with inbound UDP traffic on port 10000 through port 20000:
+
Set firewall untuk Jitsi Meet
  
 
  sudo ufw allow OpenSSH
 
  sudo ufw allow OpenSSH
Line 58: Line 48:
 
  sudo ufw enable
 
  sudo ufw enable
  
When you see the prompt Command may disrupt existing ssh connections. Proceed with operation (y|n)?, input y and then press ENTER.
+
Jika ada prompt
 +
Command may disrupt existing ssh connections. Proceed with operation (y|n)? - ketik y dan ENTER.
  
 
==Step 4: Update the system==
 
==Step 4: Update the system==
  
For security and performance purposes, its necessary to update the Ubuntu 18.04 LTS system to the latest status:
+
Sebaiknya
  
 
  sudo apt update
 
  sudo apt update
 
  sudo apt upgrade -y && sudo shutdown -r now
 
  sudo apt upgrade -y && sudo shutdown -r now
  
During the upgrade, you may be informed that the currently installed version of the grub configuration file has been locally modified. Since we are actually not responsible for the modification, use the UP arrow to highlight the install the package maintainer's version option, and then press ENTER.
 
 
After the system reboot, log back in as the same sudo user to move on.
 
  
 
==Step 5: Install OpenJDK Java Runtime Environment (JRE) 8==
 
==Step 5: Install OpenJDK Java Runtime Environment (JRE) 8==
  
Jitsi Meet requires Java Runtime Environment. Install OpenJDK JRE 8:
+
Install OpenJDK JRE 8:
  
 
  sudo apt install -y openjdk-8-jre-headless
 
  sudo apt install -y openjdk-8-jre-headless
  
Having OpenJDK JRE 8 installed, use the following command to verify the result:
+
cek:
  
 
  java -version
 
  java -version
  
The output will be similar to the following:
+
Outputnya kira2:
  
  openjdk version "1.8.0_171"
+
  openjdk version "1.8.0_292"
  OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11)
+
  OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
  OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
+
  OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
  
In addition, you can setup the JAVA_HOME environment variable as follows:
+
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
 
  echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | sudo tee -a /etc/profile
 
  source /etc/profile
 
  source /etc/profile
  
==Step 6: Install the Nginx web server==
+
==Step 6: Install Nginx web server==
  
In order to better serve Jitsi Meet, you can install an Nginx web server before actually installing Jitsi Meet:
+
Install,
  
 
  sudo apt install -y nginx
 
  sudo apt install -y nginx
Line 100: Line 88:
 
  sudo systemctl enable nginx.service
 
  sudo systemctl enable nginx.service
  
Having Nginx installed, you don't need to manually configure it because the Jitsi Meet installer will deal with this job for you later.
 
 
Note: If Nginx or Apache is not in place, the Jitsi Meet installer will automatically install Jetty along with the Jitsi Meet program.
 
  
 
==Step 7: Install Jitsi Meet==
 
==Step 7: Install Jitsi Meet==
  
On a modern Ubuntu or Debian system, you can easily install Jitsi Meet using the official Jitsi deb repo.
+
Update repo Jitsi,
 
 
First setup the Jitsi repository on your system:
 
  
 
  cd
 
  cd
Line 115: Line 98:
 
  sudo apt update -y
 
  sudo apt update -y
  
Then install the full suite of Jitsi Meet:
+
Install Jitsi,
  
 
  sudo apt install -y jitsi-meet
 
  sudo apt install -y jitsi-meet
  
During the installation, when you are asked to provide the hostname of the current installation, type in the FQDN jitsimeet.example.com you setup earlier and then press ENTER.
+
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                             
  
When you are asked about the SSL certificate, highlight the Generate a new self-signed certificate (You will later get a chance to obtain a Let's Encrypt certificate) option and then press ENTER.
 
  
Having Jitsi Meet successfully installed, use the following script to apply for a Let's Encrypt SSL certificate:
+
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
 
  sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
  
During the process, input your email admin@example.com as prompted and then press ENTER. This script will automatically handle any tasks related to the Let's Encrypt SSL certificate.
+
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==
  
Finally, point your favorite web browser to http://jitsimeet.example.com or https://jitsimeet.example.com to access your Jitsi Meet Video conferencing service. Feel free to explore the interface. Clicking the GO button will immediately create a Video conferencing channel for you.
+
Edit
  
 +
sudo nano /etc/hosts
  
 +
192.168.0.153  jitsimeet.example.com
  
 +
Browse ke
  
 +
* http://jitsimeet.example.com
 +
* https://jitsimeet.example.com
  
 
==Referensi==
 
==Referensi==

Latest revision as of 16:12, 17 May 2021

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