Skip to content

Instantly share code, notes, and snippets.

@ramaureirac
Last active February 3, 2025 03:43
Show Gist options
  • Save ramaureirac/598cf50fc8e017f4fc48894cf85b1178 to your computer and use it in GitHub Desktop.
Save ramaureirac/598cf50fc8e017f4fc48894cf85b1178 to your computer and use it in GitHub Desktop.
My post install for Fedora Workstation
#!/bin/sh
# adds: nonfree-codecs, steam, gnome stuff
# removes: libreoffice, rhythmbox, fedora flatpaks
if [[ "$(whoami)" != "root" ]]; then
echo "Pls run as root"
exit -1
fi
# fastest mirror + assumeyes + max downloads
echo "[main]" > /etc/dnf/dnf.conf
echo "fastest_mirror=True" >> /etc/dnf/dnf.conf
echo "max_parallel_downloads=10" >> /etc/dnf/dnf.conf
echo "assumeyes=True" >> /etc/dnf/dnf.conf
# enable third party
fedora-third-party enable
# update + rpm fusion
dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf install -y https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# install some packages
dnf remove -y libreoffice* rhythmbox
dnf update -y
# media
dnf swap -y ffmpeg-free ffmpeg --allowerasing
dnf update -y @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
# extras
dnf install -y unzip p7zip p7zip-plugins unrar
dnf install -y steam steam-devices corectrl
dnf install -y gnome-tweaks g4music menulibre blackbox-terminal
dnf install -y rpmfusion-free-release-tainted
dnf install -y libdvdcss
dnf install -y rpmfusion-nonfree-release-tainted
# flatpaks
flatpak remote-modify fedora --disable
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# icons
mkdir -p /usr/share/icons/
git clone https://github.com/zayronxio/Elementary-KDE-Icons /usr/share/icons/Elementary
# finish
echo "Post Install Complete. Pls Reboot"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment