I recently purchases a Raspberry Pi 4 to run Home Assistant. It’s an open source home automation solution. All the instructions are here: https://www.home-assistant.io/installation/raspberrypi It worked fine doing it from a Mac. The process was exactly as described.
Intro to python programming on the mac.