mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-10-29 05:37:30 +01:00
6.8 KiB
6.8 KiB
Essential software for new systems
{{ page.excerpt }}
Automaattinen sisällysluettelo / Automatically generated Table of Contents
Security
microcode- propietary, but otherwise CPU holes are going to be gaping open. Refer totail -n +1 /sys/devices/system/cpu/vulnerabilities/*- Debian calls this as
amd64-microcodeorintel-microcode - Arch knows them as
amd-ucodeorintel-ucodeand won’t load it for you, you will have toinitrd /intel-ucode.imgyourself instantly afterlinuxand beforeinitrd /initramfs-linux-lts.img…
- Debian calls this as
ufwfor Deb-based orfirewalldon Fedora (and Kali and Arch Linux, if you so choose in the last)sshguardfor mitigating shared systems where others refuse to use keysneedrestartfor knowing when updates actually require services to be restarted or a kernel upgrade happens and requires reboot- Arch users may prefer
checkservicesfromarchlinux-contrib
- Arch users may prefer
molly-guardso you won’t accidentallyrebootorpoweroffproduction rather than local machine.apt-listchangeschangelogs are worth knowing when updating.apt-listbugsknown bugs are especially nice when performing bigger updates.chrony- security demands the time to be correct, Chrony supports NTS and is proper NTP server instead of just SNTP like systemd-timesyncd.- alternatively configure
systemd-timesyncd
- alternatively configure
unbound- my choice for both DNSSEC validating and DNS-over-TLS, even if I had it connect to upstream dns[crypt]proxy- alternatively configure
systemd-resolved. Simultaneouslysystemd-networkdmay be a good idea.
- alternatively configure
unattended-upgradesordnf-automaticso security updates are at least downloaded if not even directly installed (see configuration and systemd units!)- if
dnf-automatic, considersudo systemctl enable dnf-automatic-install.{timer,service}or at leastsudo systemctl enable dnf-automatic-download.{timer,service}
- if
Usability
nvim git tmux zsh- good luck without theseif cryptographic operations are taking ages, consider something likehaveged. It’s controversial, so if there are no issues, don’t install a random number generator.- userspace oom killer, may avoid frozen systems, much more pleasant
than actually having to deal with a frozen system.
earlyoom- remember to
sudo systemctl enable --now earlyoom
- remember to
systemd-oomd- remember to
sudo systemctl enable --now systemd-oomd
- remember to
zram-tools- small compressed swap in RAM- Remember to check configs! Fedora:
/etc/zram.conf sudo systemctl enable --now zramswap.service zram-swap.service
- Remember to check configs! Fedora:
thermaldfor additional help keeping system cool, especially intelsudo systemctl enable --now thermald
vnstat- help for observing bandwidth usageyggdrasil- essential for getting through Carrier Grade NAT whether there is IPv6 or not. Also gives static internal IPv6 reducing need for dynamic DNS.tlp- for laptop power management, especially ThinkPad.sudo tlp-stat | lesssudo systemctl enable --now tlp
Offtopic system configuration
This is just too close to not mention here (and was besides in my planning issue):
Debian-based
sudo dpkg-reconfigure console-setup- ensure UTF-8 and select Terminus
sudo dpkg-reconfigure keyboard-configuration- compose key
Terminus on Fedora
After installing the package, adjust /etc/vconsole.conf
e.g.:
KEYMAP="fi"
FONT="ter-v16v"Maybe sudo updatedb and locate ter-v16v at
first though?
Terminus on Arch Linux
See Fedora, but change the FONT to
"ter-132b" instead.
Accessing UEFI setup without key smashing
- systemd: there is a
systemctl reboot --firmware-setup(spotted here) - Plasma: in
systemsettingssectiondesktop sessionthere is a checkbox to after next boot, enter UEFI settings (via reply to that) - Windows allows access to UEFI by pressing Shift while reboot (said
here) or simply
shutdown -r -t 1 -fwtwice (said here). - GNOME: in the reboot after 60 seconds menu, hold alt to get into boot options (said here)
- In boot loader the command
fwsetupshould take you there (said here). And anyone using either grub or systemd-bootd has probably seen the menu entry. - efibootmgr:
efibootmgr —bootnext 0000 && reboot(said or implied here)
SSD
sudo systemctl enable --now fstrim.timer- check that
/etc/fstabhasnoatimeso every file access isn’t written to the disk. BTRFS filesystems should also havessdflag.- NEVER ENABLE
atime,relatimeornorelatimeunder the threat of suffering especially on BTRFS. I have been doing fine without it for years, it will not help any issue, unless you want read operations to cause writes and eat space…
- NEVER ENABLE
BTRFS
- The above applies,
/etc/fstabmust havenoatime. compress=zstd:0may be helpful. It enables zstd compression, which is an integrated feature of BTRFS, with the default compression level (3 at the time of writing). The BTRFS devs are most likely wiser than me and can provide a reasonable balance between efficiency and CPU use.- Alternatively
compress-force=zstd:0may be used, but that might bring extra CPU usage in compressing what cannot be compressed.- Test on Lumina: 20G free -> 24G free.
- The compression will happen either the next time the file is written
or can be manually triggered through
sudo btrfs filesystem defragment -r "$PWD"
- Alternatively