Enabling STARTTLS on sendmail with Let’s Encrypt certificate
Introduction I’ll start with the crucial point: My interest in giving sendmail a Let’s Encrypt certificate (along with a secret key, of course) has nothing to do with security. The real reason is that...
View ArticleUn-ignore /usr/lib/systemd/ in .gitignore with git repo on root filesystem
Actually, this is about un-ignoring any subdirectory that is grandchild to an ignored directory. Running Linux Mint 22.2 (based upon Ubuntu 24.04), and having a git repository on root filesystem to...
View ArticleFootnote and whole-page layout with wkhtmltopdf
This HTML code makes wkhtmltopdf create a single page with a footnote. If the external <div> is duplicated, separate pages are generated. <html> <head> <meta...
View ArticleNotes on installing Linux Mint 22.2 (full disk encryption)
Introduction These are my notes to self for the next time I install a Linux system. As if I read my previous posts before attempting. So I installed Linux Mint 22.2 (kernel 6.14.0-29) on a Lenovo V14...
View ArticleMeasuring how much RAM a Linux service eats
Introduction Motivation: I wanted to move a service to another server that is dedicated only to that service. But how much RAM does this new server need? RAM is $$$, so too much is a waste of money,...
View ArticleA function similar to Perl’s die() in bash
This is maybe a bit silly, but Perl has a die() function that is really handy for quitting a script with an error message. And I kind of miss it in Bash. So it can be defined with this simple...
View ArticleLinux kernel workqueues: Is it OK for the worker function to kfree its own...
Freeing yourself Working with Linux kernel’s workqueues, I incremented a kref reference count before queuing a work item, in order to make sure that the data structure that it operated on will still be...
View ArticleInstalling GRUB 2 manually with rescue-like techniques
Introduction It’s rarely necessary to make an issue of installing and maintaining the GRUB bootloader. However, for reasons explained in a separate post, I wanted to install GRUB 2.12 on an old...
View ArticleMigrating an OpenVZ container to KVM
Introduction My Debian 8-based web server had been running for several years as an OpenVZ container, when the web host told me that containers are phased out, and it’s time to move on to a KVM. This is...
View ArticleRunning KVM on Linux Mint 19 random jots
General Exactly like my previous post from 14 years ago, these are random jots that I took as I set up a QEMU/KVM-based virtual machine on my Linux Mint 19 computer. This time, the purpose was to...
View ArticleNotes on installing Linux Mint 22.2 (full disk encryption)
Introduction These are my notes to self for the next time I install a Linux system. As if I read my previous posts before attempting. So I installed Linux Mint 22.2 (kernel 6.14.0-29) on a Lenovo V14...
View ArticleMeasuring how much RAM a Linux service eats
Introduction Motivation: I wanted to move a service to another server that is dedicated only to that service. But how much RAM does this new server need? RAM is $$$, so too much is a waste of money,...
View ArticleA function similar to Perl’s die() in bash
This is maybe a bit silly, but Perl has a die() function that is really handy for quitting a script with an error message. And I kind of miss it in Bash. So it can be defined with this simple...
View ArticleLinux kernel workqueues: Is it OK for the worker function to kfree its own...
Freeing yourself Working with Linux kernel’s workqueues, I incremented a kref reference count before queuing a work item, in order to make sure that the data structure that it operated on will still be...
View ArticleInstalling GRUB 2 manually with rescue-like techniques
Introduction It’s rarely necessary to make an issue of installing and maintaining the GRUB bootloader. However, for reasons explained in a separate post, I wanted to install GRUB 2.12 on an old...
View ArticleMigrating an OpenVZ container to KVM
Introduction My Debian 8-based web server had been running for several years as an OpenVZ container, when the web host told me that containers are phased out, and it’s time to move on to a KVM. This is...
View ArticleRunning KVM on Linux Mint 19 random jots
General Exactly like my previous post from 14 years ago, these are random jots that I took as I set up a QEMU/KVM-based virtual machine on my Linux Mint 19 computer. This time, the purpose was to...
View ArticleBracketed paste: Those ~0 and ~1 added around pasted text
Intro This is a super-short post, but I have a feeling it will evolve with time. Using ssh, pasting text with CTRL-V or the mouse’s middle button sometimes resulted in ~0 and ~1 around the pasted text....
View Articlesystemd dependencies and processing /etc/fstab
The problem I wanted to solve On an embedded arm system running LUbuntu 16.04 LTS (systemd 229), I wanted to add a mount point to the /etc/fstab file, which originally was like this: # UNCONFIGURED...
View ArticleRemapping keyboard keys to allow å, ä and ö
Motivation I have an English / Hebrew keyboard, but occasionally I also want to use the Swedish letters å, ä and ö. So idea is to sacrifice three keys on the keyboard for this purpose. But which ones?...
View Article