Quantcast
Channel: my tech blog » Linux
Browsing latest articles
Browse All 173 View Live

PPPoE on fiber with the Linux machine as the router

Introduction Having switched from ADSL to FTTH (fiber to the home), I was delighted to discover that the same script that set up the pppoe connection for ADSL also works with the new fiber connection....

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


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

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

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


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

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

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


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


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
Browsing latest articles
Browse All 173 View Live