My Fedora Silverblue 45 Setup
I’ve recently moved my website “landing page” from a bunch of static HTML pages (well, one) over to Hugo as I was interested in this technology and I have heard good things about it. I know I’m late to the game but honestly thought it was pretty decent and easy to follow for this sysadmin that’s a bit rusty when it comes to webdev. That being said - I’m not the most creative person in the world and I wasn’t really sure what to write for my first blog post so I decided just to share how I set up my Fedora Silverblue install.
I’ve been running Fedora Silverblue on my devices for the Fedora 43 & Fedora 44 cycles. Every time I do a fresh install I find myself working through the same list of tweaks and commands to set it up how I like. Due to this, I decided to document this in my Gitlab though it’s mostly for easy copy/paste commands.
Anyway, I thought for my first blog post, I’d go into more details about why I do the things that I do. Some things might be silly and that’s likely because I never knew there was a better way.
Set the hostname Link to heading
First things first, all my device hostnames are chosen as characters from the Mass Effect trilogy. the laptop I am typing this up on is called tali, my current phone is liara and my old phone was garrus.
hostnamectl set-hostname tali
SSD mount options Link to heading
This step works around a bug specific to Atomic Desktops. the root filesystem ignores the mount options in /etc/fstab, so zstd compression isn’t actually enabled on root by default. The workaround, which is marked as a common bug of the Fedora Discourse, is to pass the options as kernel arguments instead.
While I’m at it, I also add noatime. By default, Linux writes an access timestamp every time a file is read. That’s a lot of pointless small writes, and turning it off is kinder to an SSD (and marginally quicker).
Note: I change the btrfs volume labels to @ and @home so if you’ve used defaults then the below will not work.
sudo rpm-ostree kargs --delete=rootflags=subvol=@ --append=rootflags=subvol=@,compress=zstd:1,noatime
sudo sed -i -z 's/UUID/#UUID/' /etc/fstab
sudo sed -i 's/compress=zstd:1/noatime,compress=zstd:1/' /etc/fstab
Hide the GRUB menu Link to heading
I personally rarely use the GRUB menu and when I do it’s easy enough to get it to appear so I use a user.cfg file to hide the menu.
sudo -i
echo "set timeout_style=hidden" > /boot/grub2/user.cfg
logout
Remove unwanted repos Link to heading
Simple enough - I prefer not to use rpm-ostree layering so this is just a waste of time and download.
sudo rm /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:phracek\:PyCharm.repo /etc/yum.repos.d/google-chrome.repo /etc/yum.repos.d/rpmfusion-nonfree-steam.repo /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo
Since I also use Flatpak for apps, might as well disable the openh264 repo.
sudo sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/fedora-cisco-openh264.repo
Update the system Link to heading
Fedora doesn’t refresh the ISOs after release (officially) so a fresh install can already be weeks or months behind. I like to fix the btrfs compression before doing this. There has been a bug in Fedora 44 that the --reboot flag doesn’t work due to the GNOME Software dnf5 backend changes so you might need to manually reboot.
rpm-ostree upgrade --reboot
Firmware updates Link to heading
One of the nice things about ThinkPads is that Lenovo publishes firmware to the Linux Vendor Firmware Service (LVFS). That means firmware updates can all be installed straight from Gnome Software:
sudo fwupdmgr refresh --force
sudo fwupdmgr get-devices
sudo fwupdmgr get-updates
sudo fwupdmgr update
Applications Link to heading
Swap Fedora Flatpaks for Flathub Link to heading
Silverblue comes with Fedora’s own Flatpak remote enabled. I am not the biggest fan of these and I find I have a few issues, especially when it comes to codecs. For this reason I prefer Getting them from Flathub.
flatpak remote-modify --disable fedora
sudo systemctl disable flatpak-add-fedora-repos.service
flatpak remove --all --delete-data --assumeyes
sudo flatpak repair
Install from Flathub Link to heading
Then it’s time to enable Flathub and start installing some applications.
flatpak remote-modify --enable flathub
flatpak install flathub --assumeyes be.alexandervanhee.gradia com.discordapp.Discord com.github.tchx84.Flatseal com.mattjakeman.ExtensionManager com.rtosta.zapzap de.haeckerfelix.Fragments de.haeckerfelix.Shortwave io.gitlab.news_flash.NewsFlash org.fedoraproject.MediaWriter org.gimp.GIMP org.gnome.baobab org.gnome.Boxes org.gnome.Calculator org.gnome.Calendar org.gnome.Characters org.gnome.clocks org.gnome.Connections org.gnome.Contacts org.gnome.Decibels org.gnome.DejaDup org.gnome.Firmware org.gnome.font-viewer org.gnome.Fractal org.gnome.Logs org.gnome.Loupe org.gnome.Maps org.gnome.Papers org.gnome.Showtime org.gnome.SimpleScan org.gnome.Snapshot org.gnome.TextEditor org.gnome.Weather org.libreoffice.LibreOffice org.mozilla.firefox org.mozilla.thunderbird page.tesk.Refine
Quick clean-up in case I left anything behind.
flatpak remove --unused --delete-data
Firefox Link to heading
Silverblue includes Firefox as an RPM in the base image. I use the flathub version instead. Technically I can remove this from the image using rpm-ostree but I’d prefer leaving it unaltered so I just hide the RPM version of firefox from the app overview.
At the time of writing, there is also a bug with the firefox flatpak where the symbolic icon doesn’t show in the media player in the notification tray so I just use a wee workaround to get that fixed, not really necessary but it does annoy me more than I would like to admit when it has that generic app icon.
sudo mkdir -p /usr/local/share/applications/
sudo cp /usr/share/applications/org.mozilla.firefox.desktop /usr/local/share/applications/
sudo sed -i "2a\\NotShowIn=GNOME;KDE" /usr/local/share/applications/org.mozilla.firefox.desktop
sudo cp /usr/local/share/applications/org.mozilla.firefox.desktop /usr/local/share/applications/firefox.desktop
sudo update-desktop-database /usr/local/share/applications/
rm --recursive --dir ~/.config/mozilla/
EasyEffects Link to heading
ThinkPad speakers are shite, so I use EasyEffects and a convolver along with an impulse file which I grabbed from the Arch Wiki.
flatpak install flathub --assumeyes com.github.wwmm.easyeffects
GNOME extensions Link to heading
Believe it or not, I only use one GNOME extension nowadays (well, two if you include the Fedora background logo that comes preinstalled).
Caffeine adds a button in the quick menu (I think that’s what Gnome calls it) that prevents my laptop from going to sleep.
gdbus call --session --dest org.gnome.Shell.Extensions --object-path /org/gnome/Shell/Extensions --method org.gnome.Shell.Extensions.InstallRemoteExtension "caffeine@patapon.info"
Well… there we go. Link to heading
Not very exciting, I know. It’s a pretty basic setup when it comes to it but this doesn’t include setups for any of my toolbox containers, which I admit I don’t have written down anywhere and generally just wing it. Hope you enjoyed reading.