most guides I found online are for windows based computers and those that even name linux are outdated.

fastboot devices recognizes the device and I can also boot the phone to fastboot: it shows a black (not blank) screen with the word FASTBOOT printed orange.

I tried following https://android.gadgethacks.com/how-to/complete-guide-flashing-factory-images-android-using-fastboot-0175277/ but fastboot flashing unlock and fastboot oem unlock return FAILED (remote: 'Token Verify Failed, Reboot the device ')

developer options and OEM unlocking are both activated on the device