Is there a way to create a desktop shortcut to a VPN connection, like in Windows? Basically, once clicked, it asks for the login information and connects.
Thanks in advance.
Not sure about desktop, but if you just click on the network icon in the system tray then you will see the section "VPN Connections" there and you should be able to just add them. Not sure if there is a way to get them to the desktop from there or not.
with the following script, you can toggle your VPN connection. The name of the VPN connection is the first command line argument, you can find out the name using
nmcli con show
Then, you simply create a new launcher on the desktop that calls that script with the right name, either putting it somewhere on your PATH or using the absolute path in the "Command" line of the launcher.
#!/bin/bash
name="$1"
conn=`nmcli c show | grep "$name" | gawk '{print $4}'`
if test "$conn" == "--"; then
nmcli con up "$name"
else
nmcli con down "$name"
fi