Command at login to run VPN autoconnect to fastest server
by internnutt from LinuxQuestions.org on (#4WM26)
Hi,
I'm really just getting into Linux (using Mint) and loving it so far! At the moment, I'm having all sorts of issues getting my VPN to autoconnect to the fastest server. Using Network Manager, I'm limited to connecting to a fixed server, which isn't always optimal.
What I'd rather do is, I think, write a bash script so that at logon, it executes the simple command of 'nordvpn c', which is the command to find the best server.
I've had a lot of difficulty trying to understand how to create this bash script, so any help would be hugely appreciated. Thanks!


I'm really just getting into Linux (using Mint) and loving it so far! At the moment, I'm having all sorts of issues getting my VPN to autoconnect to the fastest server. Using Network Manager, I'm limited to connecting to a fixed server, which isn't always optimal.
What I'd rather do is, I think, write a bash script so that at logon, it executes the simple command of 'nordvpn c', which is the command to find the best server.
I've had a lot of difficulty trying to understand how to create this bash script, so any help would be hugely appreciated. Thanks!