Skip to content

Instantly share code, notes, and snippets.

@angelospanag
Created February 22, 2021 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelospanag/6a805b16adfa469736b8391b0e1a3130 to your computer and use it in GitHub Desktop.
Save angelospanag/6a805b16adfa469736b8391b0e1a3130 to your computer and use it in GitHub Desktop.
Script to install Protonmail on Ubuntu/Debian using a deb file
#!/bin/sh
# Script to install Protonmail on Ubuntu/Debian using a deb file
# Also seen on https://protonmail.com/support/knowledge-base/installing-bridge-linux-deb-file/
# deb filename
DEB_FILENAME="protonmail-bridge_1.6.3-1_amd64.deb"
# Download Protonmail Bridge deb
wget https://protonmail.com/download/bridge/${DEB_FILENAME}
# Download and install gpg key
wget https://protonmail.com/download/bridge_pubkey.gpg
gpg --dearmor --output debsig.gpg bridge_pubkey.gpg
sudo mkdir -p /usr/share/debsig/keyrings/E2C75D68E6234B07
sudo mv debsig.gpg /usr/share/debsig/keyrings/E2C75D68E6234B07
# Download and install policy file
wget https://protonmail.com/download/bridge.pol
sudo mkdir -p /etc/debsig/policies/E2C75D68E6234B07
sudo mv bridge.pol /etc/debsig/policies/E2C75D68E6234B07
# Verify and install Protonmail Bridge
sudo apt install -y debsig-verify
debsig-verify ./${DEB_FILENAME}
if [ $? -ne 0 ]; then
echo "Error, ${DEB_FILENAME} not verified"
else
echo "Success, ${DEB_FILENAME} verified"
sudo apt install -y ./${DEB_FILENAME}
fi
# Cleanup
rm ./bridge_pubkey.gpg
rm ./${DEB_FILENAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment