We are introducing our first Linux VPN command line tool created by ProtonVPN team!
This is a step-by-step guide for installing Linux VPN client tool used on Ubuntu 16.04 LTS.
Link to the Github repository – https://github.com/ProtonVPN/protonvpn-cli
The list of what you will need:
All of the latest updates installed on your Linux repository;
To install packages on different distributions:
For Archlinux/ Manjaro please use :
sudo pacman -S NameOfPackage
For example – sudo pacman -S openvpn
For Solus use:
sudo eopkg install NameOfPackage
For Fedora based:
sudo yum install NameOfPackage
Firstly, let’s start with the setup:
Please open terminal by locating it on your application list or simply pressing CTRL+ALT+T at the same time.
1. Type in:
sudo apt-get install openvpn
Then simply type Y to continue the installation. You will have to do so to install all of the required packages.
2. Proceed installing these packages the same way you installed the first one.
- sudo apt-get install dialog
- sudo apt-get install python
- sudo apt-get install wget
Some of these might be already installed so pay attention if it says that it already exists.
3. Once all of the packages are installed, you’ll have to download the script to your Linux device. Use this command :
sudo wget -O protonvpn-cli.sh https://raw.githubusercontent.com/ProtonVPN/protonvpn-cli/master/protonvpn-cli.sh
4. After downloading the script, launch this command:
sudo chmod +x protonvpn-cli.sh
5. Then install the Linux VPN client by running this command:
sudo ./protonvpn-cli.sh --install
How to use the Linux VPN client:
6. Now the client is installed and ready to use. To initialize the ProtonVPN Linux client, type in this:
sudo protonvpn-cli -init
sudo pvpn -init
7. You will need to enter your OpenVPN username and password which you have to configure on our https://account.protonvpn.com/settings page.
8. After entering the credentials, you will have to select the subscription plan that you have for ProtonVPN. Trial users should select 3) Plus.
IMPORTANT: after your trial expires, you need to reconfigure to 1) Free. To set it up, follow instructions starting from step 6.
9. Now please enter this command line to start connecting to the servers :
sudo protonvpn-cli -connect
sudo pvpn -c
To access the tool menu, type:
sudo protonvpn-cli -m
10. A detailed country list with all of the available ProtonVPN servers for you should appear. Select the server of your preference and click OK.
11. Then select either UDP or TCP protocol to use and click OK:
The connection will be established. You’ve managed to connect to the ProtonVPN servers via the Linux VPN client:
Once you are connected to the VPN client tool for Linux, you can ensure that there are no IP or DNS leaks here.
Closing Terminal window will not disconnect the VPN connection. Use ” sudo protonvpn-cli -disconnect” to close the VPN connection.
Client tool functionality list:
“pvpn” can be used instead of “protonvpn-cli” command when its installed, so for example, pvpn -c is the same as protonvpn-cli -c.
||Initialize ProtonVPN profile on the machine.|
||Select and connect to a ProtonVPN server.|
||Connect to a ProtonVPN server by name.|
||Connect to a random ProtonVPN server.|
||Connect to the previously used ProtonVPN server.|
||Connect to the fastest available ProtonVPN server.|
||Connect to the fastest available P2P ProtonVPN server.|
||Select and connect to a ProtonVPN server by country.|
||Connect to the fastest available server in a specific country.|
||Disconnect the current session.|
||Reconnect to the current server.|
||Print the current public IP address.|
||Print connection status.|