1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-21 09:21:34 -05:00

Configure PCR pinning

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-11-11 15:32:40 -07:00 committed by GitHub
parent 60a3a87f35
commit fec32ae3f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
dom0.sh
View File

@ -17,15 +17,19 @@
set -eu
# Enabling discard and fstrim
sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf
sudo sed -i 's/issue_discards = 0/issue_discards = 1/' /etc/lvm/lvm.conf
sudo systemctl enable --now fstrim.timer
sudo qubes-dom0-update anti-evil-maid qubes-ctap-dom0 qt5ct qt5-qtstyleplugins
# Configure PCRs
sudo sed -i 's/ --pcr 19//' /etc/anti-evil-maid.conf
sudo sed -i 's/="/="--pcr 0 --pcr 1 --pcr 2 --pcr 3 --pcr 4 --pcr 5 /' /etc/anti-evil-maid.conf
# Theming
# After a reboot, run qt5ct and set the theme to gtk-2
sudo qubes-dom0-update anti-evil-maid qubes-ctap-dom0 qt5-qtstyleplugins
echo 'QT_QPA_PLATFORMTHEME=gtk2' | sudo tee -a /etc/environment
# Add extra gtk theming - this is probably not necessary, but why not