From 8c1a1900f8365226e9cac57b08cd3c0847bb3ab0 Mon Sep 17 00:00:00 2001
From: sspark <sspark@onioi.com>
Date: Thu, 26 Jan 2023 05:36:34 +0000
Subject: [PATCH] rel 0.9.6

---
 README.md |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md
index 17f0334..b9fb3e1 100644
--- a/README.md
+++ b/README.md
@@ -111,6 +111,17 @@
 
 ```
 
+kernel header issue ( Error! DKMS tree already contains: 8812au-5.6.4.2_35491.20191025 )
+```
+sudo apt-get upgrade
+sudo reboot
+sudo apt install build-essential libelf-dev linux-headers-$(uname -r)
+sudo dkms status
+sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all
+sudo dkms status
+sudo make dkms_install
+```
+
 ### RPi4 internal WiFi disable & USB WiFi enable wlan0 ###
 
 /boot/config.txt
@@ -166,6 +177,49 @@
 sudo wg show wg0
 ```
 
+/etc/wireguard/wg0.conf
+```
+[Interface]
+PrivateKey =  
+#Address = 10.8.0.2/24
+#DNS = 1.1.1.1
+#MTU = 1420
+
+[Peer]
+PublicKey =  
+PresharedKey =  
+AllowedIPs = 192.168.1.0/24, 10.8.0.0/24
+PersistentKeepalive = 30
+Endpoint = vp.onioi.com:51888
+```
+
+/etc/network/interfaces.d/wg0
+```
+# indicate that wg0 should be created when the system boots, and on ifup -a
+auto wg0
+
+# describe wg0 as an IPv4 interface with static address
+iface wg0 inet static
+
+        # the IP address of this client on the WireGuard network
+        address 10.8.0.2/24
+
+        # before ifup, create the device with this ip link command
+        pre-up ip link add $IFACE type wireguard
+
+        # before ifup, set the WireGuard config from earlier
+        pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
+
+        # after ifdown, destroy the wg0 interface
+        post-down ip link del $IFACE
+```
+
+
+### update gateway ###
+
+```
+curl "https://onioi.com:8443/zip/?r=MEDILOGIS/gwinstall.git&p=dist&h=master&format=gz" -k -o dist.tar.gz
+```
 
 ### TODO ###
  

--
Gitblit v1.9.3