What are the first commands that I run after installing a Debian based Linux distribution?

Hello beautiful peoples!

I’ve noticed a pattern. Every time I have installed a Debian based Linux distribution, after I am logged into the distro for the first time I am always running a set (or subset) of commands from the terminal:

sudo su
passwd
apt -y update && apt -y upgrade && apt -y dist-upgrade && apt -y full-upgrade && apt -y --purge autoremove && snap refresh

IF there were any packages that were kept back I am installing them now with:

apt -y install gjs libgjs0g

where gjs and libgjs0g are names of the kept packages, and then I remove firefox, install some apps (depending on what the machine will be used for) and restart the machine

snap remove firefox
apt -y install mc htop hardinfo
ubuntu-drivers autoinstall
reboot

Some people will tell you “Wah wah wah don’t run dist-upgrade or full-upgrade blah blah blah…”. Doing it for years. Never caused a single problem for me. Keeping my systems 100% updated is priority number one.

I hope this helps!

Catch you on the flip side,

AndrzejL

Avatar photo

AndrzejL

“Some men just want to watch the world burn.”

4 Comments:

  1. Pingback: Why can’t I close mc / mcedit in Ubuntu with F10 keyboard shortcut? And how to fix it. – Andrzej Langowski

  2. Pingback: Proxmox does not like Wayland. How to switch back to Xorg in Ubuntu? – Andrzej Langowski

  3. Pingback: Ubuntu 22.04 LTS Samba (SMB) share. Nice and easy. – Andrzej Langowski

  4. Pingback: How I Run Linux GUI Apps With WSL2 on Windows. – Andrzej Langowski

Leave a Reply

Your email address will not be published. Required fields are marked *