-
-
Save pablodz/c5eb29016bb44cfa968bc8adf8ccd074 to your computer and use it in GitHub Desktop.
Install jitsi-desktop 2.10.5550-1 on Ubuntu 20.04 or 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install jitsi-desktop 2.10.5550-1 on Ubuntu 20.04 or 22.04: | |
# ---------------------------------------------------------- | |
# Add missing dependencies and force to run with openjdk-8 | |
[ "$(id -u)" -ne 0 ] && echo "This script must be run as root" && exit 1 | |
function installDependencies() { | |
apt update | |
apt install wget openjdk-8-jre software-properties-common libappindicator1 libdbusmenu-gtk4 gnupg2 ca-certificates lsb-release | |
} | |
function installPackages() { | |
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sh -c 'gpg --dearmor > /etc/apt/trusted.gpg.d/jitsi-key.gpg' | |
apt update | |
mkdir -p /tmp/jitsi-java8 | |
wget -O /tmp/jitsi-java8/jitsi-archive-keyring_1.0.1_all.deb https://download.jitsi.org/stable/jitsi-archive-keyring_1.0.1_all.deb | |
wget -O /tmp/jitsi-java8/jitsi_2.10.5550-1_amd64.deb https://github.com/jitsi/jitsi/releases/download/Jitsi-2.10/jitsi_2.10.5550-1_amd64.deb | |
dpkg -i /tmp/jitsi-java8/jitsi-archive-keyring_1.0.1_all.deb | |
dpkg -i /tmp/jitsi-java8/jitsi_2.10.5550-1_amd64.deb | |
} | |
function createWrapper() { | |
cat << EOF > /usr/bin/jitsi-java8 | |
#!/bin/bash | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH | |
exec /usr/bin/jitsi "$@" | |
EOF | |
chmod +x /usr/bin/jitsi-java8 | |
} | |
function updateDesktop() { | |
sed -i 's/Exec=jitsi %u/Exec=jitsi-java8 %u/g' /usr/share/applications/jitsi.desktop | |
} | |
installDependencies | |
installPackages | |
createWrapper | |
updateDesktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment