Skip to content

Instantly share code, notes, and snippets.

View nightspotlight's full-sized avatar

Roman Eremeev nightspotlight

  • Poland
  • 07:56 (UTC +02:00)
View GitHub Profile
@nightspotlight
nightspotlight / LUKS_and_TPM2_with_Fedora.md
Last active January 17, 2023 09:07 — forked from jdoss/LUKS_and_TPM2_with_Fedora.md
Decrypt LUKS volumes with a TPM on Fedora 35+

Decrypt LUKS volumes with a TPM on Fedora 35+

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER
@nightspotlight
nightspotlight / mdns.sh
Last active April 22, 2019 12:54
Enable mdns inside a FreeBSD jail (FreeNAS-11.2-U3)
# # cat /usr/local/etc/pkg/repos/FreeBSD.conf
# FreeBSD: { enabled: no }
rm -f /usr/local/etc/pkg/repos/FreeBSD.conf
pkg update -f
pkg install --yes openmdns
sysrc mdnsd_enable=yes
sysrc mdnsd_flags=epair0b
service mdnsd start