• 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.

Does magicmirror need minimal X11 to run?

Scheduled Pinned Locked Moved General Discussion
26 Posts 2 Posters 6.3k Views 3 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.
  • L Offline
    lpt2007
    last edited by Jan 14, 2020, 2:14 PM

    Does magicmirror need minimal X11 to run?

    S 1 Reply Last reply Jan 14, 2020, 2:18 PM Reply Quote 0
    • S Away
      sdetweil @lpt2007
      last edited by sdetweil Jan 14, 2020, 2:19 PM Jan 14, 2020, 2:18 PM

      @lpt2007 if u want to run it on the same system, yes, it is a graphical application,
      if you want to access the server from a remote system (only) , then no… it can run in serveronly mode

      for pi 0, the local embedded browser (electron) is no longer available for the version of node now being provided, so we drop back to serveronly mode and use chromium-browser to run the mirror locally, but that requires graphical mode

      as most users don’t know all this, i updated the run-start.sh script to do all this for you.
      if no X11, (system in console mode) then run in serveronly

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • L Offline
        lpt2007
        last edited by Jan 14, 2020, 2:24 PM

        I try to run it in docker container with gui on my pi . But when I start it, there is no output to HDMI. MM starts in server mode no matter what I do.

        S 1 Reply Last reply Jan 14, 2020, 2:38 PM Reply Quote 0
        • S Away
          sdetweil @lpt2007
          last edited by sdetweil Jan 14, 2020, 2:39 PM Jan 14, 2020, 2:38 PM

          @lpt2007 said in Does magicmirror need minimal X11 to run?:

          I try to run it in docker container with gui on my pi

          which docker container?

          the linked one starts MM in serveronly inside the container and then u use a browser on the outside of the container to access to exposed port.

          there is a second docker solution that uses the fact that one can SEE and ACCESS the docker runtime and launches electron to push content out to the X11 gui… this is really cheating…
          but there was a fix created

          replace the run-start.sh with this one from the next release
          https://raw.githubusercontent.com/MichMich/MagicMirror/develop/run-start.sh

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          L 1 Reply Last reply Jan 15, 2020, 11:43 AM Reply Quote 0
          • L Offline
            lpt2007 @sdetweil
            last edited by Jan 15, 2020, 11:43 AM

            @sdetweil said in Does magicmirror need minimal X11 to run?:

            replace the run-start.sh with this one from the next release
            https://raw.githubusercontent.com/MichMich/MagicMirror/develop/run-start.sh

            I changed run-start.sh file and now I get this error:

            > magicmirror@2.10.1 start /root/MagicMirror
            > ./run-start.sh
            /root/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
            npm ERR! code ELIFECYCLE
            npm ERR! syscall spawn
            npm ERR! file sh
            npm ERR! errno ENOENT
            npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
            npm ERR! spawn ENOENT
            npm ERR! 
            npm ERR! Failed at the magicmirror@2.10.1 start script.
            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /root/.npm/_logs/2020-01-15T11_40_27_011Z-debug.log
            
            S 1 Reply Last reply Jan 15, 2020, 3:32 PM Reply Quote 0
            • S Away
              sdetweil @lpt2007
              last edited by Jan 15, 2020, 3:32 PM

              @lpt2007 graphical stuff not loaded in container.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              L 1 Reply Last reply Jan 16, 2020, 7:03 PM Reply Quote 0
              • S Away
                sdetweil
                last edited by sdetweil Jan 15, 2020, 3:54 PM Jan 15, 2020, 3:53 PM

                I would look at this docker setup
                https://gitlab.com/khassel/magicmirror

                Otherwise run container in serveronly mode and use chrome on the pi to view the app.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lpt2007 @sdetweil
                  last edited by Jan 16, 2020, 7:03 PM

                  @sdetweil said in Does magicmirror need minimal X11 to run?:

                  @lpt2007 graphical stuff not loaded in container.

                  I added needed graphical libraries, now I get this error:

                  /root/MagicMirror/node_modules/electron/dist/electron: /lib/arm-linux-gnueabihf/libdbus-1.so.3: no version information available (required by /root/MagicMirror/node_modules/electron/dist/electron)
                  /root/MagicMirror/node_modules/electron/dist/electron: /lib/arm-linux-gnueabihf/libdbus-1.so.3: no version information available (required by /root/MagicMirror/node_modules/electron/dist/electron)
                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 1
                  npm ERR! magicmirror@2.10.1 start: `./run-start.sh`
                  npm ERR! Exit status 1
                  npm ERR!
                  npm ERR! Failed at the magicmirror@2.10.1 start script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /root/.npm/_logs/2020-01-16T19_00_47_796Z-debug.log
                  
                  S 1 Reply Last reply Jan 16, 2020, 8:43 PM Reply Quote 0
                  • S Away
                    sdetweil @lpt2007
                    last edited by Jan 16, 2020, 8:43 PM

                    @lpt2007 need more libraries.

                    I’d run serveronly in the container, and use chromium from outside the container

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    L 1 Reply Last reply Jan 16, 2020, 10:58 PM Reply Quote 0
                    • L Offline
                      lpt2007 @sdetweil
                      last edited by Jan 16, 2020, 10:58 PM

                      @sdetweil said in Does magicmirror need minimal X11 to run?:

                      @lpt2007 need more libraries.

                      I’d run serveronly in the container, and use chromium from outside the container

                      Thanks, but this is not an option, because I try to use mm as addon for Home Assistant and I use hassos image. The mm will be one of the systems I will use on rpi and I will call them trough ha when I need them.

                      Any idea what error I posted means?

                      S 3 Replies Last reply Jan 16, 2020, 11:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        6/26
                        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