< Back

How to set up Surfshark app for Linux

The Surfshark native application is the quickest and easiest way to connect to Surfshark servers on your Linux device. Once the Linux app is set up you're able to control your connection as you please with simple, one-word commands using Terminal. 

Please note, that at the moment Surfshark app is only compatible with Linux distributions based on Debian and Ubuntu.

Follow the tutorial below to install and connect to Surfshark for Linux. You'll also find out all Terminal commands needed to navigate the app and establish your first connection!

  1. Start with downloading the setup package here.
  2. Then go to your downloads folder and double click on the setup package file. Press Install in the dialogue box that will appear. This will install the Surfshark VPN repository on your computer. If you can see a button with word Remove, the client was installed successfully. Now you can go run the app in the Terminal.

  3. Open Terminal by pressing Ctrl+Alt+T keys, type this command and press Enter:

    First, to update apt-get package list, type this command:

    sudo apt-get update

    Then install SurfsharkVPN:

    sudo apt-get install surfshark-vpn

  4. Once the app installed you can run it. Type this in the Terminal:

    sudo surfshark-vpn 

    You'll be asked to enter your computer root user's password to continue with Surfshark app. Then, the Terminal will ask if you want to continue with the beta version, press Enter.

    This will print out other possible Surfshark commands and ask you to log in with Surfshark account credentials for the first time. 

    Once that's done you can see Surfshark locations:

  5. Press Enter twice more to see all other locations you can choose from. Each location is identified by a number. To select a location, type the number next to it to the Terminal. 
    For example, I'm connecting to Seattle by typing the number 66.

  6. Since Surfshark for Linux uses OpenVPN you can choose between two protocols: UDP and TCP. We recommend UDP for better speeds. Here UDP is suggested by default so I can continue by pressing Enter.

  7. You're now connected! You can see connection status and your new IP.

  8. You can now close the Terminal or minimize it. This is up to you because the Terminal doesn't have to be open for Surfshark to run in the background.

How to use Terminal commands for Surfshark

These Terminal commands are short and instant.These are all the commands that will allow you to control your Surfshark app: 

1. We suggest to print out all possible Surshark commands:

         sudo surfshark-vpn help

2. Check your connectivity status:

           sudo surfshark-vpn status

3. Disconnect from Surfshark VPN:

           sudo surfshark-vpn down

4. Quick-connect to your Optimal location:

           sudo surfshark-vpn attack

5. To log out of the app: 

           sudo surfshark-vpn forget

Customer Success Sharks will dive into the Linux waters with you, don't hesitate to ask us!

Was this article helpful?