PiavpnShell scripts for managing VPN connections of PIA (Private Internet Access) from the command line DescriptionThe main script is piavpn.sh. It can be used in both interactive and command line mode. PrerequisitesOptional: figlet' which you can install from your repo (sudo apt-get install figlet`) and simply serves for a nicer output; still it is optional.For the nmcli (network manager's command line interface) to be able to handle your PIA connections, you need to edit the corresponding PIA files under /etc/NetworkManager/system-connections/. For details on what to do to enable each region so it is managable with the piavpn.sh script, please read: Command line modeAccepts the following command line arguments (only one at a time):.l -list lists the PIA regions activated for nmcli. For details on doing this, read.g -geolocation prints where PIA thinks your IP is located.s -state prints your current PIA vpn endpoint.u -up start vpn connection to. Valid 's are those returned running the piavpn.sh with the -l and should be typed between quotes e.g.
Want to Run command prompt as Administrator. You can open an elevated command prompt in many ways. In this article, I am going to show you how to Run command prompt as Administrator in Windows 7, Vista, 8, 8.1 and 10. When Should I Run Command Prompt as Administrator? The command prompt is a place.
Sudo./piavpn.sh -u 'PIA - Sweden'.k -kill terminates the currently active vpn connection (if one is active)Interactive modeJust run sudo./piavpn.sh and you will get basic information about the currently active vpn connection and a small menu to terminate a vpn connection or to start a new one. Other scriptsIndependently you can use the other scripts to perform specific functions (script names are self explanatory).