Skip to content

Instantly share code, notes, and snippets.

View jumpyvi's full-sized avatar
🦆

JumpyVi jumpyvi

🦆
View GitHub Profile
brew install qemu libvirt && flatpak install org.virt_manager.virt-manager -y
sudo useradd -r -M -s /sbin/nologin libvirt-qemu
sudo groupadd libvirt
sudo usermod -aG libvirt $(whoami)
sudo mkdir -p /var/lib/libvirt/images
sudo mkdir -p /var/run/libvirt
sudo chown -R libvirt-qemu:libvirt /var/lib/libvirt/images
sudo chmod 750 /var/lib/libvirt/images
@jumpyvi
jumpyvi / tpm-unlock.sh
Created November 5, 2024 21:35
TPM-Autounlock (fedora)
#!/bin/bash
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others
## This is a backup version from Universal Blue
set -eou pipefail
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;}
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!"
echo "All AMD Zen2 and Zen3 Processors are known to be affected!"
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!"