Skip to content

Instantly share code, notes, and snippets.

@PseudoDoctor
PseudoDoctor / lvmONluks.md
Created April 3, 2024 16:10
Linux LVM on LUKS encrypted parition

Walkthrough re-encrypting existing ext4 partition: https://medium.com/bobble-engineering/ubuntu-root-partition-encryption-using-luks-and-dm-crypt-f45130373e68 Types of LUKS usage. https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS

Forward

There are 97 ways to do everything. This is the path I have personally taken to get from a fresh Ubuntu 14.04 to perform release upgrades through 22.04 The first instance of Ubuntu doesn't really matter, however the default parition sizes used by 14.04 were too small for the release upgrade to use. Ubuntu 14.04 has an option to encrypt and LVM the root folder. It creates a 500MB /boot part /dev/sda1, a 200MB EFI part /dev/sda2, and the rest an LUKS part /dev/sda3 with LVM /dev/vg-ubuntu on top of it. Ubuntu 16.04 do-release-upgrade complained that the /boot part was too small and should be 1GB or larger. I was uncomfortable attempting to resize the encrypted partition. Ran Ubuntu 14.04 install again, this time creating partions myself but no

@PseudoDoctor
PseudoDoctor / gpg4WIN.md
Last active April 11, 2023 18:23
GPG for WIN and WSL code signing example
0eNrtXdtuY8dy/RWDD3kIqEnfLwM4QN6NvBwbeTgQBpS0R0OYIgWKmsQ40AfkP5Ify5dkb1IStzb7sqq4OeaM7AfbksjV3dXVVdXVq7r/MblaPDb36/ly8+lqtfp98vEf+988TD7+vfdj97f59Wq5+/XD/HY5W3S/2/xx30w+Tuab5m4ynSxnd91Pm/Vsvrx42KzuJ0/TyXx50/zX5KN8mia++HW+3jy2v3n97u4TF/Pl51Xvyyr55betPmxm17+3X3xo1ptm3fuyJrX8S++b5ulyOmmWm/lm3uxGvv3hj0/Lx7urto2PMtf6dHK/emi/tlp2TbZQF1J8sNPJH+3/afPBPnV9GoApHCzUsDSOFWtYBsdyNSyLY/kalsOxbA3L41iqhhVwLF3DijhWVb+kIGhrFQxX/ToWrvn1QeKaXxW+xDXfVLFwza8qq8Q1v7ogJa751QUpcc2vGjCJaz5gWXHNl1VtVQTNr9oKhau+rOqrwnVfVhVW4covqxqrLMtRqgzaXv/vmpv5491Fs2iuN+v59cX9atGkMOUbzPbrzfz2y9Xqcd25dR0uU630VsbdbLG4WMzu7svYOtPf/rpomsXF9ZfmYVMeut52s424lu3I5tvA6x8T2f3rdt00y34wMr9pbZl8unxKth05UUVG8FpwwoocmASlErlCUaHX7FZKKiMlrcC+hCMmaNAXm+uL5sRbOSEbTsCVA7OglDxbSmooJZeTkgP74th9scO+xFxfPCcSzQk5UI2bKdm21lZakzJvOoICtGwBuoEAjc4I0AhO+J0RoJGc+DsHhhoGxZWS0UMp+ZyUNNgXzZ6xOOxLzmAaw9mY5IRsORuTHBhqGNi+tp2gt1KyOedrPOr42X0ZGkyTM5gmMDZsORlHxoYtg2UFJiO2iOzQ89qc57VgRMLXnKFFtCLXFcXYxuYkrKFAVtXCWGuInkmVg+6psynHZMEog23lWqEPZiHn2K1jbNpzs+AZyYQcFrihYLtuO3QELue6LRhGGHZXhmGYDZm
@PseudoDoctor
PseudoDoctor / default.lua
Last active January 1, 2023 20:00 — forked from ewauq/logitech-bind-f13-f24.lua
How to: Bind F13 to F24 keys on the G-keys (Logitech Gaming Keyboards)
function OnEvent(event, arg , kb)
end