Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
Notes written here should work on
- Ubuntu 20.04 with Gnome
- Debian 11 with Gnome
- Linux Mint with Cinnamon (needs different environment setup, check comments)
- Arch Linux with Gnome (pacman instead of apt)
This is not a step by step guide