2

I have set up a VPN connection back when I used Unity instead of XFCE as DE for my Ubuntu 14.10. It worked well, but I can't find how I have to connect to it now under XFCE.

Is there e.g. a panel plugin for XFCE like the one in Unity to accomplish this or do I have to use the terminal or other GUI tools?

Byte Commander
  • 110,243

2 Answers2

2

I have this problem exactly. In 14.04 there was a flaky indicator I could use. It is not available in 14.10.

In 14.10 with XFCE4, Settings > Network Connections allows me to set up VPN connections but does not give me the option to connect to any of them. I've looked everywhere for an app offering connections like those offered in the Unity dropdown, but I haven't found one.

Eventually I used nmcli c to get the UUID of the desired connection, then I wrote two CLI scripts, vpnup and vpndown, to toggle the VPN:

#!
nmcli con up uuid (UUID)
[etc...]

This is easier than switching back and forth to Unity just to change a VPN connection.

David Foerster
  • 36,890
  • 56
  • 97
  • 151
Jim Knock
  • 131
  • 3
2

Edit the file: /etc/xdg/autostart/nm-applet.desktop

Change the Exec line to read:

Exec=dbus-launch nm-applet

I don't know why, or if it is related. But my default password mechanism somehow changed. I had to go through all my VPN connection configuration files in:

/etc/NetworkManager/system-connections

changing the line

"password-flags=1"

to

"password-flags=0"

This allows the password to be in the configuration file instead of prompting for the password when the connection is attempted. Then sections and lines had to be added to each configuration file to contain the password:

[vpn-secrets]

password=VPN PASSWORD

Where obviously VPN PASSWORD is the password needed for the VPN connection. Once these changes are made in the configuration file, the normal Network Management GUIs can be used to change the password.

The changes to nm-applet.desktop and the configuration files provided XFCE4 with the network configuration applet functionality that I found in Unity.

Jim Knock
  • 131
  • 3