Description
This is my shell script for installing Jitsi Meet with JWT support on Ubuntu 20.04 LTS.
Script based on Doganbros howto
Script
#!/bin/bash
set -e
VERSION="0.2"
BUILD="0.2.1"
if [[ $EUID -ne 0 ]]; then
echo "This script requires root privileges"
exit 1
fi
source /etc/os-release
if [ "$ID" == "ubuntu" ] && [ "$VERSION_ID" == "20.04" ]; then
echo -e "\n\n"
echo "Installing Jitsi Meet + JWT on Ubuntu 20.04 LTS"
echo -e "\n\n"
sleep 2
else
echo "This script requires Ubuntu 20.04 LTS"
fi
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list
echo -n "Domain Name: "
read DOMAIN
hostnamectl set-hostname $DOMAIN
echo "127.0.0.1 $DOMAIN" >> /etc/hosts
apt update
apt -y install gcc
apt -y install unzip
apt -y install lua5.2
apt-get -y install liblua5.2
apt -y install luarocks
luarocks install basexx
apt -y install libssl1.0-dev
luarocks install luacrypto
mkdir -p ./src
cd ./src
luarocks download lua-cjson
luarocks unpack ./lua-cjson-2.1.0.6-1.src.rock
cd lua-cjson-2.1.0.6-1/lua-cjson
sed -i 's/lua_objlen/lua_rawlen/g' lua_cjson.c
sed -i 's|$(PREFIX)/include|/usr/include/lua5.2|g' Makefile
luarocks make
luarocks install luajwtjitsi
wget https://prosody.im/files/prosody-debian-packages.key -O- | apt-key add -
echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | tee -a /etc/apt/sources.list
apt update
apt -y upgrade
apt -y install prosody
chown root:prosody /etc/prosody/certs/localhost.key
chmod 644 /etc/prosody/certs/localhost.key
cp /etc/prosody/certs/localhost.key /etc/ssl
apt -y install nginx
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
apt update
apt -y install jitsi-meet
apt -y install jitsi-meet-tokens
apt -y install certbot
sed -i 's/\.\/certbot-auto/certbot/g' /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
Configuration
After installing you can finish the configuration with Doganbros howto.
Comments
Post a Comment