Update 'pc_fedora.md'

This commit is contained in:
ducoterra
2023-04-25 13:06:18 +00:00
parent 9f6b611410
commit 8a557177d4

View File

@@ -218,24 +218,21 @@ Vitals:
`sudo dnf install vim`
It's a friendlier experience to just encrypt your root partition with tpm
and unlock your remaining drives with key files stored at /etc/lukskeys. This
way you only need to reregister one key with your tpm and the remaining drives
will be unlocked automatically.
https://gist.github.com/jdoss/777e8b52c8d88eb87467935769c98a95
Create a function in ~./bashrc.d/cryptenroll.sh:
```bash
function tpm-luks-enroll {
read -s -p "Password: " PASSWORD
export PASSWORD=$PASSWORD
sudo -E systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+4+7 /dev/nvme1n1p3
sudo -E systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+4+7 /dev/nvme2n1p1
unset password
}
function tpm-luks-reenroll {
read -s -p "Password: " PASSWORD
export PASSWORD=$PASSWORD
sudo -E systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+4+7 --wipe-slot=tpm2 /dev/nvme1n1p3
sudo -E systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+2+4+7 --wipe-slot=tpm2 /dev/nvme2n1p1
unset password
}
```
@@ -330,6 +327,18 @@ cd ~/.local/share/Steam/
./steam.sh --reset
```
## OBS
https://www.reddit.com/r/linux_gaming/comments/w4i3qf/easy_way_to_get_good_4k_60fps_obs_encoding/
```bash
sudo flatpak install \
com.obsproject.Studio \
com.obsproject.Studio.Plugin.Gstreamer \
org.freedesktop.Platform.GStreamer.gstreamer-vaapi \
com.obsproject.Studio.Plugin.OBSVkCapture
```
## Power Button Behavior
The power button is controlled from 2 locations: