Setup PIA VPN on Cooker or ROME (updated for 2023)

This procedure updated for 2023 since the way things look in NetworkManager (aka: Connectiions - SystemSettings) has changed.

To do this you will need an account at PIA VPN and there is a fee for that.

Select “Download VPN for Linux” here.

Next we need to download the openvpn files from here. I used the 3rd entry OPENVPN CONFIGURATION FILES (STRONG).

In folder where you downloaded these you need to make the first thing you downloaded executable like this:

$ sudo chmod +x

Next install the .run file as user like this:

$ ./

You will see a window with an error:

Don’t worry, that is normal for this installation. Exit that window and we’ll fix that.

Next we want to copy the installer for the ovpn files to /etc/openvpn:

$ sudo cp /etc/openvpn

Then I list several steps here:

$ cd /etc/openvpn

$ sudo unzip

$ sudo rm

Now go to the network icon in your system tray click on it and click on the circle icon at top right to open “Configure Network Connections”. Click on the + sign and we shall create something. Scroll down until you find “VPN Connections” under that find “OpenVPN” and select “create”. That opens this window:

You can use any name you wish under ‘Connection name’. Under ‘Gateway’ you enter one of the .ovpn entries in /etc/openvpn. I used one relativly close to my physical location.

Next in the “CA Certivicate” line navigate again to /etc/openvpn and fine the .crt file and select that.

Next in the same window click"Advanced". Under “General” tab select “Use custom gateway port” and set that to 1197.

Next under “Security” tab for Cipher select “AES-256-CBC” then for “HMAC Authentication” select “SHA-256”.

Select OK to save the Advanced settings. Select Save to create our VPN Connection.

Now in Konsole to open and start this connection:

cd /opt/piavpn/bin/
sudo ./pia-client

You will see a window that offers a quick tour, I recommend you do that, and then login with your PIA VPN account user name and password. (You will need to start the VPN from terminal every time you login.)

Under “Quick Connect” you will see some flags. Each one of those will change your location and IP address. For more choices where you see “VPN Server” select the >. I selected the Panama flag for this test.

Now to check if this is working open a browser and go to

My Public IPv6 is: Not Detected >>> because my IP provider does not have that.

One can create a script to make starting PIA VPN a little easier. I put this in /home/<your_user_name.

$ nano

In that put:

#!/bin/bash -ev
cd /opt/piavpn/bin
./pia-client >/dev/null 2>&1 &

Select Ctrl>O to write the file and Ctrl>X to close it. Now when you login open terminal and:

$ sudo sh

(You will need to start the VPN from terminal every time you login.)

Credit to user @clfitz for the setup part of this. Credit user @peter-power-594 for the start up instruction and the script for