How To: Run shell scripts containing relative paths from anywhere

Have you ever had the problem that you want to run a script but because it handles relative paths it depends on the directory it’s called from? Well, today I learned about a shell function that helps with that, called dirname. It can be fed a path and will return it with the last non-slash component and trailing slash removed. So to refer to the location a script sits in you can do simply:...

December 8, 2023 · 1 min

How To: Fix duplicated characters (and other artifacts) in your shell

A few days ago I started noticing strange behaviour of my shell. When typing commands or working with pasted ones, especially with tab completion, duplicated characters started showing up at the beginning of the line or in the middle in the case of working with a pasted command. Something like hx became hxhx or docker became dodocker. These duplicated characters were not editable, I could only clear the line and start fresh but the same thing would occur again, although not quite deterministically....

December 5, 2023 · 2 min

How To: Play Zelda - Majora's Mask (and Ocarina of Time) with 4K Textures on the Steam Deck

I recently decided to revisit the childhood memory of mine that is “Zelda - Majora’s Mask” on my Steam Deck. I’ve never owned a Nintendo console and was only ever able to play at a friend’s place or watch them play. I figured that after so many years it was finally my turn to play, especially because I now have a console (sort of) that is quite powerful at emulation....

December 5, 2023 · 3 min

How To: Choose a specific WiFi radio band on Linux

Sometimes I don’t work from home but at my family’s or a friend’s place. Turns out the router at one of these places is terrible and can’t reliably provide WiFi for my laptop sitting some 4 meters away (with 2 doors in between). I thought this was rather odd because my phone didn’t struggle with this so I asked around and thought about it some and the most obvious culprit seems to be the WiFi radio band that’s used....

November 29, 2023 · 2 min

How To: Run Freelancer on Linux

Here’s another piece of gaming nostalgia: Freelancer. It’s celebrating its 20th birthday this year which seems like a good opportunity to me to get it up and running again. Prerequisites Although this can probably achieved in any number of ways here is what I used: Lutris (flatpak or native), the version used here was 0.5.14 from Flathub Freelancer install script for Lutris (the following is a customized version of this which contains various fixes including a no-CD fix)....

November 8, 2023 · 7 min