Unlock the screen with YubiKey 5 in Debian GNU/Linux trixie with KDE (spoiler: not sddm)

I got a YubiKey 5 and I played some weeks with it. Example of things I’ve done:

  • ✅ passwordless sudo in Debian, or, 2FA sudo in Debian
  • ✅ passwordless policy kit (e.g. “Run as administrator”) in Debian, or, 2FA for it
  • ✅ passwordless login in some websites, or, 2FA, in Firefox
  • ✅ passwordless SSH access in Debian, or, 2FA SSH in Debian
  • ✅ passwordless login in Debian, or, 2FA login in Debian (sddm)
  • 🥶 but screen unlocking

I mean, super easy to login, but it was impossible to lock/unlock the screen with YubiKey. WHY? Good question.

Answer: KDE designers are too good and trolled me :3 note for myself:

https://superuser.com/q/1934174/390314

GNU Gettext in PHP (not working)

GNU Gettext is a powerful, standard, efficient way to translate a PHP project. It’s not quite modern but it’s solid and it’s a standard de-facto. Unfortunately, GNU Gettext can be very painful to configure, since no error is shown. Sometime it just does not translate anything. Moreover, it has a very aggressive cache and the official documentation does not say anything about how to clear it without restarting your whole webserver. For this and other tips

Enjoy my definitive guide with deep troubleshooting steps, also thanks to strace.
https://stackoverflow.com/a/79584284/3451846

Just enjoy the native GNU Gettext, without using slow userland replacements.

Install minimal LXDE on Debian (with/without autologin)

If you forgot to install LXDE on a Debian (for example bullseye) and you want something super-minimal, do this:

IMPORTANT: don’t read this guide if you are using Raspbian! Go to the next section instead.

sudo apt install lxde-core lxdm

Instead, do this

raspi-config

Then go to System Options > Boot / Auto-login > Desktop.

And reboot. Done!

At this point, I’ve noticed that the raspi-config option is not able to enable the auto-login option. If you need it, don’t worry. In that case, just manually change this file:

/etc/lxdm/lxdm.conf

And be sure to have this line de-commented:

[base]
autologin=pi

Source:

https://wiki.debian.org/LXDE

(P.S. I’m trying to increase the rank of the Debian wiki to finally find it in search results… lol – sorry for this unuseful post)

Installing LXDE on Raspbian

If you are on Raspbian (for example bullseye), instead, go for this to install LXDE (note that in Raspbian you have no other reasonable choice probably):

sudo apt install raspberrypi-ui-mods

Done. Eventually also run again raspi-config as mentioned above.

Source:

https://github.com/MichaIng/DietPi/issues/1558#issuecomment-691507999

One bug, on one billion devices

https://stackoverflow.com/q/75911453/3451846

Apart from this weird problem, I think a problem in StackOverflow as far as I am concerned maybe is with big communities, like the tag StackOverflow community.

That community is super-flooded with absurd questions from absurd people and comes the easy downvotes, even when a question simply from cursed results appears that however is well posed, is in-topic, has references to official documentation, has screenshots, steps to reproduce, obvious troubleshooting effort, and is not posed by a person who has critical English issues.

But yes, that question started with two downvotes, and no: no constructive comments like “clarify this / that” etc. Just downvotes.

Now, the question has 1 downvote, and only 1 comment (actually it’s an improper comment that provides an answer, but I don’t want to scold that user since that user is the only person on my side – it seems; anyway: do not put answers in the comments please – put an answer in the answer).

LimeSurvey: wrong decryption key (AARGH)

If encryption shit fails in your LimeSurvey, try this:

https://serverfault.com/questions/1086361/limesurvey-sodiumexception-wrong-decryption-key

TL;DR: Save again your SMTP password.

Have you fixed? Great! Close this browser tab.

Is the bug already there? Oh no! Probably you are an idiot and you deleted your encryption keys.

You have a backup. Isn’t it? Uh?