As a #Maker I found this template from @RPiSpy really helpful! I'm building a #NEMSLinux Server out of a 1U rack-mountable PoE network switch, and embedding the #RaspberryPi 5 inside the switch. I taped this to the inside of the switch and used a center punch to dent the holes, which I'll now drill out and replace with standoffs. And yes, the template is compatible with the RPi 4 and 5 too, even though the file is from 2012. 😊 Brilliant! Download and print: https://www.raspberrypi-spy.co.uk/2012/11/raspberry-pi-mounting-hole-positions-and-template/
Raspberry Pi Mounting Hole Template for Printing - Raspberry Pi Spy

Download the Raspberry Pi mounting hole template to accurately drill holes and attach your Pi to surfaces or cases. The template is available as a PDF in A4 and US Letter sizes. It includes templates for all Pi models and the official Pi Camera module.

Raspberry Pi Spy