network-manager-wireguard icon indicating copy to clipboard operation
network-manager-wireguard copied to clipboard

Won't build on Ubuntu 20.04

Open alexander-potemkin opened this issue 4 years ago • 5 comments

Due to the following packages deprecated:

libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev

alexander-potemkin avatar Sep 13 '21 13:09 alexander-potemkin

@KingCartman found a way to get it working on Ubuntu 20.04. Here are the steps you need to do:

Install the needed packages to build and use the plugin:

sudo apt install wireguard git dh-autoreconf libglib2.0-dev intltool build-essential libgtk-3-dev libnma-dev libsecret-1-dev network-manager-dev resolvconf

Clone the plugin from github, compile and install it:

git clone https://github.com/max-moser/network-manager-wireguard
cd network-manager-wireguard
./autogen.sh --without-libnm-glib

./configure --without-libnm-glib --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/NetworkManager --localstatedir=/var

make
sudo make install

Source: https://askubuntu.com/questions/1233034/wireguard-vpn-client-gui/1233341#1233341 via https://github.com/max-moser/network-manager-wireguard/issues/46#issuecomment-621744485

m00head avatar Sep 17 '21 22:09 m00head

@m00head , thanks a lot! It does appear in the GUI now, hope it will be working as well :)

alexander-potemkin avatar Sep 22 '21 15:09 alexander-potemkin

I built and install it for Ubuntu 20.04 using these instructions, and I can create a new wireguard VPN from the Network manager GUI, and if I start the VPN I get the indicator that the VPN is active, but in reality it seems that wireguard is not running and I go to the internet through the normal network, without VPN

cccaballero avatar Dec 30 '21 21:12 cccaballero

@m00head Thanks! It's working for me (Ubuntu 22.04).

vip5912 avatar Apr 16 '23 09:04 vip5912

Can confirm that this fork works! I can connect to a WireGuard VPN successfully. The parent repo just fails on attempting to connect. I do have to mention that when you disconnect it "fails".

y2k04 avatar Jun 20 '24 01:06 y2k04