# Show list of FIDO2 devices.
systemd-cryptsenroll --fido2-device=list
# Enroll one of the FIDO2 devices.
systemd-cryptsenroll --fido2-device=auto /dev/vda5
# Test FIDO2 unlock. Any of these should work, the --token-only will not provide
On Debian the /usr/lib/tmpfiles.d/systemd-pstore.conf
file can modified to enable pstore log saving on panic and shutdown.
w- /sys/module/printk/parameters/always_kmsg_dump - - - - Y
w- /sys/module/kernel/parameters/crash_kexec_post_notifiers - - - - Y
The systemd-pstore service is already configured to read from /sys/fs/pstore
on the next boot and add these log fragment to the journal log and directly copy to /var/lib/systemd/pstore/
.
btrfs-progs
duperemove
https://wiki.archlinux.org/title/Snapper#Suggested_filesystem_layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Date formatting for file name purposes. | |
# You can lock in one timezone by setting the TZ environment variable. | |
# 2024-05-26_04:55:50PM_PDT | |
TZ='America/Los_Angeles' date "+%Y-%m-%d_%I:%M:%S%p_%Z" | |
# 2024-05-26_07:59:06PM_EDT | |
TZ='America/New_York' date "+%Y-%m-%d_%I:%M:%S%p_%Z" |
Here is the cheatsheet for block size tuning of NVME drives, LUKS encryption, filesystem, and partitions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You need the following entry in the control file: | |
XS-Go-Import-Path: github.com/linux4life798/cmpconflash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssd_show_data() { | |
sudo dd if=/dev/nvme0n1 bs=1 count=9000 status=none | hd | |
} | |
# ssd_write_data <data_message> [location] | |
# | |
# location is the offset in bytes. | |
ssd_write_data() { | |
local data="$1" | |
local location="${2:-0}" # In bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example ddclient configuration that uses fetch-nest-wan-ipv4.sh | |
# and Cloudflare. | |
# The fetch-nest-wan-ipv4.sh script must be in whatever working directory ddclient | |
# is run from, or change the below path to the command to be absolute. | |
###################################################################### | |
## | |
## Define default global variables with lines like: | |
## var=value [, var=value]* | |
## These values will be used for each following host unless overridden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
ENV USER me | |
RUN useradd --create-home --user-group "${USER}" | |
# HOME will be set already within the container, after setting user, but we | |
# set it here to be usable from within this Dockerfile. | |
ENV HOME "/home/${USER}" | |
WORKDIR "${HOME}" | |
RUN pwd |
NewerOlder