Quick tips: Getting the most out of Debian (add yours)

Debian is one of, if not the most stable Linux distro.

Like the other distro categories, I wanted to start a thread where we can all share our favorite tips and tricks for getting the most out of Debian. I’ll kick things off with a few:

  • Get familiar with apt vs apt-get. For day-to-day use apt is cleaner, but apt-get (and apt-cache) is still better for scripting since its output is more stable. See: Debian wiki on Apt
  • Know which release you’re tracking and what that means. Stable is rock solid but packages are older, Testing gets you newer stuff with some risk, and Sid is rolling. Mixing them without understanding pinning will break things. See: Debian Releases
  • Enable backports if you need a newer version of a specific package without leaving Stable. It’s the officially supported way to cherry-pick newer software.
  • Use apt list --upgradable for a quick preview, and needrestart to identify services that should be restarted after updates. (Install with apt install needrestart)
  • Kali Linux documentation is a goldmine for Debian troubleshooting too, since Kali is built on top of Debian. Worth bookmarking: Kali Docs | Kali Linux Documentation
  • Read the Release Notes before doing a major version upgrade. Debian is great about documenting known issues and required manual steps.

What are your go-to Debian tips? Anything you wish you’d known when you started? Drop them below and let’s build a nice reference for everyone.

4 Likes

Hayden, it would help if you offered the command which presents the display shown in the first snapshot. :slight_smile:

2 Likes

I appreciate a LOT of features that Debian provides, but like many people, I want to maintain my systems as quickly and efficiently as possible. My solution - and it really is not limited to Debian, is to create bash command aliases for whatever common tasks I perform.

Given that I run other distributions besides Debian ones, I try to use as many of the same alias definitions as possible, and when it’s a different system, I change the contents of the alias command while using the very same alias - for example: I use u to update and upgrade my system software, and I change the alias command to suit each different distribution I use.

GUI interfaces are easy because they are point and click, but one or two character alias definitions run much faster than the typical GUI-based Welcome Center or System Management interface.

How about you? Am I the only one who does such things?

2 Likes

It was already included. needrestart. So as its system services I used:

sudo needrestart

2 Likes

Thank you. It wasn’t obvious for my ancient brain! :slight_smile:

2 Likes

No worries, I locked my keys in the car two times this year already. :laughing: Also cut and pasted from tldr (referenced it in another post but I personally use it a lot sometimes to get the quick useful commands, and othertimes because I can’t remember the options/flags lol):

  • List outdated processes:
    needrestart
  • Interactively restart services:
    sudo needrestart
  • List outdated processes in [v]erbose or [q]uiet mode:
    needrestart -v|q
  • Check if the [k]ernel is outdated:
    needrestart -k
  • Check if the CPU microcode is outdated:
    needrestart -w
  • List outdated processes in [b]atch mode:
    needrestart -b
  • List outdated processed using a specific [c]onfiguration file:
    needrestart -c path/to/config

Absolutely, I guess for us Linux users it’s like programming speed dial buttons on a phone instead of dialing the full number every time. These are the time saving things that make Windows such a chore to use.

Agreed! Speed and more efficient ux.

May I bring some fun here, please?
You see, table-top phones have dial pad just like numeric keys on keyboard. Well, once upon a time, I noticed signs of potential server problem and had to call server room. I began to press phone buttons and suddenly felt stumbled. The mere absence of dot . on phone keyboard froze me. After a brief stupor I understood that I tried to type server’s IP address instead of phone number. :rofl:

3 Likes

Let’s be thankful there was no . or you would have been complaining that the phones were down now to! lol

1 Like

That is hillarious! Good one! :rofl:

1 Like