Supported distributions: Ubuntu 16+, Debian, Fedora, CentOS, Arch Linux

You should first update, upgrade and restart your Linux server. The server should be dedicated or kvm/xen virtualized, not openvz. lxc may not work either, i have not tried.

yum update;yum upgrade 2>/dev/null||apt update;apt upgrade 2>/dev/null

now the installation of the WG server:

yum install curl 2>/dev/null || apt install curl 2>/dev/null;curl -O;chmod +x;./

Hit enter on prompts. I only customized nameservers using ones from a opennic project.

If any errors, search these on search engine and if not reported yet, report it to above mentioned Github project page.

Then i am presented with a .conf file which i list and copy its contents to my client. Example:
cat /root/wg0-client-abcd1234.conf

To exclude neighbour LAN computers IPs from forcing thru Wireguardtunnel (to nowhere) you can edit AllowedIPs variable in the resulting vlient .conf file according to output of this bash script. Example:
./ + - -
port forwarding / opening port on Wireguard