Peter's private space
to develop skills, share ideas and experience, etc

Configure fingerprint reader on Ubuntu 22.04

My Dell Latitude 5430 notebook comes equipped with a fingerprint sensor, but unfortunately, the default settings of Ubuntu 22.04 (in my case) do not allow its utilization, even though the lsusb command confirms its presence as a Broadcom Corp. 58200 device.
This issue has been quite bothersome as I repetitively had to type my password whenever I needed to log back in, again and again. And again. Facial recognition doesn’t work, don’t even mention that (yes, I have tried Howdy, my results were very flaky, unreliable).
Yesterday I dedicated a few hours to find a solution for enabling biometric authentication and I succeeded. Here is what I did:
sudo apt install fprintd libpam-fprintd
wget http://dell.archive.canonical.com/updates/pool/public/libf/libfprint-2-tod1-broadcom/libfprint-2-tod1-broadcom_5.12.018-0ubuntu1~22.04.01_amd64.deb
sudo apt install ./libfprint-2-tod1-broadcom_5.12.018-0ubuntu1~22.04.01_amd64.deb
sudo pam-auth-update

Here go down to Fingerprint authentication, hit a space and then a TAB to jump on OK and hit Enter. Now open the Settings –> Users, hit the Unlock button in the top right corner and enable the Fingerprint Login. Enroll your finger/s, lock your machine and test if it works. My notebook’s security and user experience have truly been elevated to the next level.

P.S.: there are other fingerprint drivers on http://dell.archive.canonical.com/updates/pool/public/libf/, check which one is compatible with yours.

Change IP of Proxmox machines

I have the luxury to have access to a Proxmox cluster, consisting of 3 machines, forming a quorum. I was able to manage their configuration and the residing virtual machines and containers from one of the machine’s web interface, until I moved them from one IP range (10.10.1.0/24) to another (10.10.2.0/24). After this change, I wasn’t able to manage the cluster as a whole.
If you have an enterprise subscription, changing the physical machines’ address isn’t an issue, but the case is different for free users. Here’s the workaround:

  1. Set the machine to local mode:
    systemctl stop pve-cluster
    /usr/bin/pmxcfs -l
  2. Edit the corosync.conf file on every machine:
    vi /etc/pve/corosync.conf
    Change the ring0_addr value from the previous IP to the current IP on every machine and increase the config_version (below totem).
    This things cannot be done without setting the machine to local mode.
  3. Edit the hosts file on every machine:
    vi /etc/hosts
    Change the machine’s previous IP to the current one.
  4. Reboot the machines.
    They should come online and you should be able to manage configurations, VMs and containers from one UI.

The solution to be able to edit the corosync.conf file was shared on austinsnerdythings.com.

Sport-year review, 2022

Usually such posts are created at the end of a year, not in the middle of the next’s January. The reason of this delay is that I had to set up my new tablet-PC, a Microsoft Surface (5 Pro) and configure Git, gpg to sign the commits and Jekyll to pre-check the modifications on the site. I wanted a clear, simple solution. Well, I learnt there’s no such.
Let’s get to the point: the top sport I recorded the most time with in 2022 is running, moved my legs for 125 hours and 55 minutes, accomplished 1304.05 km during that time. I think the hardest run was the Generali Night Run in Budapest where I aimed a 5/km pace, and I finished with a very close result, 5:08/km.
For that many runs I also stretched a lot: 27 hours, 20 minutes and 6 seconds altogether and with that I avoided the injuries. I also spent time doing calisthenics, 16 hours, 17 mins and 37 seconds. Not much, but we had very hot summer and the (dark red) rubber floor burnt my hands, so after a time I gave up going there to do my regular push- and pull-ups.
In ‘22, I (finally) fixed my bike. It got a new color and every failed or damaged part got replaced; 12 hours and 7 minutes were spent in the saddle. Well, it’s clear biking isn’t my main activity (yet).
There were a few hikes, but their amount were insignificant. Summarising, I did sport for 248 hours, 45 minutes and 24 seconds during the 352 activities I recorded with my watches. I wanted to compare this results with 2021, but I bought the Polar Vantage M2 at the end of April, hence the first 5 months aren’t covered in Flow.
Going forward, Christmas brought me a suspension trainer, so I’ll surely have more core trainings in 2023, plus I plan to run around the Lake Velence this spring. That’ll be 30 km, and my longest run so far. Let’s see how this year will end.

Time flies

Faster than I believed. I just checked and the last article here is from February, 2021. Phuhh. Time really flies. I remember I had a lot of ideas what I will write about. The truth is that in April our second daughter was born and with her arrival, things became a bit unorganised; as expected. Tons of things happened since that, the memories flooding my mind now.
My older daughter, Lizi started the kindergarten and goes for a training twice a week; the smaller one, Mili runs and chit-chats all day long, expresses herself in sentences. They are smart, very kind and cute, both loves walking out after the Sun sets and it gets dark.
To be able to find the time for the exercises, my runs became more structured and much shorter, so I remained available during the day for work and the family. In July (2021) started doing calisthenics regularly (takes about half an hour), but at the beginning of this year I subscribed for a half marathon race and prioritised running over calisthenics. The race was good, my target pace was 5/km and I finished with a 5:08/km average.
In the summer I read a lot about bonsai and trees in general and last week we planted ~34 acorns with Lizi. Now we have 74 in soil in the house and on the attic. We’ll have a forest if they sprout :D

The importance of stretching

I’m very sure if you do sports on a regular basis you already read and heard a lot of times that warming up before and stretching after the activity are very important. I’d like to share my recent experience that taught me they really are and I should take them seriously.
In November, the weather here was around -5 ˚C. My runs were not long, 8 km top, but I always rushed. Closed my notebook finishing the work for the day, gear up, run, take off the dress, be with the family. What can go wrong? Nothing, if you are 20 years old. But I’m over 35.
At the end of November, going down the stairs was very painful. I felt something between the shin and the calf on the inner side of my right leg. Even walking wasn’t comfortable, not that much as climbing the stairs, still, I felt it. What I did? Rest and tried to give it proper massages with an SMR foam roll. It got better after a week, thought it’s all over, I can go and run again; but I was wrong. After the 3rd km it was painful again and the next day I barely managed to go down on the stairs, again. Due to the COVID situation I didn’t want to visit a doctor nor a hospital, I decided I’ll rest my legs in the whole month, won’t run, and before I go to sleep cream with comfrey and use a bandage. At least I can get ready for Christmas.
Between the two holidays I had a discussion with my neighbor who I usually run with and he asked how’s my leg doing, can I run? I told him that it got better, however I still feel the pain when I walk. He had injuries earlier and knows a physiotherapist, told me I should visit her.
In the beginning of the new year I went to the therapist, explained since when I do sport (and what kind of them), plus since when I run. The first question she had was: “and how long you stretch after every run?”. Well, about 1 minute. She did some examination and concluded my calf is stuck so much on my sin that it can’t move even a bit, I must massage the calf off the bone, and buy a massage ball to soften the muscles I didn’t care about through the years.
I had a checkup today, on the 10th of February, so more than a month passed by for now. I can walk, go downstairs without pain, run 8-10 km without being worried I can’t go further, but I must still stretch and foam roll my legs, and I think it will be a long way until I don’t feel anything while I have an exercise.