Quantcast
Channel: my tech blog » Linux
Browsing index pages (184 articles)

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 Article


Un-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 Article


Footnote 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 Article

Notes 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 Article

Measuring 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 Article


A 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 Article

Linux 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 Article

Installing 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 Article


Migrating 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 Article


Running 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 Article

Notes 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 Article

Measuring 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 Article

A 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 Article


Linux 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 Article

Installing 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 Article


Migrating 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 Article

Running 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 Article


Bracketed 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 Article

systemd 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 Article

Remapping 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
Browsing index pages (184 articles)


Latest Images