Tool Jitsi

Jitsi Meet

You can support us by donate in the link: https://qntdata.com/qt-donatio

Guide Videos: https://youtu.be/6PSCLwyF_yc

System Requirements

Linux Server Ubuntu 18+

CPU(core): At least 1 Core or more, depending on the number of online users, a more powerful server will be needed

RAM: 2GB

DISK: 25GB

Use root or su root

A domain name or subdomain pointed to a Public IP

Steps to install Jitsi Meet

Step 1: Login SSH to the Server/VPS

To get started with the installation you need to SSH into the server. If you do not know how to SSH into your VPS or Server, you can refer to the following tutorial:

Instructions for logging into Linux VPS with SSH protocol.

Step 2: Set up the system

Before you start, update the server system to the latest version with the following command.

sudo apt-get update -y

sudo apt-get upgrade -y

After your system is updated, please reboot your system to apply the changes. Next, you’ll set up the relevant hostname (in this example I’m using live.azdigi.info). You can do this by running the following commands:

sudo hostnamectl set-hostname live.azdigi.info

exec bash

 

Set up swap

With limited resources, you should set up more swap for better performance. Some VPS server services in Vietnam are mostly pre-configured. If the server you have not set up, set it up as follows.

dd if=/dev/zero of=/mnt/swapfile bs=1024 count=2048k

mkswap /mnt/swapfile

swapon /mnt/swapfile

echo /mnt/swapfile none swap defaults 0 0 >> /etc/fstab

chown root:root /mnt/swapfile 

chmod 0600 /mnt/swapfile

sysctl vm.swappiness=10

 

Firewall Settings

sudo ufw allow OpenSSH

sudo ufw allow http

sudo ufw allow https

sudo ufw allow in 10000:20000/udp

sudo ufw enable

Step 4: Install Java

Next, you will need to install Java to your system. You can install OpenJDK JRE 8 by running the following command:

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

Configure java_home

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

source /etc/profile

root@live:~# java -version

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)

Step 5: Install NGINX as a webserver

Jitsi Meet uses Nginx as a reverse proxy. So you will need to install NGINX on your system. And you can do a quick install with the following command: 

sudo apt install -y nginx

Enable system startup and check status

sudo systemctl start nginx.service

sudo systemctl enable nginx.service

sudo systemctl status nginx.service

Output

root@live:~# sudo systemctl status nginx.service

  • nginx.service – A high performance web server and a reverse proxy server

      Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)

      Active: active (running) since Sun 2021-07-18 04:50:35 UTC; 15s ago

        Docs: man:nginx(8)

    Main PID: 16393 (nginx)

       Tasks: 2 (limit: 19660)

      Memory: 2.5M

      CGroup: /system.slice/nginx.service

              ├─16393 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;

              └─16395 nginx: worker process

Step 6: Install Jitsi Meet

By default, Jitsi Meet is not available in the Ubuntu 18.04 default program repositories. So you will need to add the Jitsi Meet download server to Ubuntu’s program repositories. You can do this by running the following command: 

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

Next, update the repository and install Jitsi Meet with the following command.

sudo apt-get update -y

sudo apt-get install jitsi-meet -y

Install Free Let’s Encrypt SSL

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

Output from deploy-hook command 0000-coturn-certbot-deploy.sh:

 Configuring turnserver

 IMPORTANT NOTES:

 Congratulations! Your certificate and chain have been saved at:

 /etc/letsencrypt/live/live.azdigi.info/fullchain.pem

 Your key file has been saved at:

 /etc/letsencrypt/live/live.azdigi.info/privkey.pem

 Your cert will expire on 2021-10-16. To obtain a new or tweaked

 version of this certificate in the future, simply run certbot

 again. To non-interactively renew all of your certificates, run

 “certbot renew”

 Your account credentials have been saved in your Certbot

 configuration directory at /etc/letsencrypt. You should make a

 secure backup of this folder now. This configuration directory will

 also contain certificates and private keys obtained by Certbot so

 making regular backups of this folder is ideal.

 If you like Certbot, please consider supporting our work by:

 Donating to ISRG / Let’s Encrypt:   https://letsencrypt.org/donate

 Donating to EFF:                    https://eff.org/donate-le 

 Configuring nginx

Step 7: Access to Jitsi Meet

So you have installed Jitsi Meet complete and now you can access and start the first meeting. And if you are following this article by AZDIGI then you have access on port 443. And below is the access path, open your browser and enter the URL as follows.

  • Access on domain name: https://my-domain
  • Access by IP: http://your-server-ip

Step 8: Access the secure meeting room

By default, anyone who knows the domain name or IP address of your Jitsi Meet server will have access to your Jitsi instance and will create the conference normally. And this will cause big problems for your server in many ways. And AZDIGI will guide you through secure meeting room access with a password.

Note: For your safety, do not correct mistakes in the commands, I will add the cp command to backup files for you. In case of error you can recover. And change live.azdigi.info with your domain name in the commands.

  • Edit file your_domain.cfg.lua

This configuration will force username and password validation before allowing the conference room to be created by a new visitor.

cp /etc/prosody/conf.avail/live.azdigi.info.cfg.lua /etc/prosody/conf.avail/live.azdigi.info.cfg.lua.bak

