Linux
Kommandos
# https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration
# find /usr/share/kbd/keymaps/ -type f -name "*search_term*"
loadkeys de-latin1-nodeadkeys
ss -tulnp
tr -dc A-Za-z0-9 </dev/urandom | head -c 8
install -d -o caddy -g caddy -m 0750 /var/log/caddy
echo '/var/lib' | tee /etc/sv/caddy/envdir/{XDG_CONFIG_HOME,XDG_DATA_HOME} > /dev/null
nftables
nft -f /etc/nftables.conf
# nft list set [<family>] <table> <set>
nft list set ip crowdsec crowdsec-blacklists
nft add element crowdsec crowdsec-blacklists {1.2.3.4 timeout 30s}
nft -n -a list chain inet filter input
nft add rule inet filter input position 8 tcp dport 65535 accept
table inet filter {
chain input {
type filter hook input priority 0;
tcp dport 2222 ct status dnat accept
}
}
table inet nat {
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
tcp dport 22 redirect to :2222
}
chain postrouting {
type nat hook postrouting priority 100; policy accept;
oif eth0 masquerade persistent
}
}
tcp dport { 22, 65535 } log prefix "[nftables] SSH Accepted: " accept
tcp dport 2222 ct status dnat log prefix "[nftables] SSH dnat Accepted" accept
neovim
- https://neovim.io/
- ~/.config/nvim/init.vim
: echo &ft
/:se ft
:retab
- https://github.com/junegunn/vim-plug
- https://github.com/isobit/vim-caddyfile
init.vim
systemd
DynamicUser
- UIDs
- 61184-65519
- RuntimeDirectory
- /run (temp)
- StateDirectory
- /var/lib (pers)
- LogsDirectory
- /var/log (pers)
- CacheDirectory
- /var/cache (pers)
Distributionen
-
https://www.alpinelinux.org/
- wird von Docker für Container bevorzugt
-
https://voidlinux.org/
- wurde für XBPS entworfen
- https://archlinux.org/