Skip to content

Instantly share code, notes, and snippets.

@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active November 8, 2024 18:28
How to install Ubuntu with LUKS Encryption on LVM

How to install Ubuntu with LUKS Encryption on LVM

My work requires us to have full-disk encryption, so these are the steps I use.

The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.

The GRUB boot partition isn't encrypted, but everything else is.

These steps tested and working on 22.04 (jammy) and 20.04 (focal).

@edwinclement08
edwinclement08 / toggle caps lock.sh
Created January 26, 2022 10:39
How to Programmatically type Caps Locks to toggle it on linux
# To install on Arch-based distros(like Manjaro)
# sudo pacman -Syu xdotool
# To install on Ubuntu-based distros
# sudo apt-get install xdotool
xdotool key Caps_Lock
# Especially useful in VM scenarios where the parent OS has disabled Caps Lock,
# but somehow the child OS thinks that caps is active.