Skip to content

Instantly share code, notes, and snippets.

@AasSuhendar
Last active April 27, 2020 15:46
Show Gist options
  • Save AasSuhendar/40517ee651c28ca40aec18bda3677d9b to your computer and use it in GitHub Desktop.
Save AasSuhendar/40517ee651c28ca40aec18bda3677d9b to your computer and use it in GitHub Desktop.
This is note to setup Jitsi on Ubuntu 18.04

Setup Jitsi for WebRTC Video Conference

Setup Jitsi Meet for WebRTC Video Conference in your own on-premises, cloud, or dedicated servers.

Preparation

OS Preparation

sudo su # escelate privileged to root
apt-get update && apt-get dist-upgrade -y # upgrade OS distribution
apt-get autoremove --purge -y # clean unused packages
apt-get clean # clean unused packages

Install Nginx

*Optional if you install latest jitsi-meet package

apt-get install -y nginx # install nginx
unlink /etc/nginx/sites-enabled/default # unlink default site
systemctl restart nginx # restart service nginx
systemctl enable nginx # enable service nginx

Install NodeJS

curl -sL https://deb.nodesource.com/setup_10.x | bash -e - # get nodesource
apt-get update && apt-get install -y nodejs # install nodejs

Install Java OpenJDK 8 JRE

apt-get update && apt-get install -y openjdk-8-jre-headless # install package

To change the default Java executable, use update-alternatives

update-alternatives --config java

Install Jitsi Meet

Install Jitsi Repository

echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -

Install Jitsi-Meet Packages

apt-get update && apt-get install -y jitsi-meet

Disable Jitsi VideoBridge Service

Execute this if you want use jvb on other machine

systemctl stop jitsi-videobridge jitsi-videobridge2
systemctl disable jitsi-videobridge jitsi-videobridge2

Upgrade Prosody (XMPP Server)

Commonly prosody that installed version 0.10.0 and latest version is 0.11.5 . To get latest version we have to upgrade it.

Install Prosody Repository

echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | tee -a /etc/apt/sources.list
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -

Upgrade Prosody Packages and Check version

apt-get update && apt-get install prosody
prosodyctl about # check version prosody

Restart Prosody Service

systemctl restart prosody
systemctl enable prosody

Configure Prosody

Backup Prosody Config File

cp /etc/prosody/prosody.cfg.lua /etc/prosody/prosody.cfg.lua-backup
vi /etc/prosody/prosody.cfg.lua
--Add following line to expose Prosody to Public
component_interface = "0.0.0.0"
component_port = { 5437 }
network_backend = "epoll"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment