How to install MagicMirror on Pi Zero W
This guide is not my own and the information provided came from many contributors: @evos, @Wieber, & @randombullet. I spent the past 24 hours playing with my new pi and this is what worked for me.
I built my pi using a windows 10 machine.
Tested 3.14
The Beginnings:
- Download Jessie Lite and use Win32DiskImager to write img to SD card (8GB card recommended)
- Boot SD card and verify you can login
- Create
wpa_supplicant.conf
via windows text editor and plug SD back into windows machine
network={
ssid="NAME_OF_WIFI_AP"
psk="WIFI_PASSWORD"
}
- Place
wpa_supplicant.conf
in Boot folder of SD card - Boot SD card and login
- Enable SSH:
sudo raspi-config
-> Select Interfacing Options -> select SSH -> select Enable -> select Finish
You are now ready to connect to your pi via Putty. Please do so for the next portion.
The fun parts:
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo apt-get install npm
sudo apt-get install git
cd /home/pi/
git clone https://github.com/MichMich/MagicMirror
cd MagicMirror
sudo npm install
#This will take a LONG time, expect 30 minutessudo apt-get install midori
sudo apt-get install unclutter
sudo aptitude install xinit
sudo apt-get install matchbox
sudo raspi-config
-> Boot Options -> B1 Desktop/CLI -> B2 Console Autologinsudo nano /home/pi/start.sh
#! /bin/bash
cd /home/pi/MagicMirror
node serveronly &
sleep 45
sudo xinit /home/pi/startMidori.sh
15 Control + x > Y > Return
16 sudo chmod a+x /home/pi/start.sh
17 sudo mv /home/pi/start.sh /etc/init.d/startMagicMirror.sh
18 sudo update-rc.d startMagicMirror.sh defaults 100
19 sudo apt-get install x11-xserver-utils
20 sudo nano /home/pi/startMidori.sh
#!/bin/sh
xset -dpms # disable DPMS (Energy Star) features.
xset s off # disable screen saver
xset s noblank # don’t blank the video device
matchbox-window-manager &
unclutter &
midori -e Fullscreen -a http://localhost:8080
21 Control + x > Y > Return
22 sudo nano /boot/config.txt
disable_overscan=1
framebuffer_width=1050 #match your res
framebuffer_height=1680 #match your res
framebuffer_depth=32
framebuffer_ignore_alpha=1
hdmi_pixel_encoding=1
hdmi_group=2
display_rotate=1
23 Control + x > Y > Return
24 sudo reboot
Congrats, your pi should now boot to MagicMirror. To configure your modules please follow the ‘Readme’ on the Github: https://github.com/MichMich/MagicMirror
I actually got it to working just hours ago, on Pi Day!