If you're running AirVPN on Linux you probably don't want to have to type your sudo password in each time it runs. Why? If you're auto-starting it, you want your network lock and VPN connection to happen as soon as you login. Here's what I did for Ubuntu (Actually Kubuntu)...
- Install gksu (sudo apt install gksu)
- Add AirVPN to your autostart list and for command use gksudo /usr/bin/airvpn
- Run sudo nano /usr/share/applications/AirVPN.desktop and change the command to gksudo /usr/bin/airvpn
- Edit the AirVPN entry in your application launcher and change the command to gksudo /usr/bin/airvpn
- Run sudo visudo and add the line %airvpn ALL=(ALL:ALL) NOPASSWD: /usr/bin/airvpn after all other rules (Press Ctrl+x and then Enter to exit and save).
- Run sudo groupadd airvpn
- Run sudo usermod -a -G airvpn user replacing "user" with your account's username.
You're done. The next time you login (Or start it any any other way) AirVPN will start without entering any password.
Note: Your AirVPN settings will be back to default after doing this. Don't worry, just set them again and they'll save.