Skip to content

Instantly share code, notes, and snippets.

@booniepepper
Last active October 13, 2023 19:57
Show Gist options
  • Save booniepepper/63394c1c37236e473a6b2d58bb6abf3a to your computer and use it in GitHub Desktop.
Save booniepepper/63394c1c37236e473a6b2d58bb6abf3a to your computer and use it in GitHub Desktop.
Install protonmail-bridge on Void (and other) Linux distro

Official installation instructions from Proton are here:


Disclaimers:

  • As of writing, using the Proton Mail Bridge is only supported for users with a paid account.
  • This guide will probably work out of the box for many users. If it doesn't work for you, check that you have the necessary dependencies. (They'll be listed in output of the example script)

For Linux, there are downloads for rpm, deb, and PKGBUILD installs. If you are not on a system that uses packages like these (I.e. not Red Hat, CentOS, Debian, Ubuntu, Arch, or some derivative distro) then the following instructions might help. It worked for me on Void Linux.

Here are some example instructions (tested in Bash but I believe should work on any POSIX shell) that will download and unpack the application:

cd "$(mktemp -d)"

echo "=== download ==="
echo "Downloading to $PWD"
wget https://proton.me/download/bridge/PKGBUILD
. PKGBUILD

echo "=== INFO: dependencies ==="
echo "${depends[@]}"
echo "=== INFO: optional dependencies ==="
echo "${optdepends[@]}"

echo "=== unpack ==="
wget "$source"
ar x protonmail-bridge*.deb
tar -xf data.tar.gz
echo "Unpacked at $PWD/usr/"

If you want to YOLO install it to your system, then while in the same directory:

sudo cp -av usr/* /usr/

Also consider installing it locally, like in ~/.local. (This assumes you will put ~/.local/bin on PATH)

cp -av usr/* "$HOME/.local/"

Now you can launch it with protonmail-bridge -- good luck!

(I also had to install gnome-keyring, you might have to install some dependencies too)

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