• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

SSH startup

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 8 Posters 16.3k Views 8 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    bhepler Module Developer @geeflaxx
    last edited by Oct 26, 2016, 5:07 PM

    @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 line display_rotate=1

    S 1 Reply Last reply Nov 25, 2016, 7:23 PM Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by Oct 26, 2016, 6:49 PM

      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 Life? Cool! Where can I download one of those from?

      1 Reply Last reply Reply Quote 0
      • G Offline
        geeflaxx
        last edited by Oct 26, 2016, 7:05 PM

        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)?

        1 Reply Last reply Reply Quote 0
        • K Offline
          KirAsh4 Moderator
          last edited by Oct 26, 2016, 7:06 PM

          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

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 0
          • G Offline
            geeflaxx
            last edited by Oct 26, 2016, 7:17 PM

            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 mirror

            with the command ‘pm2 show mm’ i see that is a x in the field “watch & reload”
            what now ?

            1 Reply Last reply Reply Quote 0
            • K Offline
              KirAsh4 Moderator
              last edited by Oct 26, 2016, 7:30 PM

              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.

              A Life? Cool! Where can I download one of those from?

              1 Reply Last reply Reply Quote 0
              • G Offline
                geeflaxx
                last edited by Oct 26, 2016, 7:58 PM

                http://www.bilder-upload.eu/show.php?file=e77336-1477512295.png

                i only did it

                1 Reply Last reply Reply Quote 0
                • K Offline
                  KirAsh4 Moderator
                  last edited by Oct 26, 2016, 8:07 PM

                  There’s a glaring instruction right there on the screen that you did not follow. When you typed in pm2 startup it clearly told you what you need to do, which I don’t see anywhere in your command log. I’m sorry, but if you can’t follow directions given to you, there is really not a whole lot anyone can do to help you. The instructions are there for you to follow, please do that.

                  A Life? Cool! Where can I download one of those from?

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Stehman07 @bhepler
                    last edited by Nov 25, 2016, 7:23 PM

                    @bhepler I try to enter ‘display_rotate=1’ in the config.txt file in the boot folder. I try to save the file and overwrite the previous version of the file to only get the message “can’t open file to write”. Where am I going wrong on this?

                    Y 1 Reply Last reply Nov 25, 2016, 7:31 PM Reply Quote 0
                    • Y Offline
                      yawns Moderator @Stehman07
                      last edited by Nov 25, 2016, 7:31 PM

                      @Stehman07
                      you need to edit the file as root, the normal user pi does not have sufficient rights.

                      Run sudo nano /boot/config.txt instead

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 2 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy