Useful howtos: Difference between revisions

From LinuxizeNet
No edit summary
(Convert index to card grid via Template:Card; add descriptions and commands)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style = "line-height: 1.2">
__NOTOC__
{{clear}}</div></div><div style = "margin-top: 1.5em; border: 3px solid #ae8c55; border-radius: .5em; padding: 1em 1.5em; font-size: 1.2em">
Short, tested procedures for the things that come up once a year and are never
<strong></strong>
where you left them.
==NGINX==
 
===Configs===
== NGINX ==
[[NGINX underscores in headers]]
<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>


==Cli commands==
[[Clean MAC DNS cache]]
[[Clean Windows DNS cache]]
==LINUX==
===Enable Linux in Windows OS===
[[Linux subsystem in Windows OS]]
===Ansible===
[[Downgrading Ansible Engine on CentOS 7]]
===Mail Subsystem===
[[Spamassasin Manual Learning]]
===sudo===
[[Sudo nopasswd]]
===cisco===
[[SYS-4-CONFIG_RESOLVE_FAILURE]]
[[Category:Howto]]
[[Category:Howto]]
[[Category:NGINX]]
[[Category:Linux]]
[[Category:Mac OS]]
[[Category:Networking]]

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]

Clean Linux DNS cache
systemd-resolved, nscd and dnsmasq.
resolvectl flush-caches
Clean macOS DNS cache
Flush the resolver and restart mDNSResponder.
dscacheutil -flushcache
Clean Windows DNS cache
From an elevated prompt.
ipconfig /flushdns

Linux[edit]

Linux subsystem in Windows
Enabling and installing WSL.
wsl --install
Downgrading Ansible Engine on CentOS 7
Pinning a working release when the latest breaks your playbooks.
yum downgrade ansible
SpamAssassin manual learning
Feeding ham and spam to the Bayes classifier by hand.
sa-learn --spam
Sudo nopasswd
Dropping the password prompt for a user or a group.
NOPASSWD: ALL
Perl warnings
Silencing locale warnings on a fresh install.

Networking[edit]

SYS-4-CONFIG_RESOLVE_FAILURE
What the Cisco log message means and how to stop it.
no ip domain-lookup