Read the statement by Michael Teeuw here.
SSH startup
-
Also make sure that you enable X forwarding in the ssh call, e.g. ssh -X user@host.
-
DISPLAY=:0
is a must when attempting to start MM through an SSH connection, otherwise it simply doesn’t have a clue what display to use, the one you’re sitting at, or the one on the rpi?
X-Forwarding is not required nor necessary for a simple ssh login, startup, and exit. -
i could you say that i don’t have the electron order.
and display=:0 isn’t it for vertical view?
http://www.bilder-upload.eu/show.php?file=df2e81-1477496516.png
http://www.bilder-upload.eu/show.php?file=64ba61-1477496550.png
-
@geeflaxx The
display=:0
parameter is to send the output of the electron process to the monitor attached to your Raspberry Pi.Rotating the display is done by editing the
/boot/config.txt
file and adding the linedisplay_rotate=1
-
The ‘
DISPLAY=:0
’ bit is simply telling the system (in this case the rpi), which monitor it should use, in this case, the attached one.For rotation, using ‘
display_rotate
’ you can tell the OS how to rotate the output:display_rotate=0 Normal display_rotate=1 90 degrees display_rotate=2 180 degrees display_rotate=3 270 degrees display_rotate=0x10000 horizontal flip display_rotate=0x20000 vertical flip
-
a little question:
how i can delete my “desktop” and start with my npm (so i wanna after a restart direct to my npm not on my desktop)? -
You can’t. You need the desktop to run electron which is what displays the mirror. What you can do, is run an automatic (re)start of the mirror. For instructions, please visit https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
-
thanks, but they don’t work
i create the script, and i saved it in the pm2
but if i restart my magic mirror they begin in the desktop
and if i use ‘pm2 start mm.sh’
they go to the mirrorwith the command ‘pm2 show mm’ i see that is a x in the field “watch & reload”
what now ? -
Then you didn’t do it correctly. Did you launch it, then save the task? You have to follow the steps one by one. Please go back and start from the top and do it again.
-