November 19, 2026 · Homelab, Linux

Linux setup notes: the commands I keep re-googling

See updates before you apply them

sudo apt list --upgradable
sudo apt update && sudo apt upgrade -y

Reading the list first lets you spot a kernel or driver change you might want to hold back, instead of upgrading blind.

Remove a PPA properly

sudo add-apt-repository --remove ppa:agornostal/ulauncher
sudo apt remove ulauncher

Removing only the package leaves the repository registered, so apt keeps checking it forever. Removing the PPA is the step most people forget.

Self-hosted remote desktop with RustDesk

wget https://github.com/rustdesk/rustdesk/releases/download/1.3.7/rustdesk-1.3.7-x86_64.deb
sudo apt install ./rustdesk-1.3.7-x86_64.deb

An open-source alternative to TeamViewer that lets you run your own relay server, so remote-access traffic never touches a third party.

Find every device on your network

sudo nmap -sT -O 192.168.1.0/24 > nmap_output

A TCP connect scan with OS detection gives you a device inventory. Run it now and again later to spot anything new that joined your LAN. Only scan networks you own.

A better terminal: Tilix and Fish

chsh -s /usr/bin/fish

Tilix gives you split panes in one window. Fish gives you autosuggestions and syntax highlighting with no configuration.

Installing a .run file

chmod +x some-app.run
./some-app.run

These are self-extracting scripts, not packages, so apt cannot uninstall them. Know what you are installing, because removal is manual.

Why this is useful

These are commands you only need every few months, which is exactly why they get forgotten. Homelabbers get a quick network audit and a private remote-desktop option. Anyone new to Linux gets habits that avoid clutter and surprises.