Use a fingerprint sensor on a ThinkPad with Ubuntu
Dead simple. Everything is already installed on Ubuntu from 20.04 upwards. Just call fprintd-enroll and let it read your finger (by default, it is the right index finger[1]):
$ fprintd-enroll Using device /net/reactivated/Fprint/Device/0 Enrolling right-index-finger finger …