How to install and login to NordVPN in Ubuntu with only the command line?

Would you like to use NordVPN in Ubuntu? Are you only using the command line, but don’t know how to install NordVPN and login with your user profile? Are you stuck when it tells you to confirm your login credentials in your browser? How can you solve this problem?

In this short article, I will show you quickly how to install and run NordVPN on your Ubuntu computer using only the command line. The instructions are also valid for Linux Mint, Elementary, and other operating systems based on Ubuntu and Fedora.

Run the following commands first.

wget https://downloads.nordcdn.com/apps/linux/install.sh
chmod 764 install.sh

Now you have downloaded the installation file and you have changed the permissions for the file. As a result, you can run the file as a program. This will update your Linux installation and install NordVPN on your device.

./install.sh

You need to log in with your NordVPN credentials when the installation is finished. If you haven’t bought a NordVPN subscription yet, visit the NordVPN website and do it right now.

You will most likely see an error message along the way telling you to run the following command. If you do, run the command and reboot your computer.

sudo usermod -aG nordvpn $USER

You are now ready to log in. Do it with the following command.

nordvpn login --legacy

If you skip the –legacy part of the command, you will be told to open a link in your browser to confirm that you have a subscription. Since our goal is to do the entire process using the command line, you need to add the –legacy command. This will allow you to log in with your credentials in the normal way.

You are ready to connect to the different NordVPN servers!

Everything is done. You are ready to connect to the different NordVPN servers. You can read more about different commands and about the general usage of NordVPN in Ubuntu right here.

Some useful commands.

nordvpn connect sweden
nordvpn connect united_states
nordvpn disconnect
nordvpnn --help
nordvpn status
nordvpn settings

Play around with the different commands above to use NordVPN on your Ubuntu server. If you have comments or questions, write them below.

Leave a Reply