From 2dcffcecd4194f2a173d2a5010d52330b86b2d69 Mon Sep 17 00:00:00 2001 From: Francesco Mecca Date: Thu, 9 Jun 2022 13:40:41 +0100 Subject: [PATCH] gentoo --- secretwiki/commands.html | 40 +++++++++++++++++++++++++++------------- secretwiki/commands.org | 8 ++++++++ 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/secretwiki/commands.html b/secretwiki/commands.html index 1e4bbcc..bfe9786 100644 --- a/secretwiki/commands.html +++ b/secretwiki/commands.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Lezzo secret wiki @@ -14,13 +14,13 @@

[ Lezzo secret wiki ]

-
-

~ Hosts

-
+
+

~ Hosts

+
-
-

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,9 @@ PIHOLE_SKIP_OS_CHECK=true pihole -up
 
-
-

Add static route for wireguard

-
+
+

Add static route for wireguard

+

Useful when subnet clash, example:

@@ -54,6 +54,20 @@ wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 route add -net 10.0.13.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolution through enigm.local + +
+
+
+

Remove gentoo strong password requirement

+
+

+In /etc/pam.d/system-auth +

+
+# password        required        pam_passwdqc.so min=8,8,8,8,8 retry=3 
+# password        required        pam_unix.so try_first_pass use_authtok nullok sha512 shadow 
+password        required        pam_unix.so try_first_pass nullok sha512 shadow # no use_authtok
+
 
diff --git a/secretwiki/commands.org b/secretwiki/commands.org index 0331fde..0fd463a 100644 --- a/secretwiki/commands.org +++ b/secretwiki/commands.org @@ -25,3 +25,11 @@ route add -net 10.0.13.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolution through enigm.local #+end_src +** Remove gentoo strong password requirement +In /etc/pam.d/system-auth +#+begin_src +# password required pam_passwdqc.so min=8,8,8,8,8 retry=3 +# password required pam_unix.so try_first_pass use_authtok nullok sha512 shadow +password required pam_unix.so try_first_pass nullok sha512 shadow # no use_authtok + +#+end_src