PIA on PI3 Raspbian New Problem

If you’ve got nothing important on it you may as well. I’m not sure what the PIA scripts do so i’m not where where they may have made changed. Assuming its the changes that cased the issue.

If you do id recommend just manually adding a ovpn config rather than the scripts, get it working first, plus you’ll know exactly whats changed where.

You could try fixing you current install, but i probably wouldnt be much help, bit blend to the raspbian setup.

Thanks for the help.
Will do a fresh install tomorrow, then see If i can do a manual install of openvpn

Was doing some looking on the net and tried this.
This was the original problem that I had.

pi@raspberrypi:~ $ ./pia-*-installer-linux.sh
./installer_linux/ruby/ruby.sh: 13: ./installer_linux/ruby/ruby.sh: ./installer_linux/ruby/32/ruby: Exec format error

This is what is in the pia installer

#!/bin/sh -e

PIA_PID=$$
current_dir=cd $(dirname $0) && pwd
installer_dir="${current_dir}/.pia_install.${PIA_PID}"

rm -rf “${installer_dir}”
mkdir -p “${installer_dir}”
cd “${installer_dir}”
sed -e ‘1,/^exit$/d’ “…/$0” | tar xf - --xz
./installer_linux/installer.sh “$@”
cd “${current_dir}”
rm -rf “${installer_dir}”

exit
ý7zXZ

do not know if this can be edited to work.

The problem isnt that the script wont run but that the program itself cant run. Your trying to run a x86 cpu on a arm device

1 Like

Thanks for the info

The vpn is working using this guide

https://www.handmadepixels.co.uk/blog/raspberrypi/pia-with-openvpn-on-raspberrypi/

Is there a script I could make where I can change the location when I want to, right now it is set to US East
would be nice to move it when there is problems or for easy browsing

Was think of a script that would stop the vpn change the location then start the vpn. Problem is my knowledge of linux commands is very very small. Did use google to search did not get any useful info for my knowledge level back.

That way I could make the few that i need place them in a folder and it would be good enough for what I need.

Thanks

This my solution to the problem, would like some input if it could be made better.

Used this site to setup PIA on openvpn.
https://www.handmadepixels.co.uk/blog/raspberrypi/pia-with-openvpn-on-raspberrypi/

Then I changed the files provided by PIA

Just added the line to the bottom of each new location

auth-user-pass login.conf

this is an example of one of the locations

client
dev tun
proto udp
remote us-midwest.privateinternetaccess.com 1198
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server

auth-user-pass
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.rsa.2048.pem
ca ca.rsa.2048.crt
disable-occ
auth-user-pass login.conf

This is my solution to change locations not very pretty, but it works.
If anyone has suggestions on how to make it better that would be great.

sudo killall openvpn

sleep 5s

sudo cp “US Midwest.ovpn” /etc/openvpn/pia.conf

sleep 3s

sudo systemctl start [email protected]

sleep 3s

save this as "USMidwest.sh
used chmod +x USMidwest.sh

now I just open up the folder and double click and the changes are made.
Had to make a .sh file for each location.

Thanks
Google did have the answers just on different web sites