raspberry pi devices

Need a VPN for Raspberry Pi?

Get ExpressVPN Now
refer a friend

Love ExpressVPN? Want a free month?

Refer a Friend Now

This tutorial will show you how to set up the ExpressVPN Linux app on Raspberry Pi. ExpressVPN is compatible with Raspberry Pi 2 and newer models using Raspbian (32-bit).

Note: If you prefer to control the ExpressVPN Linux app with a graphical user interface (GUI), you can do so with the ExpressVPN browser extension for Chrome or Firefox. Install the browser extension after setting up the app.

Jump to…

1. Download the installer
2. Install and activate the app
3. Connect to a VPN server location
Disconnect from a VPN server location
Choose a different VPN server location
Switch to a different VPN protocol
Open the manual
Use the autocomplete feature
Use the ExpressVPN browser extension
Uninstall your app
Troubleshoot your connection


Download the installer

On the ExpressVPN setup page, enter your ExpressVPN credentials. Click Sign In.

On the right, select Raspbian 32-bit. Click Download.

Click “Download.”

You will also see your activation code below.

Keep this browser window open. You will need it for the setup later.

Optional: Learn about downloading the PGP key and verifying the signature.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


2. Install and activate the app

Install the app

Open Terminal. Run:

cd ~/Downloads/

Then run:

sudo dpkg -i [installer filename]

Run the sudo command to install the installer file.

The installation will begin.

Note: If you see the error message, “Cannot connect to expressvpn daemon,” enter the following command to restart ExpressVPN:

sudo service expressvpn restart

Activate the app

In the Terminal window, run:

expressvpn activate

Run the sudo command to activate ExpressVPN.

Paste the activation code you found earlier. Note that the code won’t appear on the screen. Hit Enter.

You will be notified when the app has been activated.

You can help improve ExpressVPN by sharing anonymized diagnostic reports. Enter Y to accept or n to decline.

If you want to opt out of sending diagnostics to ExpressVPN in the future, run:

expressvpn preferences set send_diagnostics false

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


3. Connect to a VPN server location

In the Terminal window, run:

expressvpn connect

Run “expressvpn connect” to connect to a VPN server location.

If you are connecting for the first time, ExpressVPN will use the Smart Location feature to select a server location, which is recommended to you based on factors such as speed and proximity.

If this is not your first time connecting, ExpressVPN will connect to the server location you were most recently connected to.

Once you are successfully connected, you will see the “Connected to…” message.

Note: A single ExpressVPN subscription can be used simultaneously on five devices, regardless of platform. If you try to use more than five devices simultaneously on one subscription, you will see a message that says, “You’ve exceeded ExpressVPN’s device usage limit for this subscription.”

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Disconnect from a VPN server location

To disconnect from a server location, run:

expressvpn disconnect

You will be notified when the app has been disconnected.

You will be notified when the app has been disconnected.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Connect to a different VPN server location

Note: Before connecting to a different server location, you must disconnect from your current server location.

To find a list of recommended locations to connect to, run:

expressvpn list

By default, ExpressVPN will suggest the location that provides the most optimal experience for you, called Smart Location, at the top of the list.

After running “expressvpn list,” you will see a list of recommended locations to connect to.

Connect to a specific country

To connect to a specific country, run:

expressvpn connect [COUNTRY]

For example, to connect to Germany, run:

expressvpn connect Germany

ExpressVPN will select a server location in Germany that provides the most optimal experience for you.

Connect to a specific server location

To connect to a specific server location, run:
expressvpn connect “[LOCATION]”

or
expressvpn connect [ALIAS]

For example, to connect to the U.S.’s Santa Clara server, run:

expressvpn connect "USA - Santa Clara"

or

expressvpn connect ussc

Connect to Smart Location

To connect to the Smart Location:

expressvpn connect smart

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Switch to a different VPN protocol

VPN protocols are the methods by which your device connects to a VPN server. Switching to a different protocol can help you achieve faster connection speeds.

The ExpressVPN app for Linux uses the OpenVPN protocol. With OpenVPN, you can switch between the TCP or UDP protocols. By default, ExpressVPN will automatically pick the best protocol for you.

To switch to TCP, run:

expressvpn protocol tcp

To switch to UDP, run:

expressvpn protocol udp

You will see the message, “Protocol changed.”

You will see the message: “Protocol changed.”

If you want ExpressVPN to automatically select the optimal protocol, run:

expressvpn protocol auto

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Open the manual

To view a full list of the ExpressVPN app’s functions, run:

man expressvpn

You will see the different commands listed there.

Run “man expressvpn” to see a list of commands.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Use the autocomplete feature

After typing a command, hit the tab key twice to see a list of available options.

For example, type:

expressvpn protocol

Then hit the tab key twice. This will list all the available protocols.

After typing a command, hit the tab key twice to see a list of available options.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Use the ExpressVPN browser extension

If you prefer to control the ExpressVPN Linux app with a graphical user interface (GUI), you can do so with the ExpressVPN browser extension for Chrome or Firefox.

Note: To use the browser extension, make sure to download and activate the ExpressVPN Linux app (Version 2.0 or newer) first.

To get the ExpressVPN browser extension, run one of the following commands:
expressvpn install-firefox-extension
expressvpn install-chrome-extension

Run command to install the ExpressVPN browser extension.

This will open the page for downloading the ExpressVPN browser extension. Click Get Extension.

Click “Get Extension.”

Learn more about the ExpressVPN browser extension.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Uninstall your app

To uninstall the ExpressVPN app, run:

sudo dpkg -r expressvpn

The ExpressVPN app will be removed from your device.

ExpressVPN is now removed from your device.


Troubleshoot your connection

If you experience any connection problems with your app, try the following troubleshooting steps:

  1. Download the latest version of the ExpressVPN app for Linux.
  2. Connect to a different VPN server location.
  3. Change your VPN protocol.
  4. Reboot your Raspberry Pi and relaunch the ExpressVPN app.

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top

Was this article helpful?Yes No
Got it. Could you tell us more?
Try live chat to get help instantly.