A message to the Proton Team – WE SHOULDN’T HAVE TO DO THIS! MAKE THE LINUX GUI BETTER, PLEASE!
Linux users can use the official CLI tool to make some advanced changes like changing the default connection protocol, turning on alternative routing, custom DNS etc.
The CLI tool is installed automatically when you install the GUI. You can also install the CLI only.
To turn on the VPN Accelerator, open up your terminal and use this command:
protonvpn-cli config --vpn-accelerator enable
Use this command for more configuration options:
protonvpn-cli config --help
Setting up auto-connect at boot
The following method is tested on Debian 11 with Xfce, Fedora 38 Workstation with Gnome and Manjaro 22.1.1 with KDE.
Go to the autostart folder in your home directory which contains all your application shortcuts that start immediately after login:
cd ~/.config/autostart
Create a new file:
nano pvpn.desktop
Paste the following:
[Desktop Entry]
Exec=protonvpn-cli c -f
Name=ProtonVPN Autoconnect
Comment=Autoconnect to the fastest server
Type=Application
Icon=protonvpn-logo
Change the “Exec” value according to your needs. For example, use
protonvpn-cli c --cc DE -p TCP
to connect to the fastest server in Germany using the TCP protocol. Save the file by hitting Ctrl + X, then Y, and then Enter.
Test this by logging out and then logging back in. Or just restart the whole system. If everything went perfectly, you should be automatically connected to the VPN when you log in.
If due to some reason you are not automatically connected, change the “Exec” value to:
Exec=bash -c "sleep 10 && protonvpn-cli c -f"
This will delay the command execution by ten seconds.
For more configuration options or help regarding installing and using only the CLI tool, read my blog post.
I hope this helps.