How do I setup a VPN connection on Ubuntu with a shared secret and group name if any?

I use vpnc. Install it:

sudo apt-get install network-manager-vpnc

Run it:

sudo vpnc

Enter connection data:

* IPSEC gateway: the hostname or IP of the VPN server
* IPSEC ID: the groupname
* IPSEC secret: the shared password for the group
* your username
* your password

You should also see a new option under System > Preferences > Network Connections > VPN to add a Cisco Compatible VPN