PIA on Ubuntu 17.04
I've been using the native PIA software for a while on Ubuntu. Yesterday I did a clean install of Ubuntu 17.04 and PIA was installed without any problem, but it doesn't connect. It keeps on "connecting". Let's see if someone knows which the problem is.
Comments
1. tried to connect to more than one server or not?
2. include log information without which there is no reading your mind nor divining what your system is doing.
2. Where can I find the log information?
My first thought was that since Ubuntu 17.04 was release just some days ago, maybe the software is not compatible with it.
if you haven't already, get the collection of PIA-prepared configuration files. Unzip them in a convenient directory.
quick way to test and generate some log information is to be sure you have normal (no VPN) network connectivity, then open a terminal and issue the command:
sudo openvpn --config /path/to/convenient/directory/LocationNameOfServer.ovpn --verb 3
(you will need to choose one of the ovpn files from the unzipped collection)
you will be prompted for your PIA username and password. Log information will be generated. You can paste it at pastebin.com and then post the link here.
https://www.privateinternetaccess.com/pages/client-support/ubuntu-openvpn
Actually, that was after trying following this:
https://askubuntu.com/questions/534717/installing-privateinternetaccess-on-ubuntu-14-04-lts
(my normal install routine)
and then this:
https://www.privateinternetaccess.com/installer/download_installer_linux
so I'm not sure exactly what combo of everything works. Next time I'd try the 1st link and then follow up with the rest.
Sorry for not having an exact solution but with a little fiddling you can probably get it to work...
sudo openvpn --config /path/to/convenient/directory/LocationNameOfServer.ovpn --script-security 2 --up /etc/openvpn/update-resolv-conf --down /etc/openvpn/update-resolv-conf --verb 3
Without the additional parameters, the resolv.conf file won't be updated when the VPN is brought up or taken down.
I guess it will work for me in 17.04 but I have to go to the Network settings and I don't think PIA meant for the app to do what it does in my case. To clarify, it only happens with my 17.04 install - and I am unsure why. I followed the most recent instructions I could find - on PIA site and followed as many posts that confirmed this procedure. VPN works for me, in general, also, in Ubuntu 17.04. I'm using the Gnome edition.
NOTE: You only have to follow the first section to get it working, ie move the directory. Here is how... From a Terminal type the following, changing "your_username" to your username, obviously enough.
https://www.privateinternetaccess.com/forum/discussion/22098/guide-pia-client-installation-on-ubuntu-system-with-encrypted-home-folder-ecryptfs#latest
JoeyK
https://helpdesk.privateinternetaccess.com/hc/en-us/articles/227831828-Installing-the-PIA-app-on-Linux-with-encrypted-home-directories
It doesn't work. The /opt/ is a regular directory (?) and not in the root partition / directory. Not sure what I'm talking about, I guess. Anyway, all messed up now. I would try Joey's solution - I think I understand it sufficiently but don't know how to try it now...since I don't comprehend 100% - I understand that you need the root privileges and because of the encryption...
Nevermind... :-(
https://askubuntu.com/questions/818694/pia-client-installation-on-ubuntu-system-with-encrypted-home-folder-ecryptfs
https://helpdesk.privateinternetaccess.com/hc/en-us/articles/227831828-Installing-the-PIA-app-on-Linux-with-encrypted-home-directories
I tried the 2nd one down but nothing worked. I then removed all the PIA config files.... using these commands here:
https://helpdesk.privateinternetaccess.com/hc/en-us/articles/232054147-How-can-I-uninstall-reinstall-your-application-on-Linux-
and tried from scratch (i.e. again). To no avail... I want to know what changed from the app working in Ubuntu 16.04 when I first tried (the procedure) to it not working at all in Ubuntu 17.04 and the changes I mentioned above.
I just don't know enough to recognize what is going on and what the difference is (i.e. the change in the way the app gets configured).
https://www.privateinternetaccess.com/forum/discussion/comment/46741/#Comment_46741
sudo apt-get install net-tools
That installs ifconfig. Now try to connect.
This works perfectly.
Ubuntu 17.04 - Gnome
can someone confirm what value the envar XDG_CURRENT_DESKTOP has before messing around with it?
(in Terminal, type echo $XDG_CURRENT_DESKTOP and report what you see)
Andrew
1. Move pia_manager to /opt/. This is required if you have encrypted your home directory. It might not be required in other scenarios.
sudo mv ~/.pia_manager /opt/pia_manager
ln -s /opt/pia_manager ~/.pia_manager
2. Install net-tools.
sudo apt-get install net-tools
3. Add XDG_CURRENT_DESKTOP=Unity to run.sh.
gedit ~/.pia_manager/pia_manager/run.sh
Your run.sh should look like this:
4. Done! Maybe reboot.
Thank you!
I had upgraded Ubuntu 1610 to 17.04 and while the pia (v7.1) process worked, I had no menu icon to start/stop - and had to killl the related processes manually to stop the PIA service. By simply adding:
XDG_CURRENT_DESKTOP=Unity to the run.sh script, it now works as it did. Thanks!
XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP/:*/}
this statement should continue to function on the day when the envar XDG_CURRENT_DESKTOP changes (again).
With the steps mentioned above and this library it works!
The solution above worked for me with installer v. 72.
With installer v.74, the workaround is no longer necessary for me, and PIA installs out of the box.
sudo apt-get install network-manager-l2tp
restarted ubuntu however douing this should work as well:
systemctl restart network-manager
jesus nearly didnt bother posting a solution with all the fucking captchas these days.