howto


Lock the screen automatically when it turns off on Windows

I hate how the lock screen works on Windows. This is perhaps an oversight and for me a security issue, so I’ll share some information on how to make it work better. This applies to pretty much all Windows versions in use today as far as I can tell. By default, when Windows turns off the screen, it won’t lock it. It makes no sense to me why this is the default behavior.

Show Always On Display while charging on Galaxy phones

It is easily possible to show the Always On Display on Galaxy phones while charging through such option in Settings, but then you lose the ability to show it when tapping the display. Here is a quick tutorial on how to make it show up both ways.


Moving many btrfs subvolumes to another disk

As I was migrating my whole system over to btrfs the other day, I came across my docker volume which was already btrfs and using subvolumes. This was of course intentional, however, I had no idea how to properly move those subvolumes to the new disk. Surprisingly, it was somewhat easy. Btrfs has send-receive functionality which you can use to move data between disks (even do stuff like incremental backups, replication and so on.


Recovering some lost information on the Internet

I will be adding more information as I learn more. This is a summary of the knowledge on the subject I have gained so far. Wayback machine This is an obvious go-to website where you can see historic versions of sites. It is run by Internet Archive non-profit digital library. https://archive.org/web/ Google cache You can see cached version of sites in Google search by clicking the little down-arrow next to the URL.


How to remove supervisor password on older Thinkpads

If you lock your 2008-2010-era Thinkpad with a supervisor password and forget it, there is not much you can do. Unplugging the battery won’t help (although I have heard that supervisor password on some models can be removed this way) and getting Lenovo to fix it for you can be time-consuming, especially compared to how easy to service and how well documented these machines are. This tutorial could work on other laptops, not only Thinkpads.

How to enable Chrome's dark mode on Android

Recently Google started rolling out this new feature to Windows users and apparently it is possible on Android as well. It has been in the Chrome for Android Beta for quite some time. You can follow this tutorial to guide you through the process. Prerequisites Make sure your Chrome browser is up-to-date (requires at least 74 or Beta 73) Make sure you are running a recent version of Android (tested on 6, which is pretty old)

Changing disk identifiers in ZFS zpool

With ZFS on Linux, it often happens that zpool is created using disk identifiers such as /dev/sda. While this is fine for most scenarios, the recommended practice is to use the more guaranteed disk identifiers such as the ones found in /dev/disk/by-id. This blog post describes 3 methods how to change the disk identifiers in such zpool after it has been created. All this without migrating data, adding disks or having physical access to the machine.

Voidlinux with encrypted root on Raspberry Pi

So I have decided to go Void Linux on all my machines. One of the advantages for me was the absence of systemd and the presence of musl libc, my admiration for which I shared in a recent blog post about Alpine Linux. I was trying to find a tutorial on how to make an encrypted root partition work with Raspberry Pi. I have a strong belief that all offline storage should be encrypted today.