How to Get MagicMirror to Run on a Raspberry Pi Zero W Rev 1.1
Late-May 2024
Huge thanks to @sdetweil for all his help!
- Flash card with Legacy 32-bit.
- Connect via ssh to run script:
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
Answer yes to disable screen saver and use pm2 questions.
- Remove chromium with:
sudo apt-get remove chromium-browser sudo apt autoremove
- Add Firefox with:
sudo apt-get update sudo apt-get install firefox-esr
- Enable VNC using GUI (Interface Options):
sudo raspi-config
- Connect via TigerVNC (Apple app)
- Edit installers/mm.sh via VNC using Pi's baked-in text editor by adding:
cd ~/MagicMirror export external_browser=firefox DISPLAY=:0 npm start
- Execute fix'em-up script:
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
-
cd ~/MagicMirror/ pm2 start MagicMirror
-
sudo reboot
Note: On my Pi Zero W it takes a solid ten minutes from reboot to actually seeing MM output via HDMI.