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.

    Complete remote administration using SSH

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 3.1k Views 2 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.
    • M Offline
      madmaiike
      last edited by

      Hi all,

      Like everybody else here, I’ve started tinkering with default modules and the more I discover modules, the more I want them displayed but hey life is made of choices right ?

      Now , I’ve got everything working locally (ie on the RPI3) and I wanted to just stick it behind the mirror and administer it remotely (read from a different country altogether)

      I know how to ssh, nano a config file etc but the whole electron node.js is kinda new to me. I get the concept but I still have a question.

      When I npm start locally (read from the RPI itself) things are fine, the monitor displays the “mirror” and I can access that same page from another computer/iphone using it’s web address.

      Now if I npm start from SSH, it won’t work (because of no X11 running at the time ?)

      Please point me in the right direction so I can move on with my life, this thing starts to drive me crazy.

      Long read but hopefully will be helpful to others.

      Thanks for reading this far :)

      M.

      1 Reply Last reply Reply Quote 0
      • M Offline
        madmaiike
        last edited by

        For now - VNC it is :)

        1 Reply Last reply Reply Quote 0
        • R Offline
          roramirez Core Contributors
          last edited by

          Hi, check the display enviroment variable in your terminal session.

          DISPLAY=:0 nohup npm start &
          

          Or other way you can use pm2.

          Easy module development with MagicMirror Module Template

          1 Reply Last reply Reply Quote 0
          • M Offline
            madmaiike
            last edited by

            Thanks for the reply

            1 Reply Last reply Reply Quote 0
            • M Offline
              madmaiike
              last edited by

              From the github :) I guess RTFM still works

              Important: npm start does not work via SSH, use DISPLAY=:0 nohup npm start & instead. This starts the mirror on the remote display.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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