← Harden & defendthe linux laptop security baseline you actually need

the linux laptop security baseline you actually need

$sudo ufw enable

the linux laptop security baseline you actually need

you just installed linux. nice. distro looks clean, terminal feels like home, you're ready to be a hacker in a hoodie. except right now your firewall is probably off, your disk might not be encrypted, your screen never locks, and your firmware hasn't been patched since it left the factory. none of that is dramatic, it's just default. defaults are built for "it works," not "it's safe." here's the baseline you actually want before you trust that laptop with your real life.

step one: check if your disk is actually encrypted

a lot of people assume their disk is encrypted because they clicked through the installer fast and it "felt secure." feelings don't encrypt disks. run this and actually look at the output:

lsblk

you're looking for a line that says crypt next to your root partition. if you see that, your disk is encrypted with luks and if the laptop gets stolen, whoever has it is staring at scrambled data instead of your files, your browser history, and your saved wifi passwords. if you don't see crypt anywhere, your disk is sitting there in plain text. anyone who pulls the drive can read everything with zero effort. if that's you, the real fix is backing up your data and reinstalling with full disk encryption turned on at setup, since turning it on after the fact isn't a quick toggle.

step two: turn the firewall on, because it's probably not

ubuntu and most debian based distros ship with ufw installed but inactive. inactive means every port your system is listening on is wide open to whatever network you're connected to, including that coffee shop wifi you joined without thinking twice. turn it on:

sudo ufw enable

that single command flips your laptop from "accepting connections from anywhere" to "default deny unless i say otherwise." you can check what it's doing with:

sudo ufw status verbose

if you run specific services, like a local dev server or ssh, you allow those explicitly instead of leaving everything open. the whole point of a firewall is you decide what gets in, not your distro's install defaults.

step three: lock your screen automatically, not just when you remember

most people lock their screen manually, which means most people forget half the time. auto lock after 5 minutes of inactivity means the laptop locks itself whether you remember or not, whether you stepped away for coffee or fell asleep mid youtube video. in gnome this lives in settings under privacy, screen lock. in kde it's under workspace behavior, screen locking. the setting itself takes ten seconds, and it's the difference between someone walking by your desk and just browsing your open session versus hitting a lock screen and giving up.

step four: patch your firmware, the layer everyone forgets

here's the part almost nobody does. you patch your os, you patch your browser, you maybe even patch your apps. firmware, the low level code that runs before your os even boots, usually never gets touched. that's a problem because firmware vulnerabilities can bypass os level protections entirely, including your disk encryption and your firewall rules, since they operate below all of it. fwupdmgr checks for and applies these updates on supported hardware:

fwupdmgr get-updates
fwupdmgr update

the first command checks what's available, the second applies it. run this every few months. it takes two minutes and covers a layer your antivirus, your firewall, and your encrypted disk all completely ignore.

the takeaway

none of this is advanced. it's four checks you run once and then revisit occasionally: confirm encryption with lsblk, turn on ufw, set auto lock, patch firmware with fwupdmgr. together they cover theft, network exposure, someone walking up to an unlocked session, and the firmware layer that almost nobody thinks about. save this, run through it today, and send it to whoever in your life just installed linux and thinks the default install was enough. it wasn't, but now it will be.

watch the reel ↗
the weekly drop

one command a week that makes you harder to hack.

a single tool, explained in plain english, every week. straight to your inbox.

no spam. one email a week. unsubscribe anytime.