dt.iki.fi

All Articles (119)

Short Review Diary ‑ Books and other Reading

An incomplete timeline of what I read - mostly contributions to various forum threads. Read books and stories (audio formats) are included here. April 14 2021 We have talked about Hannu Rajaniemi before. Now I am pleased to announce that he published a post-Covid19-SciFi story (or a bunch of them af.....

Encrypt any block device

Goal A hard drive or a USB stick set up in this way is recognised by common filemanagers (e.g. Thunar, PCManFM) - it shows up as an encrypted device in the side bar, a password dialog pops up, and the twofold decrypt/mount process happens in one click. Device encryption, performance considerations W.....

Disable the Linux kernel watchdog

journalctl -b | grep watchdog; sudo dmesg | grep watchdog Both commands return something like NMI watchdog: Enabled. Permanently consumes one hw-PMU counter. I have no use for this watchdog on a desktop computer. This link already contains all the information required to disable it, but here's the m.....

Conky & Lua

Thanks to this article I became aware of how flexible conky's Lua configuration format is - it is effectively a Lua script. This opens almost endless new possibilities that go far beyond mere modularisation. For example, I could grab values from the system and design my conky accordingly, like I hav.....

Record system audio output with ALSA

This was written & tested on an Archlinux system, but I believe it applies to most Linux/ALSA systems. ALSA loopback device We assume a single run-of-the-mill Intel sound card, mapped as card 0. We will create a virtual loopback card 1. #> modprobe snd-aloop aplay -l The loopback device works.....

Disable a USB port and the connected hard drive

And enable it when required. Also see this related article. Premise & problem I have a USB hard drive used only for weekly automated backups. It is always connected to the same port and never gets removed. At all other times I want this drive to be unmounted, off, invisible, powered down. I wa.....