max-moser / network-manager-wireguard

NetworkManager VPN Plugin: Wireguard
Other
449 stars 54 forks source link

Can't see any plugin in NM after install #3

Open numerys opened 6 years ago

numerys commented 6 years ago

I've installed into Ubuntu 18.04:

sudo apt install autoconf pkg-config libglib2.0-dev libtool intltool libgtk-3-dev libnma-dev libsecret-1-dev libnm-gtk-dev libnm-glib-vpn-dev

Cloned the repo and did:

# git clone https://github.com/max-moser/network-manager-wireguard.git
# cd network-manager-wireguard
# ./autogen.sh
# sudo make sysconfdir=/etc libdir=/usr/lib install

All went fine.

After I restared NM and also restarted the machine.

But a WG vpn-menu is not shown inside NM.

What can I do?

max-moser commented 6 years ago

What are the contents of the file /etc/NetworkManager/VPN/nm-wireguard-service.name? Can you verify that the files listed in there actually exist on your file system?

Maybe you could try leaving out the libdir=..., making the command simply sudo make sysconfdir=/etc install and see if that changes things.

alientechnology commented 6 years ago

@max-moser try cp /etc/NetworkManager/VPN/nm-wireguard-service.name /usr/lib/NetworkManager/VPN/nm-wireguard-service.name, helped me.

derlaft commented 6 years ago

Something same in there. It generally works, but only with gnome editor. When I try to connect to the already created connection I get following:

18:39:05 nyanpad plasmashell[1117]: plasma-nm: Checking VPN "wg" type: "org.freedesktop.NetworkManager.wireguard"
18:39:05 nyanpad plasmashell[1117]: plasma-nm: VPN "org.freedesktop.NetworkManager.wireguard" not found, skipping

Doing that cp /etc/... /usr/lib/... command does not help

TronPaul commented 5 years ago

Had the same issue on Ubuntu 18.04. Was able to get it working doing sudo make sysconfdir=/etc install and cp /etc/NetworkManager/VPN/nm-wireguard-service.name /usr/lib/NetworkManager/VPN/nm-wireguard-service.name followed by restarting the network-manager service.

Druco commented 5 years ago

Something same in there. It generally works, but only with gnome editor. When I try to connect to the already created connection I get following:

18:39:05 nyanpad plasmashell[1117]: plasma-nm: Checking VPN "wg" type: "org.freedesktop.NetworkManager.wireguard"
18:39:05 nyanpad plasmashell[1117]: plasma-nm: VPN "org.freedesktop.NetworkManager.wireguard" not found, skipping

Doing that cp /etc/... /usr/lib/... command does not help

From looking at your error message, it appears that you are trying to use the KDE interface to NetworkManager (plasma-nm) which is different than NetworkManager itself. A new addon for plasma-nm which allows access to WireGuard VPN connections is currently under development.

AdrianVollmer commented 5 years ago

I'm running Debian Buster/sid and I also had to copy the libraries elsewhere:

cp /usr/lib/NetworkManager/libnm-vpn-plugin-wireguard* /usr/lib/x86_64-linux-gnu/NetworkManager

The .name file was also in /usr/local/lib/NetworkManager/VPN instead of /usr/lib/NetworkManager/VPN even though I said make libdir=/usr/lib

(Edit: Guess I should have said make libdir=/usr/lib/x86_64-linux-gnu, but the .name file probably still wouldn't have ended up at the right place)