I have been trying different linux distros in the past years and found myself coming back to Fedora a few times until I finally settled with it for my daily driver. I wanted to automate things I did after the initial installation, so here it is:
A post-installation setup script for Fedora Linux, focusing on gaming, development, and multimedia support. Sets up drivers, codecs, gaming tools, development environments, and a few quality-of-life tweaks.
This repo only handles the system-level bootstrap. Personal dotfiles (shell, terminal, KDE config, etc.) live in a separate repo and are managed with GNU Stow.
post_install.sh— installs RPM Fusion, multimedia codecs, GPU drivers, gaming stack (Steam / Wine / GameMode / MangoHUD), development tools (uv, rustup), Sunshine, fonts, Starship, sets up Quad9 DNS-over-TLS, applies hardware-specific fixes (MT7922 wifi, Logitech MX Vertical button remap via logiops, ASUS fan curves), and a few KDE cleanups.etc/dnf/dnf.conf— sane DNF defaults copied to/etc/dnf/.etc/logid.cfg— logiops config; remaps the MX Vertical's firmware-trapped top DPI button toF12via uinput.etc/systemd/resolved.conf.d/10-dns-over-tls.conf— sends all DNS to Quad9 over TLS through systemd-resolved.etc/udev/rules.d/99-logid-rebind.rules— restartslogidwhen the MX Vertical wakes from deep sleep, so the DPI→F12 remap survives reconnects (logiops drops the binding otherwise).etc/udev/rules.d/61-drm-gpu-names.rules— stable/dev/dri/nvidia-dgpu//dev/dri/amd-igpunames on hybrid laptops (for picking KWin's GPU viaKWIN_DRM_DEVICES).etc/udev/rules.d/50-usb-ethernet-autosuspend.rules— keeps an AX88179 USB Ethernet dongle from autosuspending.extras/zapret/— optional Discord DPI-unblock config, see below.install.sh— thin wrapper that copiesetc/and runspost_install.sh.
The same script runs on both. It reads the machine type from the firmware (chassis type) and you can override it with PROFILE=laptop|desktop. Each hardware step also checks for its own device:
| Step | Runs when |
|---|---|
| NVIDIA driver + nouveau blacklist | an NVIDIA GPU is present |
| LACT (AMD GPU control panel) + nvtop | a discrete AMD Radeon ("Navi") is present |
| asusctl + Performance fan curve | ASUS laptop |
| MT7922 wifi fixes | the mt7921e driver is in use |
| logiops | a Logitech device is plugged in |
Off by default; enable with environment variables:
sudo WITH_OLLAMA=1 WITH_ZAPRET=1 ./install.shWITH_OLLAMA=1— installs Ollama (local LLM server).WITH_AMD_OVERDRIVE=1— addsamdgpu.ppfeaturemask=0xffffffffto the kernel cmdline so LACT can undervolt/overclock a Radeon (fan curve and power limit work without it). Taints the kernel.WITH_ZAPRET=1— installs zapret with the config inextras/zapret/to get around ISP DPI blocking of Discord. Seeextras/zapret/README.md.
The dnf and flatpak package lists live in post_install.sh under the Software Installation section.
-
Clone this repository:
git clone https://github.com/yourusername/fedora_post_install.git cd fedora_post_install -
Run the installer with sudo:
sudo ./install.sh
The installer will:
- Copy
etc/configurations into/etc/ - Run
post_install.sh
Please review the scripts before running them. In particular check post_install.sh for the package list, kernel cmdline args, and DNS settings.
Contributions are welcome! Please feel free to submit a Pull Request. Here's how you can contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Keep scripts POSIX-compliant where possible
- Add comments explaining complex operations
- Update documentation when adding new features
- Test your changes before submitting
- Follow the existing code style
The scripts in this repository modify system settings and install packages. Please review the code before running it on your system. While we strive to maintain security, use at your own risk.
This project is licensed under the MIT License - see the LICENSE file for details.
- RPM Fusion for additional package repositories
- Starship for the cross-shell prompt