Skip to content

linux

Windows Terminal + Cygwin

I had been a happy WSL1 user for many years, but after switching laptops I more or less had to upgrade to WSL2. Which is the same thing but not really. The thing is, WSL2 startup times are annoyingly slow. And I hate slow. Computers have to be fast and snappy. So after poking around — many blogs and Github issues — I decided to ditch WSL and move on.… Read More »Windows Terminal + Cygwin

Bypassing Hetzner mail port block (port 25/465)

I recently switched my VPS from Linode to Hetzner. I got more CPU, RAM and storage for a couple of dollars less. Pretty good right? However it wasn’t after I migrated that I found out Hetzner blocks all outgoing port 25 and 465 traffic. At least for the first month for new customers. This means my new server cannot talk SMTP with the rest of the world i.e. my server… Read More »Bypassing Hetzner mail port block (port 25/465)

Migrating a LAMP VPS

I recently switched my LAMP virtual server to a different VPS provider. The LAMP server that is serving you this site. So the migration worked! Here are the steps, for future reference. Mostly for myself, but maybe you — someone who came here from Google — can use this too. This should work on any small to medium sized VPS. Let’s go! Lower your DNS records TTL value When you… Read More »Migrating a LAMP VPS

Use find (1) as a quick and dirty duplicate file finder

Run the following two commands in bash to get a listing of all duplicate files (from a directory or location). This can help you clean out duplicate files that sometimes accumulate over time. The first command uses find to print all files (and specific attributes) from a specific location to a file, prefixing the size of the file in the name. This way all files with the same filename and… Read More »Use find (1) as a quick and dirty duplicate file finder

Save data from your broken Raspberry Pi SD card with GNU ddrescue

This week my Pi stopped working. After hooking up a monitor I saw kernel errors related to VFS. So the file system was obviously broken. Oops. The end conclusion is that the SD card is physically ‘broken’, but I still managed to salvage my data — which is more important than the card. Here’s how. Broken file system: fsck or dd? What didn’t work for me, but you might want… Read More »Save data from your broken Raspberry Pi SD card with GNU ddrescue

Linux server principles

This is a list, in no particular order, of principles to adhere when running a secure Linux server. SSH – Never allow direct SSH root access (set PermitRootLogin No). SSH – Do not use SSH keys without a passphrase. SSH – If possible, do not run SSH on a public IP interface (preferably use a management VLAN). SSH/SSL – Use strong SSH ciphers and MAC algorithms (Check with https://testssl.sh/). Never… Read More »Linux server principles

Just for Fun: The Story of an Accidental Revolutionary

This book had been sitting on my to-read list for way too long! But I finally found a second hand copy, so here we go! You could say this is the official autobiography of Linus Torvalds, the creator of Linux. The Operating System that changed the world! You can wake me up in the middle of the night to talk about operating systems. So this book is right up my… Read More »Just for Fun: The Story of an Accidental Revolutionary