From 965e36af1fe29c60a01664745e051fe84cd8bcc0 Mon Sep 17 00:00:00 2001 From: Ryan Prior Date: Wed, 27 May 2020 22:37:14 -0500 Subject: [PATCH 1/2] Adds instructions for installing, uninstalling, updating using Guix --- README.md | 7 +++++++ USAGE.md | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 8d48092..cf49b74 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ For more detailed information on installing, updating and uninstalling, please v For the following Linux distribution(s), install the official `protonvpn-cli` package: +#### Guix + +```sh +guix install protonvpn-cli +``` + #### Fedora ```sh @@ -68,6 +74,7 @@ Depending on your distribution, run the appropriate following command to install |Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y openvpn dialog python3-pip python3-setuptools`| |OpenSUSE/SLES | `sudo zypper in -y openvpn dialog python3-pip python3-setuptools` | |Arch Linux/Manjaro | `sudo pacman -S openvpn dialog python-pip python-setuptools` | +|Guix | `guix environment protonvpn-cli` | #### Installing ProtonVPN-CLI diff --git a/USAGE.md b/USAGE.md index d1e8733..6318acb 100644 --- a/USAGE.md +++ b/USAGE.md @@ -8,6 +8,7 @@ This document provides an extensive guide on how to install and use ProtonVPN-CL - [Table of Contents](#table-of-contents) - [Installation & Updating](#installation--updating) - [Installing from distribution repositories](#installing-from-distribution-repositories) + - [Guix](#guix) - [Fedora](#fedora) - [CentOS & RHEL](#centos--rhel) - [Installing from PyPI](#installing-from-pypi) @@ -43,6 +44,12 @@ This document provides an extensive guide on how to install and use ProtonVPN-CL For the following Linux distribution(s), install the official `protonvpn-cli` package: +#### Guix + +```sh +guix install protonvpn-cli +``` + #### Fedora ```sh @@ -85,6 +92,7 @@ Depending on your distribution, run the appropriate following command to install |Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y openvpn dialog python3-pip python3-setuptools`| |OpenSUSE/SLES | `sudo zypper in -y openvpn dialog python3-pip python3-setuptools` | |Arch Linux/Manjaro | `sudo pacman -S openvpn dialog python-pip python-setuptools` | +|Guix | `guix environment protonvpn-cli` | #### Installing ProtonVPN-CLI From 6a992a3298c45ff17b558cf1d40f91d515277628 Mon Sep 17 00:00:00 2001 From: Clem Dep Date: Fri, 12 Jun 2020 10:14:53 -0400 Subject: [PATCH 2/2] Updated autoconnect setup for encrypted home dir - Added the steps in USAGE.md necessary to set up autoconnect on systems with encrypted home directories --- USAGE.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/USAGE.md b/USAGE.md index 6318acb..33e0d0d 100644 --- a/USAGE.md +++ b/USAGE.md @@ -502,3 +502,18 @@ Systemd is the current init system of most major Linux distributions. This guide `sudo systemctl enable protonvpn-autoconnect` Now ProtonVPN-CLI should connect automatically when you boot up your system. + +#### Additional steps for systems with encrypted home directory + +Because ProtonVPN-CLI can not access encrypted home directories before the user is logged in, setting up auto-connect on systems with encrypted home directories requires a few more steps. + +6. Initialize your ProtonVPN profile as root by running: + ```sh + su + protonvpn init + ``` + If you have not set a root password (it is not set by default on most Ubuntu-based distributions) you may run `sudo passwd root` and set the password before running `su`. + +7. Open the `/etc/systemd/system/protonvpn-autoconnect.service` file created above and remove the `Environment=SUDO_USER=user` line. + +*Note: if the VPN connection drops, you will need to run `su` then `protonvpn r` to reconnect as just `sudo protonvpn r` will not take into account the connection started by root which will cause the reconnection to fail.*