A fully automated post-install script that configures your system for production and creative workflows across Fedora, Arch, Ubuntu, Linux Mint, and Debian.
🎯 Includes NVIDIA drivers, Flatpak setup, media codecs, hardware acceleration, archive utilities, and more — with clean progress feedback.
- 🧠 Detects your OS (Fedora, Arch, Ubuntu, Linux Mint, or Debian)
- ⚙️ Installs the latest NVIDIA drivers (open or proprietary)
- 🧩 Replaces Snap with Flatpak on Ubuntu
- 🌱 Prepares Linux Mint with i386 support, latest NVIDIA drivers, and curated multimedia defaults
- 🌐 Reinstalls Firefox via Mozilla’s official APT repository
- 🎬 Enables media codecs, Celluloid + MPV for GNOME, MPC-QT + MPV for KDE Plasma, and GPU acceleration
- 🗜️ Adds archive tools (
7zip,rar,file-roller, etc.) - 🧱 Clean
Installing... / Installed.feedback for every step
Fedora users benefit from a streamlined, fully native NVIDIA and multimedia setup:
-
⚙️ Automatic NVIDIA driver installation
Installs the latest availableakmod-nvidiapackage with CUDA support, ensuring your GPU drivers are rebuilt automatically across kernel updates. -
🧩 Open kernel module for RTX 4000+
For RTX 4000 series and newer GPUs, Fedora needs a build macro to enable the open NVIDIA kernel module before installing the driver.
The script sets this automatically. Manually, you can run:# Set open kernel module macro (one-time step for RTX 4000+) sudo sh -c 'echo "%_with_kmod_nvidia_open 1" > /etc/rpm/macros.nvidia-kmod'
After this is set,
akmodswill build using the open NVIDIA kernel module. -
🎬 Full multimedia stack
Installsgstreamer1-plugins-*,ffmpeg, and related codecs to unlock playback support in all major apps. -
🧱 Archive utilities
Installs common compression tools such as7zip,unrar, andfile-roller. -
🌐 Flatpak + Flathub
Ensures Flatpak is enabled and Flathub is configured as the primary source for desktop applications.
Together, these ensure a smooth Fedora experience with open driver support, media acceleration, and production-ready utilities.
When the script detects Arch Linux running the Cinnamon desktop, it layers on a tailored experience to bring Mint-like polish to the stock Arch install:
- 🧰 Desktop essentials preinstalled —
ristretto,papers,gedit,gnome-calculator,papirus-icon-theme,file-roller, andnemo-filerollerare installed in one shot so the desktop feels ready immediately. - 🗜️ Clean file manager integration — automatically removes
engrampato avoid duplicate archive handlers and letsnemo-filerollertake over compression/extraction duties. - 🎨 Mint artwork bundle (AUR) — builds the large
mint-artworkpackage viaparuwith a quiet spinner + log file so the terminal stays tidy while themes, icons, sounds, and LightDM slick greeter assets install. - 🔐 LightDM configured automatically — once the artwork lands,
/etc/lightdm/lightdm.confis patched to uselightdm-slick-greeter, matching the Mint visual style right at login. - 🎬 Cinnamon media stack — installs GNOME Showtime plus
gstreamer,gstreamer-vaapi, and the full GST plugin families, then addsffmpegthumbnailerfor rich file previews.
These additions only run on Arch+Cinnamon systems; other Arch desktops continue to receive the lean, DE-aware defaults.
Linux Mint 22+ systems are prepped for gaming and creative work with minimal manual intervention:
-
🧱 Enables 32-bit (i386) architecture and updates immediately
Adds the i386 architecture if missing, then runs a fullapt update && apt upgrade -yso your base system is current before drivers land. -
⚙️ Installs NVIDIA drivers via the graphics-drivers PPA
Adds the official Graphics Drivers PPA, installslinux-headers-$(uname -r),build-essential, anddkms, then picks the right driver:- RTX 4000/5000 → latest
nvidia-driver-###-open - RTX 3000 and older → latest
nvidia-driver-###
Falls back toubuntu-drivers autoinstallif detection ever fails.
- RTX 4000/5000 → latest
-
💾 Optimizes memory and filesystem tooling
Setsvm.swappiness=10(runtime + persistent) so RAM is preferred over swap, then installsunzip,ntfs-3g,p7zip,curl,bzip2,tar,exfat-fuse,wget,unrar, andgstreamer1.0-vaapi. -
🎬 Maximizes multimedia support
Ensures themint-meta-codecsbundle is installed so H.264, HEVC, and other formats play instantly. -
🚀 Enables NVIDIA VAAPI playback
Installsnvidia-vaapi-driverso compatible players can tap the GPU for decoding workloads. -
📺 Installs GNOME Showtime from Flathub
Verifies Flatpak is present, then installsorg.gnome.Showtimefor a modern video playback experience.
Ubuntu users get a clean, optimized, and GPU-ready setup automatically:
-
🧹 Removes Snap packages completely
The script purges Snap and related services using the includedsnap-to-flatpak.shhelper. -
🔄 Switches to Flatpak
After Snap removal, Flathub is added as the default Flatpak remote. -
⚙️ Installs NVIDIA drivers intelligently
The script detects your GPU generation and installs the latest compatible driver:- For RTX 4000 series and newer → Installs the latest available NVIDIA Open Kernel Module driver (e.g.,
nvidia-driver-580-open). - For RTX 3000 series and earlier → Installs the latest proprietary NVIDIA driver automatically.
- If detection fails for any reason, it falls back to:
sudo ubuntu-drivers autoinstall
- For RTX 4000 series and newer → Installs the latest available NVIDIA Open Kernel Module driver (e.g.,
-
🌐 Restores Firefox from Mozilla’s official repository (no PPA)
Removing Snap removes the Snap-based Firefox, so the script reinstalls Firefox from Mozilla’s official APT repository (with GPG + pinning) to get a native.deb:✅ Verified GPG Key Fingerprint:
35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3
Together, this ensures a Flatpak-friendly Ubuntu with a native, GPU-optimized system and up-to-date Firefox.
Debian 13 (Trixie) systems get a modernized desktop with sane defaults out of the box:
- 🔄 Full update + repo refresh — runs
apt update && apt full-upgrade -y, backs up and comments your stock/etc/apt/sources.list, then writes the Trixiemain contrib non-free non-free-firmwaresources and refreshes apt. - 📦 extrepo enabled with contrib/non-free — installs
extrepoand uncommentscontribandnon-freein/etc/extrepo/config.yamlso you can easily add third-party repos. - 🌀 Backports kernel/firmware refresh — adds
/etc/apt/sources.list.d/trixie-backports.list, refreshes apt, and installs backportedlinux-image-amd64,linux-headers-amd64, andfirmware-misc-nonfree. - ⚙️ NVIDIA headers + drivers (open or proprietary) — installs
linux-headers-$(uname -r)andbuild-essential, adds the NVIDIA CUDA repo keyring (wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb && sudo dpkg -i cuda-keyring_1.1-1_all.deb), runssudo apt update, then installsnvidia-openfor RTX 4000/5000 series orcuda-driversfor older GPUs. - 🎬 Hardware acceleration — adds
nvidia-vaapi-driverfor GPU-backed decoding. - 🌐 Flatpak + Flathub + desktop tooling — installs Flatpak, adds Flathub, and installs Flatseal + Bazaar for managing and browsing Flatpaks.
- 🗜️ Essential tools + codecs + fonts — installs CLI essentials (
git,curl,wget,fastfetch,htop,ffmpeg, build tools, archive utils, NTFS support), Microsoft core fonts, and Noto (Latin + CJK). - 🧩 GNOME niceties (GNOME desktops only) — installs GNOME Tweaks, GNOME Shell Extension Manager, and the GNOME Software Flatpak plugin.
These steps aim to keep Debian close to upstream while enabling common multimedia, GPU, and desktop conveniences with minimal manual effort.
git clone https://github.com/ArcticLatent/post-linux.git
cd post-linux
chmod +x post_linux.sh
./post_linux.shFollow the interactive prompts to choose your distro and GPU series.
Debian note: Debian 13 user accounts do not have sudo by default. Run the script as root with:
su -c "bash <(wget -qO- https://raw.githubusercontent.com/ArcticLatent/post-linux/refs/heads/main/post_linux.sh)"./post_linux.sh --check-update— see if a newer release is available../post_linux.sh --update— download the latest copy and rerun automatically../post_linux.sh --version— print the currently installed version.- Set
POST_LINUX_SOURCEto point at an alternate raw URL if you host your own fork.
The script compares its local SCRIPT_VERSION against the remote source and offers to self-update before running the main workflow.
- Internet connection
sudoprivileges- Recommended: reboot after first full update
Burce Boran 🎥 Asset Supervisor / VFX Artist | 🐧 Arctic Latent
MIT License © 2025 Burce Boran
Contributions welcome — open a PR or issue!