Skip to content

Instantly share code, notes, and snippets.

@joker-x
Last active November 10, 2023 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save joker-x/55bc16d4f8066e4a4eb9dff3873a423f to your computer and use it in GitHub Desktop.
Save joker-x/55bc16d4f8066e4a4eb9dff3873a423f to your computer and use it in GitHub Desktop.
Install jitsi-desktop 2.10.5550-1 on Ubuntu 20.04, 21.10 or 22.04
#!/bin/bash
# Install jitsi-desktop 2.10.5550-1
# Tested on:
# - Ubuntu 20.04, 21.10 and 22.04
# - Elementary OS 6.1
# ----------------------------------------------------------
# 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
@pablodz
Copy link

pablodz commented Jun 9, 2022

it works

@muctarr-rahim
Copy link

Awesome it works. Thanks very much @joker-x

@joker-x
Copy link
Author

joker-x commented Jun 24, 2022

Can you write the linux distribution version where it works? @pablodz @muctarr-rahim
This script must works in other version of Ubuntu and maybe in Debian too, but i have not test it.

Thanks a lot!

@pablodz
Copy link

pablodz commented Jun 24, 2022

Ubuntu 21.10+ without problems

@joker-x
Copy link
Author

joker-x commented Jun 27, 2022

Ubuntu 21.10+ without problems

Added, thanks!

@jvegani
Copy link

jvegani commented Jul 22, 2022

Thank you, It's worked
elementary OS 6.1 Jólnir (Built on Ubuntu 20.04.3 LTS) / Linux 5.15.0-41-generic

@joker-x
Copy link
Author

joker-x commented Jul 23, 2022

Thank you, It's worked elementary OS 6.1 Jólnir (Built on Ubuntu 20.04.3 LTS) / Linux 5.15.0-41-generic

Añadido! Muchas gracias :)

@XavierPachecoAmbiser
Copy link

sudo bash install-jitsi-desktop.bash

@dah-HUB
Copy link

dah-HUB commented Oct 23, 2022

Working, Thx

@sjatkins
Copy link

Nope
/usr/bin/jitsi: line 43: /usr/share/jitsi/lib/felix.jar:/usr/share/jitsi/sc-bundles/dnsjava.jar:/usr/share/jitsi/sc-bundles/sc-launcher.jar:/usr/share/jitsi/sc-bundles/util.jar:/usr/share/jitsi/lib: No such file or directory
➜ Downloads ls /usr/share/jitsi

@ortegoscar
Copy link

Installed in Elementary OS 7 Horus, it works fine, thanks!

@cbzittoun
Copy link

Works on Linux Mint 21.1, kernel 6.3.1-060301-generic, thanks a lot.

@ericles-adekz
Copy link

Thanks, it works fine, thank you so much

@jorgenei
Copy link

Perfect. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment