Skip to content

Latest commit

 

History

History
149 lines (143 loc) · 3.87 KB

F40.md

File metadata and controls

149 lines (143 loc) · 3.87 KB

Fedora

Pass inst.sdboot on the installer GRUB menu for systemd-boot instead of GRUB

Installation partition

  • EFI partition at /boot/efi @ 1024 MiB
  • BTRFS volume labeled system, not mounted @ max available size

subvolumes: /, /home, /.snapshots

  • keep /data ext4 partition

Post-installation

DNF configuration

sudo nano /etc/dnf/dnf.conf

Append the following

#excludepkgs=kernel*
deltarpm=true
max_parallel_downloads=5
#install_weak_deps=False

Disable unneeded repos

sudo sed -i 's/enabled=1/enabled=0/' \
  /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo \
  /etc/yum.repos.d/fedora-cisco-openh264.repo \
  /etc/yum.repos.d/google-chrome.repo \
  /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo \
  /etc/yum.repos.d/rpmfusion-nonfree-steam.repo

Enable RPM Fusion (if not enabled)

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

Then

sudo dnf update -y

Disable Fedora Flathub repo & enable default Flathub repo for user

Remove Fedora Flathub repo

flatpak remote-delete flathub

Enable default Flathub repo for user

flatpak remote-add -u --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Check firmware updates

sudo fwupdmgr get-devices 
sudo fwupdmgr refresh --force 
sudo fwupdmgr get-updates 
sudo fwupdmgr update

TLP, throttled, zcfan, python-validity, openssl, fonts, and other utilities

Remove thermald and power-profiles-daemon + firefox and langpacks

sudo dnf remove thermald power-profiles-daemon firefox firefox-langpacks -y

Remove initial firefox directory:

rm -r ~/.mozilla/

Enable COPRs:

sudo dnf copr enable sneexy/python-validity
sudo dnf copr enable abn/throttled

Install:

sudo dnf install tlp tlp-rdw throttled openssl zcfan rsms-inter-fonts wl-clipboard celluloid jetbrains-mono-fonts flameshot btrfs-assistant firewall-config open-fprintd fprintd-clients fprintd-clients-pam python3-validity

TLP & throttled configs

TLP

cp tlp.conf /etc/tlp.conf

throttled

cp throttled.conf /etc/throttled.conf

Disable rfkill

systemctl mask systemd-rfkill.service systemd-rfkill.socket

Enable TLP & throttled

systemctl enable --now tlp throttled

zcfan configs & module

Copy config

cp zcfan.conf /etc/zcfan.conf

Enable fancontrol module

sudo -i
echo options thinkpad_acpi fan_control=1 > /etc/modprobe.d/99-fancontrol.conf
exit

Enable throttled on next boot systemctl enable zcfan

Configure fingerprint

From sneexy/python-validity

sudo systemctl start python3-validity.service
sudo systemctl start open-fprintd.service
sudo systemctl enable open-fprintd-resume.service open-fprintd-suspend.service open-fprintd.service python3-validity.service
sudo authselect enable-feature with-fingerprint
sudo authselect apply-changes
sudo authselect current

Alternative services for suspend/resume

sudo systemctl disable open-fprintd-resume.service open-fprintd-suspend.service
sudo systemctl enable open-fprintd-restart-after-resume.service python3-validity-restart-after-resume.service

Media codecs

sudo dnf swap 'ffmpeg-free' 'ffmpeg' --allowerasing
sudo dnf swap libva-intel-media-driver intel-media-driver --allowerasing
sudo dnf install ffmpeg gstreamer-ffmpeg
sudo dnf install ffmpeg ffmpeg-libs libva libva-utils

Other services

Disable NM-wait-online

sudo systemctl disable NetworkManager-wait-online.service

Enable firewall

sudo enable --now firewalld

Install fish

sudo dnf install fish -y

Copy fish configs

To do

Change default shell to fish

sudo usermod --shell /usr/bin/fish (whoami)