-
Notifications
You must be signed in to change notification settings - Fork 0
Jessie Lite Installation Guide
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lxde-core
sudo apt-get install lightdm
sudo raspi-config
go to "Boot Options" and change boot to "Desktop" or "Desktop Autologin"
sudo apt-get install git
sudo apt-get install libxss1
sudo apt-get install libnss3
sudo apt-get install unclutter
curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash cd ~/MagicMirror
cd ~/MagicMirror
npm install
cp /config/config.js.sample /config/config.js
cd ..
sudo nano /boot/config.txt
Add the following line:
display_rotate=3
avoid_warnings=1
Install PM2 using NPM:
sudo npm install -g pm2
Starting PM2 on Boot:
pm2 startup
PM2 will now show you a command you need to execute.
The code is:
sudo su -c "env PATH=$PATH:/usw/bin pm2 startup linux -u pi --hp /home/pi"
go back to root:
cd ~
Create the start script:
nano mm.sh
Add the following lines:
cd ~/MagicMirror
DISPLAY=:0 npm start
Save and close, using the commands CTRL-O and CTRL-X.
Make the shell script executable:
chmod +x mm.sh
You are now ready to the MagicMirror using this script using PM2.
pm2 start mm.sh
pm2 save
Go to LXDE-autostart config:
sudo nano /etc/xdg/lxsession/LXDE/autostart
add the following lines:
@xset s noblank
@xset s off
@xset -dpms
Save and close, using the commands CTRL-O and CTRL-X.
Go to lightdm.conf:
sudo nano /etc/lightdm/lightdm.conf
add the following lines:
xserver-command=X -s 0 -dpms
sudo reboot