Linux
Explore
Software RAID
InstallationThe mdadm package is required for software RAID: The mdadm package is available on most distributions (mdadm on Fedora/Arch/Debian). Array Creationmdadm --create /dev/md0 --verbose …
PAM
Overview/etc/pam.d/ directory contains the PAM configuration files for each PAM-aware application. Each pam aware configuration file has lines in the format of: <module interface> <control …
Gatekeeper Script for SSH
The gatekeeper pattern adds a post-authentication challenge to SSH sessions using ForceCommand. The concept was inspired by a scene in a movie where a system required answering riddles before granting …
Trim
found top level header in "/notes/linux/trim/" that didn't match meta title ("TRIM" != "Trim")TRIM tells an SSD which blocks are no longer in use so the drive can erase …
Mutt
I keep a copy of my mutt config here on the site. VimSince I use vim as my editor I also added the following line to my vim configuration file to autowrap my lines at 72 characters, but only for mutt …
Cron Daemon
Cron is a pretty standard utility and there isn't much to it. I generally use cronie as my cron daemon with the associated anacron helper for systems that aren't always on such as laptops and …
Data Recovery
Recovering Data from SwapSometimes useful bits of information can be recovered from swap. Whether it's encryption keys, documents that were being worked on or anything else that might've ended up in …
GPSd
InstallationInstall gpsd and optionally the client tools. On a headless server you'll probably want to skip gpsd-clients as they pull in X dependencies for xgps. 1 2 3 $ pacman -S gpsd # Arch $ apt …
Partitioning
Recommended / Best Practices /boot 200Mb swap 1.5x times the amount of RAM / /home /tmp /var /var/log /var/log/audit Encrypt all partitions except /boot Creating an LVM partitionCreate a Physical …
Looking for something specific?