Useful howtos: Difference between revisions
From LinuxizeNet
(→LINUX) |
(Convert index to card grid via Template:Card; add descriptions and commands) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
Short, tested procedures for the things that come up once a year and are never | |||
where you left them. | |||
== | == NGINX == | ||
<div class="lz-cardgrid"> | |||
{{Card|page=NGINX underscores in headers|desc=Headers containing underscores are dropped by default. Turn them back on.|cmd=underscores_in_headers on;}} | |||
{{Card|page=Self-Signed CA|desc=Issue a wildcard cert with mkcert and get every box on the LAN to trust it.|cmd=mkcert -install}} | |||
</div> | |||
== | == CLI commands == | ||
=== | <div class="lz-cardgrid"> | ||
{{Card|page=Clean Linux DNS cache|desc=systemd-resolved, nscd and dnsmasq.|cmd=resolvectl flush-caches}} | |||
=== | {{Card|page=Clean MAC DNS cache|title=Clean macOS DNS cache|desc=Flush the resolver and restart mDNSResponder.|cmd=dscacheutil -flushcache}} | ||
{{Card|page=Clean Windows DNS cache|desc=From an elevated prompt.|cmd=ipconfig /flushdns}} | |||
=== | </div> | ||
=== | == Linux == | ||
<div class="lz-cardgrid"> | |||
=== | {{Card|page=Linux subsystem in Windows OS|title=Linux subsystem in Windows|desc=Enabling and installing WSL.|cmd=wsl --install}} | ||
{{Card|page=Downgrading Ansible Engine on CentOS 7|desc=Pinning a working release when the latest breaks your playbooks.|cmd=yum downgrade ansible}} | |||
{{Card|page=Spamassasin Manual Learning|title=SpamAssassin manual learning|desc=Feeding ham and spam to the Bayes classifier by hand.|cmd=sa-learn --spam}} | |||
{{Card|page=Sudo nopasswd|desc=Dropping the password prompt for a user or a group.|cmd=NOPASSWD: ALL}} | |||
{{Card|page=Perl Warnings|title=Perl warnings|desc=Silencing locale warnings on a fresh install.}} | |||
</div> | |||
== Networking == | |||
<div class="lz-cardgrid"> | |||
{{Card|page=SYS-4-CONFIG_RESOLVE_FAILURE|desc=What the Cisco log message means and how to stop it.|cmd=no ip domain-lookup}} | |||
</div> | |||
[[Category:Howto]] | [[Category:Howto]] | ||
Latest revision as of 05:22, 8 August 2026
Short, tested procedures for the things that come up once a year and are never where you left them.
NGINX[edit]
NGINX underscores in headers
Headers containing underscores are dropped by default. Turn them back on.
underscores_in_headers on;
Self-Signed CA
Issue a wildcard cert with mkcert and get every box on the LAN to trust it.
mkcert -install
CLI commands[edit]
Linux[edit]
Downgrading Ansible Engine on CentOS 7
Pinning a working release when the latest breaks your playbooks.
yum downgrade ansible
Perl warnings
Silencing locale warnings on a fresh install.