Skip to content

Instantly share code, notes, and snippets.

@timsonner
Last active February 1, 2026 18:01
Show Gist options
  • Select an option

  • Save timsonner/56667c8e56b2ec9a3aec7a111056f26c to your computer and use it in GitHub Desktop.

Select an option

Save timsonner/56667c8e56b2ec9a3aec7a111056f26c to your computer and use it in GitHub Desktop.
Debloat script / after fresh install

Remove bloat from Gnome/Debian Trixie

sudo apt purge --autoremove -y \
  gnome-software gnome-software-plugin-deb gnome-software-plugin-fwupd \
  "libreoffice*" "mythes-*" "hyphen-*" "hunspell-*" \
  "fcitx*" "mozc*" "anthy*" ibus-anthy \
  "hdate*" libhdate-common \
  "dict-*" "goldendict*" \
  "mlterm*" xiterm+thai \
  thunderbird yelp \
  gnome-calendar gnome-weather gnome-contacts gnome-maps gnome-dictionary \
  gnome-music totem gnome-sound-recorder simple-scan gnome-tour malcontent \
  debian-reference-common debian-reference-en \
  fortune-mod fortunes fortunes-min

Cleanup directories

rm -rf ~/.config/libreoffice ~/.config/thunderbird ~/.config/fcitx* \
       ~/.local/share/gnome-contacts ~/.local/share/gnome-maps \
       ~/.local/share/fcitx* ~/.config/gnome-weather

Run firmware updates

fwupdmgr get-updates && fwupdmgr update

Remove flatpack shortcuts

rm /usr/share/applications/com.microsoft.Edge.desktop
rm /usr/share/applications/com.google.Chrome.desktop

blacklist nouveau driver

cat <<EOF | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
EOF

update initramfs

update-initramfs -u

reboot

reboot

/etc/apt/sources.list

deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware

deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware

# trixie-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware

Update and upgrade

apt update && apt upgrade -y

Install dependencies

apt install linux-headers-amd64

Install driver

apt install nvidia-driver nvidia-kernel-dkms firmware-nvidia-gsp firmware-misc-nonfree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment