Read the statement by Michael Teeuw here.
Installing on a Pi Zero
-
@idoodler I didn’t really understand what was the difference between server only and not. This installs magic mirror, runs it as server only and runs three chromium browser on start-up to display it all… functionally I couldn’t tell the difference, but there might be something I’m missing
-
Pi 3B+ can run the normal magic mirror load file no need to include it in the server only script, just means you need the full fat OS on the Pi
-
@dazza120 thanks, did you test my script? I was looking at a single installer that would auto detect 2B/3B Or Zero and install the appropriate script, thereby meaning a single repo for all platforms.
It’s able to detect 3B+ and Zero and does full install for 3B+ and server only for Zero, I don’t have a 3B though to make sure it works on that.
-
@andyc7687 no mate I done a normal install from the magic mirror bash,I’ve done it twice as I was trying to make the install as light as possible so I was trying to use Stretch with just the basic but it wouldn’t have any of it so had to install the fat version and purge all the bloat ware but from what I’ve looked at so far doesn’t use that much more ram than the lite version, only thing I ended up doing was installing PM2 manually as for some reason it wouldn’t work from the bash after restart.
-
after install on piZero (no W version) everything is ok but serveronly and browser does not start automatically. When I send from terminal:
cd ~/MagicMirror;
node serveronly
server start properly, In browser manually start localhost:8080 showing MagicMirror website properly. What m i missing? -
@12wsx straight after installation did you restart the pi zero? It should run, it’s quite a slow start up process though… if you run
pm2 show MagicMirror
what does it say? It takes a good minute to fire up sometimes… -
Yes i have rebooted and wait about 10min and nothing.
pm2 show MagicMirror says:root@raspberrypi:/home/pi/MagicMirror# pm2 show MagicMirror [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2 [PM2] PM2 Successfully daemonized [PM2][WARN] MagicMirror doesn't exist root@raspberrypi:/home/pi/MagicMirror#
:confused_face:
-
@12wsx Did you change the default user to be called root? I’m confused as to why your prompt says
root@raspberrypi
, but the home directory (/home/pi/MagicMirror
) is that instead of/home/root/MagicMirror
As I remember, the shell script refers directly to a home drive using the user pi; if you wish to change this on your installation, issue:
EDIT: I just noticed I think you’re running off my installer rather than the forked magic mirror repository that I have been testing more recently. The edits are the same, except instead of being in~/MagicMirror/installers
it’ll be in~/MagicMirror/PiZero
, and the files won’t have Pi0 on the end of their namessudo nano ~/MagicMirror/installers/startMagicMirror.sh
change the bottom line so instead of pi it is the correct user’s home drive e.g.
sh /home/root/MagicMirror/installers/chromium_startPi0.sh
Also check pm2_MagicMirrorPi0.json and chromium_startPi0.sh in case they also are pointing to the pi user folder.
then do
sudo chmod a+x ~/MagicMirror/installers/startMagicMirrorPi0.sh; sudo chmod a+x ~/MagicMirror/installers/pm2_MagicMirrorPi0.json; sudo chmod a+x ~/MagicMirror/installers/chromium_startPi0.sh;
to make all the files executable (just in case they aren’t already)
Now run:
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup systemd -u pi --hp /home/pi" pm2 start ~/MagicMirror/installers/pm2_MagicMirrorPi0.json pm2 save
changing the
/home/pi
to ensure you are in the correct user.
Then restart and let me know what happens.That’s the only thing that I can think it could be at the moment
-
@andyc7687 said in Installing on a Pi Zero:
pm2 start ~/MagicMirror/installers/pm2_MagicMirrorPi0.json
Need help…
I have installed MM on my PiZero’s many times with no succes to start it just localy and automatically …
i followed your script and all seems running well and i did what you decided to autostart with PM2…
but it didn’tafter rebooting i can see the process “PM2 v3.4.2 GOD” running, but Nothing happens on my screen
I tried to start the three startscripts manually and i got an Gtk-Error starting chromium-browser which i can’t work
That it basicly works is shown when i start first the xserver manually (startx) and then whitin starting chromium-browser and Point it to http://localhost:8080…
What is going wrong?
where i can see some Errors ?Thanks a lot…
-
@big11 From what I am reading of your reply, are you booting into command line mode? You should be booting into
Desktop AutoLogin
fromsudo raspi-config
| Choose option:Boot Options
| Choose option:Desktop / CLI
| thenDesktop Autologin
.Can you confirm which install script you ran? Did you run the one from
ac2799/MagicMirror
orac2799/MagicMirrorPi0Installer
?