Skip to content

Instantly share code, notes, and snippets.

@da-n
da-n / usb-unlock-luks.md
Created August 24, 2019 13:11
Unlock LUKS full disk with USB stick

Configuration for passwordless root filesystem

Source: https://www.howtoforge.com/tutorial/passwordless-encryption-of-linux-root-partition/

The process of entering the passphrase at boot time will now be automated using an USB memory stick. Instead of using a passphrase , the secret key on the USB will decrypt the encrypted volumes. Connect an USB stick to the VM and locate it using the dmesg command. It is detected as /dev/sdb in my VM.

The secret key of 8192 random byte is extracted from the usb stick using the dd command.

dd if=/dev/sdb of=/root/secret.key bs=512 skip=4 count=16
@creatorrr
creatorrr / right_mirrorboard.vimrc
Last active September 12, 2021 19:29
Right-handed MirrorBoard vim key-mapping
"
" Right-handed MirrorBoard one-hand keymapping
" Diwank Singh
" Dated: 2016-09-29
"
" Original:
" " MirrorBoard one-hand keymapping
" " Hacked together by Randall Munroe and neale
" " 2007-06-25