• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to install PIA VPN on UT (Working!)

Scheduled Pinned Locked Moved General
27 Posts 8 Posters 5.8k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Craig
      last edited by 5 Mar 2021, 18:20

      When running the script, you may get a message that the script was not able to write to /etc/openvpn. If so, do this before you execute the script:

      sudo -i
      sudo mount -o remount,rw /
      sudo chmod 777 /etc/openvpn
      exit
      

      After you run the script, set permission back:

      sudo chmod 755 /etc/openvpn
      
      D 1 Reply Last reply 26 Apr 2023, 22:47 Reply Quote 0
      • D Offline
        Daryl
        last edited by 14 Mar 2023, 22:23

        Hi Craig:

        Will this procedure work for an Aquaris M10 FHD?

        Thanks,
        Daryl

        DP

        C 1 Reply Last reply 15 Mar 2023, 00:55 Reply Quote 0
        • C Offline
          Craig @Daryl
          last edited by 15 Mar 2023, 00:55

          @daryl I'm not 100% sure if PIA's VPN script will work with that Aquarius hardware. I have installed and ran it on three: Nexus 4, Nexus 5 and Pixel3a. Here's the current incarnation of the script as I use it and instructions for how to install it.

          https://www.dropbox.com/s/7g0xfiam53ytf61/pia-nm-install.txt
          https://www.dropbox.com/s/dd4oj7dd2o05vv9/pia-nm.sh

          Please post your results and let the community know if it works with your hardware, too.

          1 Reply Last reply Reply Quote 1
          • D Offline
            Daryl
            last edited by 17 Mar 2023, 15:47

            @craig Thanks craig. Your work is remarkable! Way over my head. I'll have a look at it anyway and see what I learn!

            DP

            1 Reply Last reply Reply Quote 0
            • D Offline
              Daryl @wgarcia
              last edited by 17 Mar 2023, 15:55

              @wgarcia Hi wgarcia Yes, I'd very much like to learn the VPN configuration you described! Thanks!

              DP

              W 1 Reply Last reply 23 Mar 2023, 13:02 Reply Quote 0
              • W Offline
                wgarcia @Daryl
                last edited by 23 Mar 2023, 13:02

                @daryl I haven't used my PIA VPN in my Ubuntu Touch current device (Volla Phone) for a while, but I checked and it still works for one of the PIA servers. I cannot make it work for a couple other servers I tried, despite the configuration is exactly the same. I will tell you the one that works and the configuration I use, just in case it is useful for you.

                I have a hidden folder in my device home folder (/home/phablet) called ".privateinternetacces" and I have decompressed there the "zip" file found in this link:

                https://www.privateinternetaccess.com/openvpn/openvpn.zip

                As far as I can tell, I'm not using the configuration files found there, I'm just using the following file for a certificate needed in the VPN settings configuration of my UT device:
                ca.rsa.2048.crt

                Here is the configuration (Settings -> VPN -> add VPN), in the language of my phone, but you can easily figure out the equivalent settings in yours:

                image1.jpg

                To enter the PIA user and password you first have to choose "Type of autentication -> Password". In the screenshot it shows "Certifcate (TLS)" because it changes to that after saving the configuration.

                For the CA Certificate you have to browse to the above mentioned hidden folder and choose the "ca.rsa.2048.crt" file.

                The last line ("Encryption") is configured as "Default". There is an extra line "Data Compression" that is checked in my configuration.

                As I said, with this configuration, I'm able to connect to the PIA VPN server "de-frankfurt.privacy.network", and it works fine, but not to a couple other servers that used to work for me. I'm still investigating why I can only connect to this server.

                C 1 Reply Last reply 24 Mar 2023, 02:24 Reply Quote 0
                • C Offline
                  Craig @wgarcia
                  last edited by 24 Mar 2023, 02:24

                  @wgarcia About six years ago I installed Private Internet Access's OpenVPN script on my Ubuntu Touch device. Over time I noticed certain VPN connections stopped working. PIA had retired or changed some IP addresses for certain VPN locations.

                  I ran a search today and found about 4 pages on PIA's website regarding OpenVPN. Some of the pages have links to support files that no longer work.
                  https://helpdesk.privateinternetaccess.com/kb/openvpn

                  This page appears to be the most recent:
                  https://helpdesk.privateinternetaccess.com/kb/articles/linux-setting-up-manual-openvpn-connection-through-the-terminal

                  The old PIA OpenVPN script from about six years ago had a certain URL in it that allowed it to fetch the latest VPN server IP addresses from the PIA website. A few years ago, PIA began retiring those old servers and released a new Wireguard script. Inside that script, the URL where the new server IP addresses are to be fetched is now different.

                  This may help explain why some PIA VPN server locations don't work.

                  W D 3 Replies Last reply 24 Mar 2023, 09:48 Reply Quote 1
                  • W Offline
                    wgarcia @Craig
                    last edited by 24 Mar 2023, 09:48

                    @craig Thanks!, indeed, I haven't used PIA VPN too much in my UT device the last couple of years, I use it mostly in my computers and TV set. As I said, I didn't check too much, but "de-frankfurt.privacy.network" is still working for me in my UT device.

                    1 Reply Last reply Reply Quote 1
                    • W Offline
                      wgarcia @Craig
                      last edited by 26 Mar 2023, 17:50

                      @craig I tried now with 5 of the servers shown in the configuration files of the updated link you provide, and all work perfectly.

                      1 Reply Last reply Reply Quote 1
                      • D Offline
                        Daryl @wgarcia
                        last edited by 15 Apr 2023, 17:06

                        @wgarcia Hi wgarcia: thanks for this post... that I've found finally... 23 days later. I am very grateful for your work and will study it closely, try it out, and report to the group what works. I can say that the openvpn thing with PIA works on all of my raspberry pis. Not sure if thats relevant, but I thought I'd just offer it. Here on the forum just to establish that it works for something.

                        DP

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Daryl @Craig
                          last edited by 15 Apr 2023, 18:00

                          @Craig I tried the methods you recommend that are at https://helpdesk.privateinternetaccess.com/kb/articles/linux-setting-up-manual-openvpn-connection-through-the-terminal

                          ... I ran into a problem: my phablet is a read-only file system and even if I use sudo I can't get anything downloaded or unzipped in /etc/openvpn

                          Can you suggest a solution, please?

                          Thanks, Darly

                          DP

                          I C 2 Replies Last reply 15 Apr 2023, 21:12 Reply Quote 0
                          • I Offline
                            Ian @Daryl
                            last edited by 15 Apr 2023, 21:12

                            @Daryl You could install the UT Tweak Tool from the Open Store. Open it up, select 'System' from the top left menu, select 'Make Image Writeable' and then select the option you want on the next screen. To avoid problems don't foeget to make the system read only when you have finished. Also be aware that you may have to make the same changes after each update.

                            D 2 Replies Last reply 26 Apr 2023, 16:43 Reply Quote 0
                            • C Offline
                              Craig @Daryl
                              last edited by 15 Apr 2023, 21:38

                              @Daryl That page on the PIA website gives instructions on how to install openvpn on Ubuntu Desktop, not Ubuntu Touch. They also have a simple app for Desktop that works well.

                              For Ubuntu Touch, try what I posted here.

                              That's what works for me with Ubuntu Touch 16.04 stable.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Daryl @Ian
                                last edited by 26 Apr 2023, 16:43

                                @Ian HI Ian:
                                I installed UT Tweek tool. There was no "System" on the left.

                                Me so sad. This would have been a great solution.

                                Daryl

                                DP

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Daryl @Ian
                                  last edited by 26 Apr 2023, 16:45

                                  @Ian Oh. I found it after clicking on the hamburger. I'll try it out and let you know how it goes.

                                  DP

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    Daryl @Craig
                                    last edited by 26 Apr 2023, 22:47

                                    @Craig Hi Craig:
                                    I typed the 4 lines separately, and then tried sudo openvpn us_atlanta.ovpn

                                    Got the error message: Error opening configuratin file: us_atlanta.ovpn

                                    .... us_atlanta.ovpn is definately in the directory I issued the commands in.

                                    DP

                                    C 1 Reply Last reply 26 Apr 2023, 23:04 Reply Quote 0
                                    • C Offline
                                      Craig @Daryl
                                      last edited by 26 Apr 2023, 23:04

                                      @Daryl What is it you are trying to install? And what OS are you trying to install it on?

                                      In a previous post you made it looked like you were taking instructions from the PIA website that was designed for Ubuntu Desktop and trying to install it on Ubuntu Touch.

                                      1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        L-01010
                                        last edited by 2 Jun 2023, 04:20

                                        But the new scripts don't work on UT. One reason is the version of curl available on UT is older. Another reason is write permission problems as their newer scripts don't anticipate ARM architecture. Another reason is how we have to prefix all calls of Libertine installed programs in their script with libertine, which is a pain.

                                        C 1 Reply Last reply 2 Jun 2023, 04:28 Reply Quote 0
                                        • C Offline
                                          Craig @L-01010
                                          last edited by 2 Jun 2023, 04:28

                                          @mamaji77111 Yes, true. I had to address all those issues to get the VPN install script to work again.

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            L-01010
                                            last edited by 12 Jun 2023, 15:25

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post