[{"content":" Updated December 2026: rewritten for the KDE Plasma live image, with Btrfs subvolumes, the linux-stable kernel, Flatpak and Snapper. The original version from February 2024 used GNOME, ext4 and linux-lts.\nChimera Linux first caught my attention at FOSDEM 2023, where its founder explained the motivations behind the project. It is not yet another Arch or Debian spin, but a distribution built from scratch:\nthe LLVM toolchain (Clang) instead of GCC, musl instead of glibc, the FreeBSD core utilities instead of GNU coreutils, dinit as service manager instead of systemd, apk (from Alpine Linux) as package manager. In other words: a modern Linux system with a *BSD feel. The steps below work on any x86_64 machine with UEFI.\nFirst impressions Chimera is opinionated, but still leaves room for customization. GNOME is the default desktop, but KDE Plasma and Xfce are available too. Someone even got KDE 1 running on it.\nWhat I like less is the fully rolling release model. My ideal distribution has a stable base system (kernel, compilers, core userland) combined with a recent KDE Plasma desktop.\nInstallation I don\u0026rsquo;t see much value in copying the installation manual, so this is a summary of the steps I took. Always follow the Chimera Linux documentation as the reference. These steps were tested with chimera-linux-x86_64-LIVE-20251220-plasma.iso.\nThe target layout is an unencrypted EFI and boot partition, followed by a LUKS container holding an LVM volume group with swap and a Btrfs root:\nPartition Size Type Contents /dev/sda1 1 GB EFI System FAT32, /boot/efi /dev/sda2 2 GB Linux extended boot ext4, /boot /dev/sda3 remaining Linux filesystem LUKS → LVM (swap + Btrfs root) Partitioning and encryption Boot the live image, become root, wipe the disk and create the partitions above with cfdisk (GPT label):\n# wipefs -a /dev/sda # cfdisk /dev/sda Format the partitions, then set up LUKS and LVM:\n# mkfs.vfat -F 32 /dev/sda1 # mkfs.ext4 /dev/sda2 # cryptsetup luksFormat /dev/sda3 # cryptsetup luksOpen /dev/sda3 crypt # vgcreate volg /dev/mapper/crypt # lvcreate --name swap -L 8G volg # lvcreate --name root -l 100%FREE volg # mkswap /dev/volg/swap # mkfs.btrfs /dev/volg/root Btrfs subvolumes Separate subvolumes for home, logs, cache and snapshots keep them out of root snapshots:\n# mkdir /media/root # mount /dev/volg/root /media/root # btrfs subvolume create /media/root/@ # btrfs subvolume create /media/root/@home # btrfs subvolume create /media/root/@log # btrfs subvolume create /media/root/@cache # btrfs subvolume create /media/root/@snapshots # umount /media/root Mount everything in place, with zstd compression and without access time updates:\n# OPTS=compress=zstd,noatime # mount -o subvol=@,$OPTS /dev/volg/root /media/root # mkdir -p /media/root/home /media/root/var/log /media/root/var/cache /media/root/.snapshots # mount -o subvol=@home,$OPTS /dev/volg/root /media/root/home # mount -o subvol=@log,$OPTS /dev/volg/root /media/root/var/log # mount -o subvol=@cache,$OPTS /dev/volg/root /media/root/var/cache # mount -o subvol=@snapshots,$OPTS /dev/volg/root /media/root/.snapshots # mkdir /media/root/boot # mount -o noatime /dev/sda2 /media/root/boot # mkdir /media/root/boot/efi # mount -o noatime /dev/sda1 /media/root/boot/efi Bootstrap and chroot Install a base system and enter it:\n# chimera-bootstrap -l /media/root # chimera-chroot /media/root Inside the chroot, update the system, enable the contrib repository and install a kernel and CPU microcode (ucode-amd for AMD, ucode-intel for Intel processors):\n# apk update # apk upgrade --available # apk add chimera-repo-contrib # apk update # apk add linux-stable ucode-amd Generate fstab (with swap enabled, so it is included) and crypttab, and set a root password:\n# swapon /dev/volg/swap # genfstab / \u0026gt; /etc/fstab # echo \u0026#34;crypt UUID=$(blkid -s UUID -o value /dev/sda3) none luks\u0026#34; \u0026gt; /etc/crypttab # passwd root Using the UUID instead of /dev/sda3 keeps the system bootable if the disk name changes.\nBootloader Generate the initramfs and install GRUB. The EFI partition is already mounted at /boot/efi:\n# update-initramfs -c -k all # apk add grub-x86_64-efi # grub-install --efi-directory=/boot/efi # update-grub # exit # reboot After the first boot Users and basics Create a user. Membership of wheel allows it to use doas:\n# useradd myuser # passwd myuser # usermod -a -G wheel,kvm,plugdev myuser # echo chimera \u0026gt; /etc/hostname # ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime Services Services are managed by dinit:\n# dinitctl enable syslog-ng # dinitctl enable networkmanager # dinitctl enable bluetoothd Firewall A simple host firewall with ufw: deny incoming traffic, except rate-limited SSH:\n# apk add ufw # dinitctl enable ufw # ufw default deny incoming # ufw default allow outgoing # ufw limit ssh # ufw enable Desktop and applications Install some essentials and start the Plasma login manager:\n# apk add zsh git curl tmux firefox flatpak fastfetch # dinitctl enable sddm Add the Flathub remote for applications that are not packaged:\n# flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo Optionally, as your own user, install Oh My Zsh:\n$ sh -c \u0026#34;$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\u0026#34; Snapshots with Snapper Snapper wants to create /.snapshots itself, which clashes with the @snapshots subvolume mounted there. The usual workaround is to let Snapper create its config, then replace its subvolume with ours:\n# apk add snapper # umount /.snapshots # rmdir /.snapshots # snapper -c root create-config / # btrfs subvolume delete /.snapshots # mkdir /.snapshots # mount -a Notable differences Coming from other Linux distributions, these are the things to get used to:\nInstead of Chimera uses sudo doas systemctl dinitctl apt, dnf, pacman apk GNU coreutils FreeBSD userland (flags can differ) glibc musl ifconfig / manual config NetworkManager, with nmcli Conclusion Chimera Linux is a breath of fresh air. Instead of repackaging what other distributions already do, it rethinks the foundation: LLVM, musl, a FreeBSD userland and dinit, glued together with apk. The result feels clean and coherent, and with KDE Plasma it is a perfectly usable desktop.\nThat freshness comes at a price, though. Things are a bit more tricky at times: scripts and habits that assume GNU tools or systemd need adjusting, the installation is manual, and you will spend more time in the documentation than with a mainstream distribution. The rolling release model also means the base system keeps moving under your feet.\nWould I recommend it? If you enjoy understanding how your system fits together, or you have a soft spot for the BSDs, Chimera Linux is well worth an afternoon. If you just want a desktop that stays out of your way, a more mainstream distribution is the easier choice.\n","permalink":"https://yennick.dev/blog/getting_started_with_chimera_linux/","summary":"\u003cblockquote\u003e\n\u003cp\u003e\u003cstrong\u003eUpdated December 2026:\u003c/strong\u003e rewritten for the KDE Plasma live image, with Btrfs subvolumes, the\n\u003ccode\u003elinux-stable\u003c/code\u003e kernel, Flatpak and Snapper. The original version from February 2024 used GNOME,\next4 and \u003ccode\u003elinux-lts\u003c/code\u003e.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eChimera Linux first caught my attention at FOSDEM 2023, where its founder explained the motivations behind the project.\nIt is not yet another Arch or Debian spin, but a distribution built from scratch:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003ethe \u003cstrong\u003eLLVM\u003c/strong\u003e toolchain (Clang) instead of GCC,\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003emusl\u003c/strong\u003e instead of glibc,\u003c/li\u003e\n\u003cli\u003ethe \u003cstrong\u003eFreeBSD\u003c/strong\u003e core utilities instead of GNU coreutils,\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003edinit\u003c/strong\u003e as service manager instead of systemd,\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eapk\u003c/strong\u003e (from Alpine Linux) as package manager.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIn other words: a modern Linux system with a *BSD feel.\nThe steps below work on any x86_64 machine with UEFI.\u003c/p\u003e","title":"Getting started with Chimera Linux"},{"content":"I recently undusted my old ThinkPad X121e. The system specs are extremely low end for today\u0026rsquo;s standards but this machine still deserves a second live.\nHardware specifications At the heart of the Lenovo ThinkPad X121e (NWS64MH) is an AMD E-450 ultra-mobile APU which was released in mid-2011 which exists of two cores clocked at 1.65 GHz, 32 KB L1 instruction cache, 32 KB L1 data cache per core and 2 x 512 KB L2 cache. This microarchitecture is missing AES acceleration support which negativly impact the peformance of TLS encrypted webservers and remote secure shells. The display is a mat 11,6\u0026quot; edge-lit LCD screen with a resolution of 1366x768 (WXGA Wide). The 4GB DDR3 (SODIMM) memory is not impressive but it should be able to handle a few browser windows.\nGetting the WiFi working The wireless chip has broken down during the years. It was still able to connect with WiFi networks but the putting data through it was problematic. The problem was independent of the operating system, Linux distributions and Windows where unable to reliability transfer data.\nSo I swapped it with an old Intel WiFi Link 5100 supporting IEEE 802.11a/b/g/Draft-N from an even older system I had around. In theory this should not be to difficult to install. Just plug in a new Mini PCI-Express card right? Well no. Lenovo has a list of approved wireless cards allowed for this Thinkpad. This whitelisting is informed by the BIOS.\nI have found a modded BIOS that had this whitelisting removed, so no limitations anymore. For this one I needed a working installation of Microsoft Windows, but other versions of this BIOS updater might also be available.\nThe original firmware I was running was the UEFI BIOS Version 8RET52WW (1.15) and Embedded Controller Version 8RHT22WW (1.10). Updating it with the approved firmware and the modded firmware made the version of firmware jump to UEFI BIOS Version 8RET54WW (1.17) and Embedded Controller Version 8RHT23WW (1.11). No stability problems, and no wireless card whitelisting. Great succes!\n","permalink":"https://yennick.dev/blog/reviving_my_thinkpad_x121e/","summary":"\u003cp\u003eI recently undusted my old ThinkPad X121e.\nThe system specs are extremely low end for today\u0026rsquo;s standards but this machine still deserves a second live.\u003c/p\u003e\n\u003ch1 id=\"hardware-specifications\"\u003eHardware specifications\u003c/h1\u003e\n\u003cp\u003eAt the heart of the Lenovo ThinkPad X121e (NWS64MH) is an AMD E-450 ultra-mobile APU which was released in mid-2011 which exists of two cores clocked at 1.65 GHz, 32 KB L1 instruction cache, 32 KB L1 data cache per core and 2 x 512 KB L2 cache.\nThis microarchitecture is missing AES acceleration support which negativly impact the peformance of TLS encrypted webservers and remote secure shells.\nThe display is a mat 11,6\u0026quot; edge-lit LCD screen with a resolution of 1366x768 (WXGA Wide).\nThe 4GB DDR3 (SODIMM) memory is not impressive but it should be able to handle a few browser windows.\u003c/p\u003e","title":"Reviving my old Thinkpad X121e"},{"content":"I was reading a blog article of a fellow Python developer. He wants to update all dictionaries inside a list. In old versions of Python there isn\u0026rsquo;t immediately a trivial way to solve this problem. The solution he made is pretty interesting as it contains a combination of list comprehensions, dictionaries and lambda functions. I tried to solve this issue by applying recent additions to the Python language to have a cleaner result.\nBe sure to read the article at estebansastre.com\nMerging dictionaries As noted in the referred article, there isn\u0026rsquo;t a standard way in python to return an updated dictionary. This is because unlike most other data types, dictionaries are mutable. When applying functional programming concepts at them, the result might not always be as expected.\nSee the Python code below.\na = {\u0026#39;a key\u0026#39;: \u0026#39;a value\u0026#39;} b = {\u0026#39;b key\u0026#39;: \u0026#39;b value\u0026#39;} print(a.update(b)) # returns None When reading the code one would expect to print {'a key': 'a value', 'b key': 'b value'}. Why does it behave this way? Well, a dictionary is mutable. So the update() method updates the value in in memory. It returns None because this is a part of the Python internals.\nThe correct solution for this problem would be something like this:\na = {\u0026#39;a key\u0026#39;: \u0026#39;a value\u0026#39;} b = {\u0026#39;b key\u0026#39;: \u0026#39;b value\u0026#39;} a.update(b) # None, the dictionary a is updated. print(a) # {\u0026#39;a key\u0026#39;: \u0026#39;a value\u0026#39;, \u0026#39;b key\u0026#39;: \u0026#39;b value\u0026#39;} Python 3.5 introduced unpacking generalizations as defined in PEP 448. When applied to the previous example, the result is something like this:\na = {\u0026#39;a key\u0026#39;: \u0026#39;a value\u0026#39;} b = {\u0026#39;b key\u0026#39;: \u0026#39;b value\u0026#39;} print(dict(**a, **b)) # {\u0026#39;a key\u0026#39;: \u0026#39;a value\u0026#39;, \u0026#39;b key\u0026#39;: \u0026#39;b value\u0026#39;} See how easy that was!\nApplying unpacking generalizations I figured out that the unpacking generalizations technique can be applied to the algorithm to update a list of dictionaries using list list comprehension. Let\u0026rsquo;s rewrite the first algorithm:\n[dict(**item, **ext) for item in original] And apply this algorithm to the same examples:\noriginal = [ {\u0026#39;title\u0026#39;: \u0026#39;Oh boy\u0026#39;}, {\u0026#39;title\u0026#39;: \u0026#39;Oh girl\u0026#39;}] ext = {\u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}} print([dict(**item, **ext) for item in original]) # [{\u0026#39;title\u0026#39;: \u0026#39;Oh boy\u0026#39;, # \u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}}, # {\u0026#39;title\u0026#39;: \u0026#39;Oh girl\u0026#39;, # \u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}}] What\u0026rsquo;s the catch? This example will probably only work in Python 3.5 or higher. I\u0026rsquo;ve tested this code in Python 3.6. Yet another good reason to move away from legacy Python 2 to a recent Python 3 release.\nFull code The full Python 3.6 (or higher) code that can be run locally and tweaked accordingly.\nimport unittest import copy from typing import List ListOfDicts = List[dict] class TestUpdatingListOfDicts(unittest.TestCase): original = [ {\u0026#39;title\u0026#39;: \u0026#39;Oh boy\u0026#39;}, {\u0026#39;title\u0026#39;: \u0026#39;Oh girl\u0026#39;}] ext1 = {\u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}} ext2 = dict() result1 = [{ \u0026#39;title\u0026#39;: \u0026#39;Oh boy\u0026#39;, \u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}}, {\u0026#39;title\u0026#39;: \u0026#39;Oh girl\u0026#39;, \u0026#39;meta\u0026#39;: {\u0026#39;author\u0026#39;: \u0026#39;Myself\u0026#39;}}] result2 = copy.deepcopy(original) def esteban(self, original: ListOfDicts, ext: dict) -\u0026gt; ListOfDicts: \u0026#34;\u0026#34;\u0026#34;\u0026#34; :author Esteban \u0026#34;\u0026#34;\u0026#34; return [(lambda x, y=item.copy(): (y.update(x), y))(ext)[1] for item in original] def yennick(self, original: ListOfDicts, ext: dict) -\u0026gt; ListOfDicts: \u0026#34;\u0026#34;\u0026#34; :author Yennick Schepers \u0026#34;\u0026#34;\u0026#34; return [dict(**item, **ext) for item in original] def test_result1_esteban(self): result = self.esteban(original=self.original, ext=self.ext1) self.assertEqual(self.result1, result) def test_result1_yennick(self): result = self.yennick(original=self.original, ext=self.ext1) self.assertEqual(self.result1, result) def test_result2_esteban(self): result = self.esteban(original=self.original, ext=self.ext2) self.assertEqual(self.result2, result) def test_result2_yennick(self): result = self.yennick(original=self.original, ext=self.ext2) self.assertEqual(self.result2, result) if __name__ == \u0026#39;__main__\u0026#39;: unittest.main() ","permalink":"https://yennick.dev/blog/updating-dictionaries-in-a-list-comprehension/","summary":"\u003cp\u003eI was reading a \u003ca href=\"https://estebansastre.com/array-extended-objects-python/\"\u003eblog article\u003c/a\u003e of a fellow \u003ca href=\"https://estebansastre.com/\"\u003ePython developer\u003c/a\u003e.\nHe wants to update all dictionaries inside a list.\nIn old versions of Python there isn\u0026rsquo;t immediately a trivial way to solve this problem.\nThe solution he made is pretty interesting as it contains a combination of list comprehensions, dictionaries and lambda functions.\nI tried to solve this issue by applying recent additions to the Python language to have a cleaner result.\u003c/p\u003e","title":"Merging Dictionaries in a List Comprehension"},{"content":"I threw out the S3 bucket and changed it with Netlify to host static websites and the experience is just awesome!\nAn S3 bucket is a very useful building block, and I believe Amazon Web Services has the right building blocks for a very complex IT system. However, an S3 bucket is not a recommend method of hosting a website. You need additional tools such as Amazon CloudFront, AWS Certificate Manager, Amazon Route 53, \u0026hellip; and maybe even Amazon CloudFormation!\nHow it works The essentials for creating, updating and publishing a static website can be done from the commandline using the netlify-cli NodeJS Package.\nOnly a few steps are required:\nYou create a website using netlify create Deploy it using the netlify deploy Update the CNAME DNS-record for www to point to www.netlify.com Optionally but recommended, redirect HTTP requests to the root DNS-record to the www DNS-record Optionally but recommended, a free SSL/TLS certificate using Let\u0026rsquo;s Encrypt I think that Netlify\u0026rsquo;s internal CDN is using a push (upload) method where it populates each POP with each deploy. I like this because it gives very fast feedback if an update succeeded or not!\nEdit 2019-02-09: Netlify has evolved and now has Managed DNS, IPv6 support and many more features that does a much better job than the things I described above. CDN The Netlify has build a CDN that operates around the globe.\nA quick check using CEKDNS:\nVirginia, United States - Amazon New York, United States - Amazon Toronto, Ontario, Canada, - Digital Ocean San Antonio, Texas, United States - Rackspace Sao Paulo, Brazil - Amazon Frankfurt, Germany - Amazon Dublin, Ireland - Amazon Mumbai, India - Amazon Tokyo, Japan - Amazon Singapore - Amazon Sydney, Australia - Amazon Almost every continent pops up in this list, so this ensures low latency from almost every country in the world! It is also worth noting that the architecture looks cloud provider agnostic as their CDN covers Amazon, Digital Ocean and Rackspace. This keeps the option open to switch easily from one to another and if the momentum is big enough even install their own gear!\nEdit 2018-01-22: CEKDNS seems to have shut down, removed dead link. ","permalink":"https://yennick.dev/blog/changing-to-netlify/","summary":"\u003cp\u003eI threw out the S3 bucket and changed it with Netlify to host static websites and the experience is just awesome!\u003c/p\u003e","title":"Moving to Netlify"},{"content":"I purchased an ezcap USB 2.0 DVB-T stick a while ago. Why what\u0026rsquo;s so special about a DVB-T receiver you say? Well device contains a Software Defined Radio (SDR), a Realtek RTL2832U, that is a radio interface that can be controlled using software. The drawback is that the this is only a receiver and that for some of you the radio spectrum might be to limited. But hey it\u0026rsquo;s cheap!\nRequirements A RTL-SDR compatible receiver Linux based operating system (but there are also tools available for Microsoft Windows!) Install the following dependencies:\n$ sudo apt-get install libusb-1.0-0-dev git cmake ⇒ Detailed installation instructions can be found on Michael Hirsch blog.\nHowever when I was testing the SDR usb stick I came across an error:\n$ sudo ./rtl_test -t Found 1 device(s): 0: Generic, RTL2832U, SN: 77771111153705700 Using device 0: Generic RTL2832U Kernel driver is active, or device is claimed by second instance of librtlsdr. In the first case, please either detach or blacklist the kernel module (dvb_usb_rtl28xxu), or enable automatic detaching at compile time. usb_claim_interface error -6 Failed to open rtlsdr device #0. This can be solved by unloading the kernel module:\n$ sudo modprobe -r dvb_usb_rtl28xxu Now it should output something like this:\n$ sudo ./rtl_test -t Found 1 device(s): 0: Generic, RTL2832U, SN: 77771111153705700 Using device 0: Generic RTL2832U Found Fitipower FC0013 tuner Supported gain values (23): -9.9 -7.3 -6.5 -6.3 -6.0 -5.8 -5.4 5.8 6.1 6.3 6.5 6.7 6.8 7.0 7.1 17.9 18.1 18.2 18.4 18.6 18.8 19.1 19.7 Sampling at 2048000 S/s. No E4000 tuner found, aborting. Use Gqrx to get a nice graphical interface overview of the signals received:\n$ sudo apt-get install gqrx-sdr $ sudo gqrx Now you can switch to a local FM radio station, for example 101.4 MHz. Spend some time getting used with it. Later I will try to do some more hacks with this, like processing the raw samples and applying some digital signal processing techniques to it. When you\u0026rsquo;re tired of hacking with it you can also use it for it\u0026rsquo;s original purpose, watching TV!\nResources OsmocomSDR wiki Getting started with RTL2832 EZcap USB SDR receiver in Ubuntu ","permalink":"https://yennick.dev/blog/getting-started-with-sdr-using-a-rtl2832u/","summary":"\u003cp\u003eI purchased an ezcap USB 2.0 DVB-T stick a while ago.\nWhy what\u0026rsquo;s so special about a DVB-T receiver you say? Well device contains a Software Defined Radio (SDR),\na Realtek RTL2832U, that is a radio interface that can be controlled using software.\nThe drawback is that the this is only a receiver and that for some of you the radio spectrum might be to limited.\nBut hey it\u0026rsquo;s cheap!\u003c/p\u003e","title":"Getting started with SDR using a RTL2832U"}]