vi /etc/prosody/conf.avail/live.azdigi.info.cfg.lua

 

You find and edit the following line:

……..

     authentication = “anonymous”

 …….

 Thành

 …….

 authentication = “internal_plain”

 …….

Illustration, change authentication = “anonymous” to authentication = “internal_plain”

Next also in this file /etc/prosody/conf.avail/live.azdigi.info.cfg.lua you add the following lines at the end of the file.

This configuration will allow any user to join the pre-built conference room. However, these users are required to have a URL and password to enter the room.

Here, you can add guest before the domain. For example, with live.azdigi.info , you would put guest.live.azdigi.info. Then you need to create these records on DNS to be able to use them.

VirtualHost “guest.live.azdigi.info”

authentication = “anonymous”

c2s_require_encryption = false

  • Edit the file my-domain-config.js

Next, open the file /etc/jitsi/meet/live.azdigi.info-config.js and edit the following:

hosts: {

         // XMPP domain.

         domain: ‘live.azdigi.info’,

anonymousdomain: ‘guest.example.com’,

Fort

anonymousdomain: ‘guest.live.azdigi.info’,

Illustrations

By using guest.your_domain , you will tell Jitsi Meet that you want to use this domain for the Guests user when they log in. Please open the following file and edit.

vi /etc/jitsi/jicofo/sip-communicator.properties

org.jitsi.jicofo.auth.URL=XMPP:live.azdigi.info

This is the configuration for the processing of Jitsi Meet to the local server to serve the user when requested. Your Jitsi Meet is now fully configured, now only need to register a user to be able to create a conference room. Once the room is created, anyone can join without having to register to create an account. All those users only need the room URL and password to log in.

Please use Prosodyctl to perform the registration.

prosodyctl register jitsi-meet.example.com

Eg:

prosodyctl register azdigi live.azdigi.info azdigi@2021

Inside:

  • The login user is: azdigi
  • Domain: live.azdigi.info
  • Password to the room: azdigi@2021

And the last step, please restart the following services

sudo systemctl restart prosody.service

sudo systemctl restart jicofo.service

sudo systemctl restart jitsi-videobridge2.service

 

And then you access to create room will display as follows.

  1. Basic Jitsi Meet User GuideAccess on domain name: https://my-domain

 

Step 1: Go to Jitsi Meet

On your browser, go to Jitsi Meet with the following information.

  • Access on domain name: https://my-domain
  • Access by IP: http://your-server-ip

If you use mobile devices you can Download Jitsi Meet from the app store

Step 2: Create the first meeting room

After having access to Jitsi Meet. Please name the room and select Start Meeting to start.

When asked if you allow microphone with camera or not. Please click Allow to accept.

Step 3: Features in the meeting

There are main features, and I number them with a description for easier understanding.

  1. Enable or disable Mic during calls
  2. Turn Camera on or off during calls
  3. Share your device screen during a call
  4. Live chat frame in the call
  5. This button will indicate when you have an opinion, and raise your hand to speak
  6. See the list of members in the call
  7. This function allows you to adjust the sound quality and the picture frame
  8. Zoom in or out of the screen
  9. Set up meeting room security, set a password for the room
  10. Share online calls to YouTube
  11. Share call audio
  12. Customize the background image behind your camera
  13. Meeting statistics
  14. Personal information settings like (Device, Profile, name, language)
  15. See suggestions for quick shortcuts during calls
  16. Display iframe information for you to embed the link
  17. End call

V. Advanced configuration Jitsi Meet

Just with the above steps, you can use Jitsi Meet comprehensively for meetings. However, if you want to change some advanced configuration such as: Change Language, Logo, favicon, background, resolution, you can do as follows.

1. Change Language

Please open the file config.js and add the following line

vi /etc/jitsi/meet/live.azdigi.info-config.js

defaultLanguage: ‘vi’,

Note: Because the translation language is not very good. So you can open the language configuration file at /usr/share/jitsi-meet/lang/main-vi.json để thay đổi nội dung của tiếng Việt.

2. Change the title

Default title name will be Jitsi Meet. And you can change it by opening the configuration file and editing as follows.

vi /usr/share/jitsi-meet/interface_config.js

Sửa dòng APP_NAME

Result after change.

3. Change Logo

vi /usr/share/jitsi-meet/interface_config.js

 

Here you paste in the url of your logo and favicon, in it

  • DEFAULT_LOGO_URL: url của logo

4. Change Favicon

Open the title.html file and paste in the url of your Favicon file.

vi /usr/share/jitsi-meet/title.html

5. Change the background

To change the background you can use the following commands. And change the link again with your background.

cp /usr/share/jitsi-meet/images/welcome-background.png /usr/share/jitsi-meet/images/welcome-background.png.bak

cd /usr/share/jitsi-meet/images/

wget https://tainguyenwp.azdigi.com/welcome-background.png

Restart the service to apply the changes

/etc/init.d/jicofo restart && /etc/init.d/jitsi-videobridge2 restart && /etc/init.d/prosody restart && systemctl restart nginx

 

Wishing you success.

Buy us some coffee

 

Thank You for your support as we work to give you the best of guides and articles.

top