Skip to content

Instantly share code, notes, and snippets.

@madduci
Created January 4, 2022 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madduci/a25d24549e8fd45fbb6aad2d97388057 to your computer and use it in GitHub Desktop.
Save madduci/a25d24549e8fd45fbb6aad2d97388057 to your computer and use it in GitHub Desktop.
Arch/GnomeShell WireGuard integration
#!/usr/bin/env bash
# Prepare needed packages
sudo pacman -S base-devel wireguard-tools intltool libnma libsecret
git clone https://github.com/max-moser/network-manager-wireguard
cd network-manager-wireguard
# Configure the Project
./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
# Correct the Path to the Plugin
sudo sed -i 's|plugin=libnm-vpn-plugin-wireguard.so|plugin=/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-wireguard.so|g' /usr/lib/NetworkManager/VPN/nm-wireguard-service.name
# Install
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment