Writing a panel applet for Cinnamon: The basics

Introduction What I wanted: A simple applet on Cinnamon, which allows me to turn a service on and off (hostapd, a Wifi hotspot). I first went for Argos catch-all extension, and learned that Cinnamon isn’t gnome-shell, and in particular that extensions for gnome-shell don’t (necessarily?) work with Cinnamon. Speaking of which, my system is Linux [...]

Failed: Install Argos Shell Extension on Cinnamon

You have been warned These are my pile of jots as I tried to install Argos “Gnome Shell Extension in seconds” on my Mint 19 Cinnamon machine. As the title implies, it didn’t work out, so I went for writing an applet from scratch, more or less. Not being strong on Gnome internals, I’m under [...]

Setting PS1 with color codes properly with gnome-terminal

There are plenty of web pages describing the different escape codes for changing color of an ANSI emulating terminal. This is in particular useful for giving the shell prompt different colors, to prevent confusion between different computers, for example. The trick is to set the PS1 bash variable. What is less told, is that \[ [...]

5 GHz Wifi access point on Linux Mint 19 / Atheros

+ how to just compile an Ubuntu distribution kernel without too much messing around. Introduction It’s not a real computer installation if the Wifi works out of the box. So these are my notes to self for setting up an access point on a 5 GHz channel. I’ll need it somehow, because each kernel upgrade [...]

Better than netstat: lsof tells us who is listening to what

OK, so we have netstat to tell us which ports are opened for listening: $ netstat -n -a | grep “LISTEN ” Thanks, that nice, but what process is listening to these ports? For TCP sockets, it’s (as root): # lsof -n -P -i tcp 2>/dev/null | grep LISTEN The -P flag disables conversion from [...]