Fedora installer for PIA

edited April 2016 in Linux VPN Setup
I made change to the installer for Ubuntu 
And add feature to resolve SElinux and openvpn conflict at line 130.


PIA installer for Fedora

-This script automatically setup Private Interenet Access VPN for Fedora users.

-Fedora has replaced yum package manager with dnf and this script uses dnf.

-This script has not been tested with Eariler edition Fedora. It has been tested on Fedora 22 desktop and Fedora 23 Workstation.

-"drhedberg" reported that the script also works with Opensuse 13.2 by replacing dnf with zypper.

-Featured universal password

Based on the Ubuntu installer from PIA

run

$ git clone https://github.com/shaynewang/piafedora.git

$ cd piafedora

$ chmod +x install_fedora.sh

$ sudo ./install_fedora.sh


https://github.com/shaynewang/piafedora


Comments

  • This also works on fedora 23 workstation. You should update the name or description. Maybe rename the script to just "fedora" and update the readme with versions that it works for.  I wanted to say thanks so much for this. Simple, quick, and works. Much better than manually setting up each connection. I was actually looking at how to change the script to work in fedora, but my fedora experience is just beginning. I've recently switched to fedora/antergos from ubuntu and its cousins. Thanks again.
  • Since this script is basically the same as the ubuntu one, what are the chances of PIA adding it to there Client download section like they have the ubuntu script? Or maybe sticky this thread so other users can find it easily. Thanks again for you contribution.
  • Thank you so much for putting this together!  Works flawlessly on Fedora 23 Workstation Gnome 3.18.

    Much appreciation!
  • edited November 2015
    Great work shaynewang.... I have got this working in Opensuse 13.2 Mate, by editing your file (install_fedora22.sh) and find and replaced dnf with zypper.

    Thanks a lot.

    Edit... Just a note to cd to piafedora not pifedora
  • I just received the notification of the security leak and I'm wondering if I need to do anything with this Fedora installation?

    thanks
  • It works flawlessly on Fedora 23 workstation.
    Thanks a lot for your sharing your hard work, shaynewang.


  • thanks this worked great on fedora 23, the only problem i am having is on previous setup (fedora 20, manually configured open vpn) when vpn failed all internet connections would stop until i restarted vpn or turned off manually.
    After installing as per above on fedora 23 workstation when vpn fails internet continues as open connection.
    Not sure if this right place to ask question but hoping someone has a simple way to kill internet connection on vpn fail.

  • Nice script shaynewang! Thanks. :)
    I've put together some instructions as well (step by step, not fully scripted) in case someone is interested: https://techwords.io/en/configuring-pia-vpn-on-fedora/
  • Will the installer be changed to account for the new certs? Also, would it be possible to change the installer script and remove the 22 from the name? It looks like someone opened up an issue on github asking about the certs also.

    Thanks again for this script, it has helped out so much.
  • Works with F24 KDE as well, although it flags the following error: 

    Copying certificate..
    ./install_fedora22.sh: line 145: semanage: command not found
    Loading servers information..
    Removing previous config files if existing..
    Creating config files..
    Restarting network manager..
    Install successful!

    It works though. Brilliant!
  • Referring to my previous above:

    The selinux error was caused by selinux-policy-devel and policycoreutils-python not being installed. 

    Also, to reinstall I found I had to delete the ca.crt file from /etc/openvpn first.

  • This is working on a fresh install of Fedora 24 for me. I tried using OpenVPN before and it wouldnt connect but this worked quickly and easily. Thank you!
  • Its work in Fedora 25 too. If anyone has use this installer is recomended to check de the new version 1.1 which added the cert rotation.
  • Confirmed working on Fedora 25 as well. Big thumbs up and thank you!
  • It seems to be working on Fedora 26 too. Thanks a million.
  • This worked for me on Fedora-26, too. Thank you very much for this. (◠﹏◠)
  • maybe the script can check for the presense of semanage and skip the line if not present (it's not SELinux) ?

    also might check the contents of /etc/os-release and use dnf if ID is fedora and zypper when ID is opensuse ?
  • Many thanks! Pulled me out of a growing spiral of frustration, lol.
    (works on Fedora 27)
Sign In or Register to comment.