Skip to content

Instantly share code, notes, and snippets.

@NicolaiSoeborg
Last active November 8, 2024 10:43
Show Gist options
  • Save NicolaiSoeborg/cf233a6b6c81a4ff4b889676b715a5e1 to your computer and use it in GitHub Desktop.
Save NicolaiSoeborg/cf233a6b6c81a4ff4b889676b715a5e1 to your computer and use it in GitHub Desktop.
Remove some of the bloat coming with ubuntu-minimal + changing defaults + flatpak
sudo apt install git htop tmux curl vim xclip
sudo apt install --no-install-recommends neovim
# Remove Ubuntu-branded XUL crapware:
sudo apt purge xul-ext-ubufox
# Stuff that I don't use:
sudo apt autoremove --purge snapd gnome-software-plugin-snap
sudo apt remove whoopsie
sudo apt remove bluez bluez-cups bluez-obexd
sudo apt purge 'cups*' foomatic-filters
sudo snap stop cups && sudo snap disable cups
# Ubuntu 24 process that listen on 0.0.0.0, no thanks:
sudo apt purge wsdd
# Remove unneeded GVFS (will remove e.g. gphoto2 and goa processes)
sudo apt remove gvfs-backends
# Removes "goa" processes
sudo apt purge gnome-online-accounts
# Remove avahi processes (local network discovery)
# sudo apt remove avahi-daemon
# ^ this will break systemd-resolve
# Remove "send crash report" box:
sudo apt remove apport apport-gtk apport-symptoms
# This will remove meta-package "ubuntu-minimal":
# sudo apt remove ubuntu-advantage-tools # same with libmbim-proxy
# Remove printer drivers (without loosing ubuntu-desktop):
sudo apt remove printer-driver-brlaser printer-driver-c2esp printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-min12xxw printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi
# Remove bunch of CUPS stuff (also printing)
sudo apt remove cups-common cups-pk-helper && sudo apt autoremove
# Fix bad defaults:
gsettings set org.gnome.desktop.interface show-battery-percentage true
gsettings set org.gnome.desktop.calendar show-weekdate true
gsettings set org.gnome.mutter attach-modal-dialogs false # modals don't "stick" to parent window
gsettings set org.gtk.Settings.FileChooser show-hidden true
# Privacy:
gsettings set org.gnome.desktop.privacy disable-microphone true
gsettings set org.gnome.desktop.privacy disable-camera true
gsettings set org.gnome.login-screen enable-fingerprint-authentication false
gsettings set org.gnome.login-screen enable-smartcard-authentication false
# Flatpak and nice tools:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.onlyoffice.desktopeditors
flatpak install flathub org.signal.Signal
flatpak install flathub com.github.PintaProject.Pinta
flatpak install flathub fr.handbrake.ghb
flatpak install flathub org.keepassxc.KeePassXC
flatpak install flathub com.vscodium.codium
flatpak install flathub org.gnome.Boxes
flatpak install flathub com.github.tchx84.Flatseal
flatpak install flathub org.remmina.Remmina
flatpak install flathub io.github.Hexchat
@parmanand99
Copy link

please attach command to disable /usr/libexec/gsd-smartcard , I don't use smartcard to login, thus not needed this service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment