[ Lezzo secret wiki ]
-~ Frequently used commands and configuration snippets
-~ Frequently used commands and configuration snippets
+Reduce packages disk usage on gentoo
-Reduce packages disk usage on gentoo
+eclean packages eclean distfiles @@ -28,9 +28,9 @@ eclean-kernel -A -a
Update pi-hole devuan host
-Update pi-hole devuan host
+apt update apt upgrade @@ -38,9 +38,32 @@ PIHOLE_SKIP_OS_CHECK=true pihole -up
Add static route for wireguard
-Wireguard configuration
++cd /etc/wireguard.conf +wg genkey > privatekey +cat privatekey | wg pubkey ++
+[Interface] +PrivateKey = +Address = 10.0.13.X/32 +DNS = 10.0.1.8 + +# lezzo +[Peer] +PublicKey = +Endpoint = tubo.lezzo.org:51888 +PersistentKeepalive = 25 +AllowedIPs = 0.0.0.0/0 ++
Add static route for wireguard
+Useful when subnet clash, example:
@@ -57,9 +80,9 @@ route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolutioRemove gentoo strong password requirement
-Remove gentoo strong password requirement
+From https://forums.gentoo.org/viewtopic-t-1117656-start-0.html: in /etc/pam.d/system-auth diff --git a/secretwiki/commands.org b/secretwiki/commands.org index 90bcf0a..8eb96fb 100644 --- a/secretwiki/commands.org +++ b/secretwiki/commands.org @@ -12,6 +12,25 @@ apt update apt upgrade PIHOLE_SKIP_OS_CHECK=true pihole -up #+end_src +** Wireguard configuration +#+begin_src +cd /etc/wireguard.conf +wg genkey > privatekey +cat privatekey | wg pubkey +#+end_src +#+begin_src +[Interface] +PrivateKey = +Address = 10.0.13.X/32 +DNS = 10.0.1.8 + +# lezzo +[Peer] +PublicKey = +Endpoint = tubo.lezzo.org:51888 +PersistentKeepalive = 25 +AllowedIPs = 0.0.0.0/0 +#+end_src ** Add static route for wireguard Useful when subnet clash, example: #+begin_src