Your Magic Mirror should now be up and running, time to add your modules and configure it! NOTE: Upon reboot, it takes about 1-2 minutes for magic mirror to startup, be patient! magic mirror should start running in chromium.$ sudo env PATH=$PATH:/usr/local/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi –hp /home/pi.Note: Latest version of pm2 didn’t provide this link below but you need to run it or pm2 will not save or start automatically on reboot.Copy and paste the command that the screen prints out, otherwise the pm2 process won’t save.Change the value of “ allowed_users=console” to “ allowed_users=anybody” in /etc/X11/nfig.Before doing this, make sure any user can launch an Xorg process(IhadtodothisSinceISSHintoThePi).press ctrl +alt + f1 and press ctrl+c, this is also a good place to see any errors with your magic mirror config fileĪuto Starting MagicMirror (I followed the guide on the MM github page).chromium_start.sh –> for starting xserver and chromiumĪt this point, you should be able to run “node serveronly” from the Magic Mirror folder and start magic mirror successfully.įrom a different terminal, run the following command and chrome should load the magic mirror (.mmstart.sh – for starting MagicMirror and xserver/chromium on startup.Make two script files at the root of the operating system ($cd ), System Options -> S5 Boot/Auto Login -> B2 Console Autologin.$ sudo touch /etc/chromium-browser/customizations/01-disable-update-check echo CHROMIUM_FLAGS=\”\$\ –check-for-update-interval=31536000\” | sudo tee /etc/chromium-browser/customizations/01-disable-update-check.disable the popup by executing this command.** grab another beer (but don’t get drunk, we aren’t done). Install a Chromium Browser ( already install on latest raspbian version!) ** grab a beer and wait like 20 minutes.Figure out what IP address the rpi has, run the command.Once you are booted into the desktop, go to system preferences > interface and enable SSH Otherwise execute $sudo apt update & sudo apt upgrade The gui wizard will ask you if you want to update the OS, chose yes.This is now on the boot up screen, connect your raspberry pi to your wifi network through the built in gui.Other Magic Mirror with Pi Zero Projects!ĭownload and install the latest version of raspbianĮnable SSH, change locale, change keyboard layout Solution: Change the value of “allowed_users=console” to “allowed_users=anybody” in /etc/X11/nfig must be fix your problem.Raspbian Stretch – chromium_start.sh error “ /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server” –> until this is fixed pm2 won’t launch chromium-browser.You cannot launch chromium-browser remotely so you will need to run.If magic mirror is running successfully do $ sudo netstat -tlnp | grep 8080 and it should return one line with 127.0.0.1:8080.$xinit chromium-browser should not be run with sudo.Update : with Raspbian Stretch, Midori would display a white screen due to “connection refused” when trying to access http:localhost:8080, I switched to chromium-browser and updated the guide to reflect that. I need to troubleshoot this further but was able to install the magic mirror by modifying the package.json file and changing electron version to “^2.0.0” Will try to find a way to get this working on latest electron. Update : Latest magic mirror install fails because armv6l is not supported for electron 3.0.0 or higher. Magic mirror on pi zero is broken until further notice :/ please leave a comment if you know of a fix! I think it was removed for security reasons. Update : electron won’t install on armv6, it even after specifying ^2.0.0 it tries to install 1.8.0 and it doesn’t find it in the electron repository. Update : Yay! I’ts up are running again!! Thanks Igor □ I’ve updated the guide with latest steps, specifically this line is needed to install latest version of electron on the pi zero “npm install –arch=armv7l” Hopefully chromium will have a new version for the pi zero before then, enjoy!! I disabled that pop up by following this link which tells it to check for a new version every year. Update : New updated Image! With this new image, there was a popup that kept saying that chromium needed to update, and then it would fail to update. I do have a RPI 3 which I will use to bring my magic mirror back to life It may be time to upgrade to a new pi :/. Update : I’ve tried updating this guide but electron for 32 bit hasn’t been supported for over 1.5yrs so I’m running into many problems getting this up and running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |