Read the statement by Michael Teeuw here.
(electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0
-
@bachoo786 you cannot run this over ssh, display 0 is the actual display screen connected to the pi hdmi port
if u are running in console (text) mode, then you must run in serveronly, and use a browser from some other system …
I have my 4b running MM without problem, altho I used the updated install script (to be the official version on next release)
see here https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer -
@sdetweil I suppose I would look stupid to tell you that at the moment I have not connected my rpi 4b to any display. Could that be answer?
-
@bachoo786 Hm… could be,that would be no display 0 (i hate it when the computers get it right!)
if u want to see it from some other system, then do
cd ~/MagicMirror node serveronly
it will tell you what IP address to put into the browser on your other system
-
@sdetweil right ok make sense.
to be fair the instrcutions on github on installing MagicMirror are little confusing as the installation script asks you if you want to use pm2 and when you say yes it should automatically run magicmirror via pm2.
however there is this link (https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror) on the github explaining how to auto starting the magic mirror. And when you follow this link you end up having two instances of magic mirror on pm2 i.e. MagicMirror and mm. Thats confusing!
Do I still have to follow the autostarting magicmirror link? or is the install script sufficient?
-
@bachoo786 install script does it for you…
-
@bachoo786 could you do me a favor before u plug in a monitor,
can you do
pgrep Xorg
from the ssh terminal…
I’m guessing it should return nothing…
my new run-start.sh script in next release, will detect text mode and start your installation in serveronly automagically.,! (pm2 just starts the script)
-
@sdetweil yeah it returned nothing.
so shall I follow your script i.e. https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
and reinstall MagicMirror?Do I have to worry about installing pm2? will Magic Mirror run automatically if I was to reboot my raspberry? etc?
to be fair I want to install and run Magic Mirror on my raspberry. I suppose that is server mode? and not client mode? whats the difference sorry ?
-
@bachoo786 you don’t need to reinstall… you are ok… just need a display on the 4 or run server only…
the new code isn’t used on my install except for pi0, which won’t work anymore without some changes
-
@bachoo786 said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:
yeah it returned nothing.
awesome! thanks
-
@sdetweil what is server mode and client mode? I dont understand the difference. Can you please explain? thanks.