Skip to content

Instantly share code, notes, and snippets.

@FlyinPancake
Last active January 17, 2024 12:34
Show Gist options
  • Save FlyinPancake/f86c10316800153d2b4017ab43da96c6 to your computer and use it in GitHub Desktop.
Save FlyinPancake/f86c10316800153d2b4017ab43da96c6 to your computer and use it in GitHub Desktop.

Fedora post-install goodies.

I compiled some post-installation things to do after installing fedora

DNF config

Edit /etc/dnf/dnf.conf and add these lines:

defaultyes=True
max_parallel_downloads=20
deltarpm=False # AFAIK this is now depricated

LUKS

Install dependencies

# For Workstation and Server
sudo dnf install clevis clevis-luks clevis-dracut clevis-udisks2 clevis-systemd
# For Silverblue, Kinoite, ublue etc...
sudo rpm-ostree install clevis clevis-luks clevis-dracut clevis-udisks2 clevis-systemd

Read this section from the ArchWiki article. Select these carefully.

After that store the unlock key in the TPM chip.

sudo clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"7,11"}'

If it asks for password again

If the system asks for an unlock password again just unbind the clevis key and rebind like

sudo clevis luks list -d /dev/nvme0n1p3 -s 1 # get the tpm key's slot

sudo clevis luks unbind -d /dev/nvme0n1p3 -s 1 # unbind said key

sudo clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"7,11"}' # re-bind key

# run dracut

Optional delay password prompt

Edit plymouth ask password

sudo systemctl edit systemd-ask-password-plymouth.service

and add

[Service]
ExecStartPre=/bin/sleep 10

After that create this dracut file

sudoedit /etc/dracut.conf.d/systemd-ask-password-plymouth.conf

With the contents:

install_items+=" /etc/systemd/system/systemd-ask-password-plymouth.service.d/override.conf "

Rebuild initrd for the initrd to contain the changes

# For Workstation
sudo dracut -f
# For Silverblue, Kinoite, ublue and other Atomics
sudo rpm-ostree initramfs --enable

RPMFusion, media accelaration and Nvidia

Enable rpmfusion

# run in bash, not fish!
sudo dnf  install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Meida codecs

sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin

sudo dnf groupupdate sound-and-video

# Firefox HW acceleration
sudo dnf install ffmpeg libva libva-utils

# aptX BT codec
sudo dnf install pipewire-codec-aptx

in Firefox set these 2 keys in about:config

gfx.webrender.enabled = True
media.ffmpeg.vaapi.enabled = True

Uniform GTK look

I always recommend the adw-gtk3 theme. It can be installed simply by running

sudo dnf copr enable nickavem/adw-gtk3
sudo dnf install adw-gtk3

Set in in gnome-tweaks.

Flathub

Important

Fedora 37+ now ships unfiltered Flathub! This step is not needed anymore I usually find Fedora's filter on flatpak annoying so just do this:

flatpak remote-delete flathub
flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment