Created
January 4, 2022 09:46
-
-
Save madduci/a25d24549e8fd45fbb6aad2d97388057 to your computer and use it in GitHub Desktop.
Arch/GnomeShell WireGuard integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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