Skip to content

How to Set Up a VPN on Linux

Step by step: download the VPNclient installer for Linux, run it from a terminal, sign in with your My Pass details and connect.

6 min readUpdated Oct 15, 2026By XPASS Editorial Team

How to Set Up a VPN on Linux

This guide walks you through setting up XPASS on a Linux computer with VPNclient, the free app. Its Linux version is a graphical desktop app for Ubuntu and other Linux distributions. You download one installer file, run it from a terminal, sign in with the username and password from your My Pass page and connect. It usually takes about ten minutes.

The Linux app works on 64-bit Intel or AMD (x86_64) desktop Linux with a graphical desktop and systemd. It does not work on ARM computers such as a Raspberry Pi.

The app has no XPASS branding and no sign-up screen. That is expected: your account already exists, and the app only needs your VPN login details. Desktop environments differ, so menus on your system may look different from the descriptions below.

Before you begin

  1. Make sure your pass is delivered. Open My Pass in your browser and check that it shows as active with days remaining.
  2. On My Pass, click View secure login details. Keep the page open and use the copy buttons when you need the username and password. The My Pass download button covers phones, Windows and Mac; the Linux link is in this guide.
  3. Use an account that can install software with sudo, and know its password.
  4. Turn off any other VPN connection, including ones set up in your network settings.

If you cannot find your details, read where are my login details.

Step 1: Download the installer

  1. Open the official download link: VPNclient for Linux.
  2. Your browser saves a file named vpnclient.run, usually in your Downloads folder.

Laptop showing an app download page with a download button

Only use this link. Do not download VPNclient from other sites, forums or attachments: a VPN app sees all of your traffic, and an installer runs with administrator rights.

Step 2: Run the installer

  1. Open a terminal. On Ubuntu you can press Ctrl+Alt+T, or search for Terminal in your applications.

  2. Go to the folder with the download:

    cd ~/Downloads
    
  3. Mark the installer as executable:

    chmod +x vpnclient.run
    
  4. Start it:

    ./vpnclient.run
    
  5. If the installer asks for your administrator (sudo) password, type your Linux account password and press Enter. Nothing appears on screen while you type; that is normal.

  6. Follow the installer's instructions until it reports that it has finished.

Desktop window with an installer progress bar and a finish button

If your browser saved the file under a different name or folder, adjust the commands to match. You can delete vpnclient.run after installation.

You can also mark the file as executable in your file manager: right-click it, choose Properties > Permissions and turn on "Allow executing file as program". Then run ./vpnclient.run in a terminal, or double-click the file if your file manager allows it. The installer asks for your administrator (sudo) password, installs the app in /opt/VPNClient and adds VPNClient to your applications menu.

Step 3: Open the app and sign in

  1. Open VPNClient from your applications menu. If it does not appear yet, log out and back in.
  2. Go back to My Pass and copy your username. Paste it into the username field in the app.
  3. Copy your password from My Pass and paste it into the password field. Copying avoids typing mistakes such as a wrong capital letter or an extra space.
  4. Click the sign-in button.

Desktop window with a username field and a hidden password field

Step 4: Choose a location and connect

  1. If the app offers a list of locations, open it and pick one. A location near you is usually fastest. If you are not sure, keep the app's default.
  2. Click the connect button. If the system asks for your password to change network settings, enter your Linux account password.
  3. Wait a few seconds until the app shows that you are connected.

Desktop window showing the VPN connected in green

Keep the app's default connection settings unless our support team asks you to change them.

Check that it works

  1. With the VPN off, search for "what is my IP" in your browser and note the address. Connect, reload the page and compare. It should be different.
  2. Open a few websites you use every day to confirm they load.
  3. If you are comfortable in the terminal, run ip addr while connected. You should see an extra network interface that appears only while the VPN is on.

For DNS and other tests, read how to check if your VPN is working.

Turn the VPN off

Open VPNclient and click the connect button again to disconnect. Quitting the app usually ends the connection too. More options are in how to turn off a VPN.

If it does not work

  • "Permission denied" when starting the installer. The file must be marked as executable. Run the chmod command again in the same folder as the file, then start it with ./vpnclient.run. Do this only for the file from the official link, and do not run other commands you do not understand.
  • "No such file or directory". You are in the wrong folder or the file has a different name. Run ls to see the files, then adjust the commands.
  • The app is not in the menu. Log out and back in. If it is still missing, run the installer again and read its final message.
  • Sign-in fails. Copy the username and password from My Pass again and check there is no space at the start or end. Confirm your pass is still active.
  • Connected but nothing loads. Disconnect, turn other VPN connections off in your network settings, then connect again. If the app offers locations, try a different one.
  • Your pass has expired. The app cannot connect without an active pass. Renew from My Pass.

Further fixes are in VPN not connecting.

Limits and what to watch for

A VPN encrypts the traffic between your computer and the VPN service and hides your IP address from the sites you visit. It does not make you anonymous and does not protect you from phishing, malware or weak passwords. Keep your system and the app updated, run installers only from sources you trust, and never share screenshots of your login details.

Summary

Download vpnclient.run from the official link, make it executable with chmod, run it and enter your sudo password if asked, then open VPNclient, sign in with the username and password from My Pass and click connect. Check that your IP address changes to confirm it works. If you need more time later, see the pricing page or renew from My Pass.

Frequently asked questions

Which app do I install on Linux?

Install VPNclient, the free app. Its Linux version is a graphical desktop app for Ubuntu and other Linux distributions, downloaded as a .run installer from the official link in this guide.

Why do I need a terminal?

Linux does not let a downloaded file run until you mark it as executable. Two short commands do that and start the installer. After installation you use the normal desktop app.

Which username and password do I use?

Use the VPN username and password shown on your My Pass page. They are not your XPASS website email, and there is no sign-up inside the app.

Why does the installer ask for my password?

Installing a VPN app adds system files and network settings, so the installer may ask for your administrator (sudo) password. That is your own Linux account password, not your VPN password.

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

Device Guides

Getting Started With Your XPASS Pass

A step-by-step walk-through from buying a prepaid XPASS pass to your first working VPN connection in the VPNclient app.

7 min read

Troubleshooting

VPN Not Connecting? Step-by-Step Fixes

A clear order of checks for when the VPN will not connect: pass status, login details, Wi-Fi and mobile data, permissions, firewalls, app conflicts and error messages.

8 min read

Troubleshooting

How to Check If Your VPN Is Working

A VPN can show as connected and still not be doing its job. Use these checks to confirm your traffic is going through it, and fix an IP that will not change.

7 min read