Set Up VPN on Raspberry Pi

Step-by-step instruction to set up PIA VPN on Raspberry Pi
using ExaGear Desktop

Raspberry Pi with VPN on it can provide you with a stable and fast private network connection with the high level of mobility. How does it all work?

VPN ( or 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


Raspberry Pi 2 Model B

Raspberry Pi 3


1000 MHz

1200 MHz




Operating System

Raspbian Jessie from November 2015

Raspbian Jessie from May 2016


Private Internet Access for Linux

Eltechs ExaGear Desktop for Raspberry Pi 2

Private Internet Access for Linux

Eltechs ExaGear Desktop for Raspberry Pi 3

More information about Raspberry Pi models and the latest version of Jessie you can get on Raspberry Pi foundation official website.

VPN setup instruction

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 script:

$ sudo ./

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

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 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-*

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.

VPN client and router working on Raspberry Pi

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

Also on Eltechs

Virtual machine for Rasberry Pi - ExaGear Desktop

Virtual machines for Raspberry Pi

Choose the best virtual machine for your Raspberry Pi or any other ARM device comparing ExaGear and its alternatives

TeamSpeak 3 Server on Raspberry Pi

Build a TeamSpeak 3 Server on Raspberry Pi

In this post, we will tell you how to setup TeamSpeak 3 Server on Raspberry Pi with ExaGear Desktop which allows running any x86 apps on ARM mini PCs.

Microsoft Dotnet Framework on Raspberry Pi

Run MS .NET Framework 4.5 on Raspberry Pi

Set and run .NET Framework on Raspberry Pi for any specific reason. Step-by-step detailed guide.

Run Wine on Raspberry Pi

Wine on Raspberry Pi

Detailed instruction on running a Wine app on any Raspberry Pi (or other ARM) to port different x86 apps on Raspbian

Get you gaming experience beyond RetroPie level

Gaming Beyond RetroPie

Run iconic PC games like Arcanum, Disciples II and Fallout on RPi with Exagear and improve your device gaming level beyond Retropie.

How to turn Raspberry Pi into gaming emulator device

Raspberry Pi Gaming emulator

A detailed guide on how to make your Raspberry Pi a powerful gaming emulator and run any iconic and nostalgic PC games on Raspbian (or any other ARM).

ExaGear is registered trademark of Eltechs, Inc. Raspberry Pi is a trademark of the Raspberry Pi Foundation. Other trademarks and product names are the property of their respective owners.