2022-05-15 09:29:54 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
|
|
<head>
|
2022-06-09 13:41:58 +01:00
|
|
|
<!-- 2022-06-09 Thu 13:41 -->
|
2022-05-15 09:29:54 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>Lezzo secret wiki</title>
|
|
|
|
<meta name="generator" content="Org mode" />
|
|
|
|
<meta name="author" content="bparodi" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="./stylesheet.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="content">
|
|
|
|
<h2>[ Lezzo secret wiki ]</a></h2>
|
2022-06-09 13:41:58 +01:00
|
|
|
<div id="outline-container-org37692f1" class="outline-2">
|
|
|
|
<h2 id="org37692f1"><b>~</b> Frequently used commands and configuration snippets</h2>
|
|
|
|
<div class="outline-text-2" id="text-org37692f1">
|
2022-05-15 09:29:54 +01:00
|
|
|
</div>
|
2022-06-09 13:41:58 +01:00
|
|
|
<div id="outline-container-orgae97eeb" class="outline-3">
|
|
|
|
<h3 id="orgae97eeb">Reduce packages disk usage on gentoo</h3>
|
|
|
|
<div class="outline-text-3" id="text-orgae97eeb">
|
2022-05-15 09:36:09 +01:00
|
|
|
<pre class="example">
|
|
|
|
eclean packages
|
|
|
|
eclean distfiles
|
|
|
|
eclean-kernel -A -a
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-09 13:41:58 +01:00
|
|
|
<div id="outline-container-org2256cf9" class="outline-3">
|
|
|
|
<h3 id="org2256cf9">Update pi-hole devuan host</h3>
|
|
|
|
<div class="outline-text-3" id="text-org2256cf9">
|
2022-05-15 09:29:54 +01:00
|
|
|
<pre class="example">
|
|
|
|
apt update
|
|
|
|
apt upgrade
|
|
|
|
PIHOLE_SKIP_OS_CHECK=true pihole -up
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-09 13:41:58 +01:00
|
|
|
<div id="outline-container-orgfa03af1" class="outline-3">
|
|
|
|
<h3 id="orgfa03af1">Add static route for wireguard</h3>
|
|
|
|
<div class="outline-text-3" id="text-orgfa03af1">
|
2022-06-02 15:55:50 +01:00
|
|
|
<p>
|
|
|
|
Useful when subnet clash, example:
|
|
|
|
</p>
|
|
|
|
<pre class="example">
|
|
|
|
lezzo: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
|
|
|
|
inet 10.0.13.2 netmask 255.255.255.255 destination 10.0.13.2
|
|
|
|
wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
|
|
|
inet 10.0.11.148 netmask 255.255.0.0 broadcast 10.0.255.255
|
|
|
|
</pre>
|
|
|
|
<pre class="example">
|
|
|
|
route add -net 10.0.13.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo
|
2022-06-02 15:56:45 +01:00
|
|
|
route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolution through enigm.local
|
|
|
|
|
2022-06-09 13:40:41 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-09 13:41:58 +01:00
|
|
|
<div id="outline-container-org62b7bbc" class="outline-3">
|
|
|
|
<h3 id="org62b7bbc">Remove gentoo strong password requirement</h3>
|
|
|
|
<div class="outline-text-3" id="text-org62b7bbc">
|
2022-06-09 13:40:41 +01:00
|
|
|
<p>
|
2022-06-09 13:41:58 +01:00
|
|
|
From <a href="https://forums.gentoo.org/viewtopic-t-1117656-start-0.html">https://forums.gentoo.org/viewtopic-t-1117656-start-0.html</a>:
|
|
|
|
in /etc/pam.d/system-auth
|
2022-06-09 13:40:41 +01:00
|
|
|
</p>
|
|
|
|
<pre class="example">
|
|
|
|
# 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
|
|
|
|
|
2022-06-02 15:55:50 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-15 09:29:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="postamble" class="status">
|
|
|
|
<p class="author">Author: bparodi</p>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|