Skip to content

Instantly share code, notes, and snippets.

@Lyvendia
Last active July 14, 2024 09:33
Show Gist options
  • Save Lyvendia/3d03a6415b5d0610d74b27d34e4d4546 to your computer and use it in GitHub Desktop.
Save Lyvendia/3d03a6415b5d0610d74b27d34e4d4546 to your computer and use it in GitHub Desktop.
My Debian Desktop post-installation steps

Debian GNOME Desktop post-installation steps

Make sure you do not set a root password during installation, so that your user is automatically added to the sudo group.

Cleaning

Clean up unused packages and install gnome-shell-extension-appindicator:

sudo apt autopurge gnome-games evolution transmission-gtk gnome-shell-extension-appindicator+

Don't forget to activate the AppIndicators extension after logging out and in again!

Flatpak

Set up flatpak, flathub and install bitwarden and signal as flatpak:

sudo apt install flatpak gnome-software-plugin-flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install app/com.bitwarden.desktop/x86_64/stable app/org.signal.Signal/x86_64/stable

Fancy boot

Reset GRUB menu colours, remove Debian's blue menu colour:

echo 'set menu_color_normal="white/black"' | sudo tee -a /etc/grub.d/40_custom
echo 'set menu_color_highlight="black/light-gray"' | sudo tee -a /etc/grub.d/40_custom

Set up Plymouth and quiet boot for a nice boot animation, and configure GRUB (remember to adjust the resolution in GRUB_GFXMODE if necessary):

sudo apt install plymouth-themes
sudo plymouth-set-default-theme -R bgrt
sudo mkdir -p /etc/default/grub.d
sudo tee /etc/default/grub.d/50-custom-settings.cfg << 'END'
# Append the following parameters to GRUB_CMDLINE_LINUX_DEFAULT to enable Plymouth and hide errors at boot time
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT loglevel=3 systemd.show_status=auto rd.udev.log_level=3 splash"

# Set the resolution of the GRUB menu to match your monitor resolution and automatically pass that resolution to Linux
GRUB_GFXMODE=2560x1440x32,auto
GRUB_GFXPAYLOAD_LINUX=keep

# Disable the default GRUB wallpaper
GRUB_BACKGROUND=""
END

sudo update-grub

Optional

Locales

Enable any additional system locales. Adapt to your needs:

sudo dpkg-reconfigure locales
sudo apt install task-german task-german-desktop
sudo flatpak config languages --set 'en;de' && flatpak update

and then adjust the locale and language settings in GNOME, Firefox, Libreoffice, etc.

Easy updates

Enable easy updates without restarting your computer:

echo "%sudo	ALL=(ALL:ALL) NOPASSWD:/usr/bin/apt update, /usr/bin/apt upgrade" | sudo tee /etc/sudoers.d/update

and now create a new shortcut with the following command:

gnome-terminal -- bash -c 'sudo apt update && sudo apt upgrade && flatpak update; exec bash'

Kernel backports

If running on very new hardware: enable the backports repository and install a later kernel from it:

release=$(grep CODENAME /etc/os-release | cut -d'=' -f 2)
echo "deb http://deb.debian.org/debian ${release}-backports main" | sudo tee /etc/apt/sources.list.d/backports.list
sudo apt update && sudo apt install linux-image-amd64/${release}-backports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment