Set Up VPN on Raspberry Pi

Written by: Dmitry_Eltechs

VPN (Virtual Private Network) helps you encrypt your connection and browse the Internet anonymously with a hidden IP to protect your privacy. And you would probably want to set up VPN on your Raspberry Pi to protect your privacy while surfing the Internet.

There are companies offering ready-to-use VPN services. They provide you with anonymous IP and encrypt your connection by routing your traffic through their servers. Unfortunately, many of VPN services aren’t available for Raspberry Pi. But ExaGear Desktop can help you with that.

Today we’ll tell you about Private Internet Access VPN Service. Although PIA doesn’t have an installer for Raspberry Pi you can use PIA and set up VPN on your RPi with the help of ExaGear Desktop. Below is a simple instruction on how to do that.

P.S.: you might also want to know how to run Google Chrome on Raspberry Pi

 

Raspberry Pi test stand configuration

Model

Raspberry Pi 2 Model B

Raspberry Pi 3

Frequency

1000 MHz

1200 MHz

Memory

1 GB RAM

1 GB RAM

Operating System

Raspbian Jessie from November 2015

Raspbian Jessie from May 2016

Software

Private Internet Access for Linux

Eltechs ExaGear Desktop for Raspberry Pi 2

Private Internet Access for Linux

Eltechs ExaGear Desktop for Raspberry Pi 3

Install ExaGear Desktop

1. Put ExaGear Desktop archive with installation packages and ExaGear Desktop license key in the same folder. Open Terminal (command line), move to this folder and unpack the archive by entering the following command:

$ tar -xvzpf exagear-desktop-rpi3.tar.gz

2. Install and activate ExaGear by running install-exagear.sh script:

$ sudo ./install-exagear.sh

That’s it.

Launch guest x86 system

3. Enter the guest x86 system by typing the following command:

$ exagear
Starting the shell in the guest image /opt/exagear/images/debian-8

You’re in x86 environment that can be checked by running the ‘arch’ command:

$ arch
i686

4. It is recommended to update apt-get repositories on the first launch of the guest system:

$ sudo apt-get update

Install Private Internet Access

5. Download Private Internet Access installer for Linux from the official site https://www.privateinternetaccess.com/installer/download_installer_linux using browser.

6. Unpack the downloaded archive in Terminal inside the guest system:

$ tar -xzvf Downloads/pia-*-installer-linux.tar.gz

7. Run Private Internet Access installer:

$ ./pia-*-installer-linux.sh

8. Install libraries required for PIA:

$ sudo apt-get install libnss3 libgconf-2-4 libasound2 libxtst6

Set up VPN

9. Run PIA by clicking on launcher in Menu -> Other -> Private Internet Access and set up VPN.

Your Raspberry Pi protected  by PIA VPN

Final notes

This way you can set up VPN not only on Raspberry Pi 2 or Raspberry Pi 3 but also on another ARM-based device such as Odroid, Banana Pi, Beagleboard, Cubox, Jetson, Cubieboard etc. ExaGear Desktop supports almost all ARM devices and you can run PIA VPN service on any of them.

It is worth noting that with ExaGear Desktop you can run practically any x86 app on Raspberry Pi and other ARM-based devices.

Get my ExaGear Desktop

the original article is Set Up VPN on Raspberry Pi

Leave a Reply