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

MagicMirror install on proxmox LXC Container?

Scheduled Pinned Locked Moved Solved Troubleshooting
37 Posts 3 Posters 7.8k 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.
  • S Offline
    sdetweil @wishmaster270
    last edited by Oct 16, 2022, 7:03 PM

    @wishmaster270 never had one disconnected w &

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • K Offline
      kusselin @wishmaster270
      last edited by Oct 17, 2022, 7:19 AM

      @wishmaster270 said in MagicMirror install on proxmox LXC Container?:

      @kusselin
      Hi,

      if your problem is only to keep the command running while/after you disconnected to the container you can use the “screen” command.
      It you should be installed with Ubuntu already. If not you can install it with

      sudo apt update && sudo apt install -y screen
      

      You then start a new screen with

      screen -S NAME
      

      while NAME is simply an alias and could be something like “mm”.

      After this you can start the mirror with

      npm run server
      

      And you can leave the screen with the keyboard combination

      CRTL+ad
      

      The screen then keeps running. If you want the resume to the screen you can use

      screen -r NAME
      

      Thanks, so it is going :-)

      S 1 Reply Last reply Oct 18, 2022, 3:52 PM Reply Quote 0
      • S Offline
        sdetweil @kusselin
        last edited by Oct 18, 2022, 3:52 PM

        @kusselin and typically you would setup the container to run MM inside without user intervention… so none of those commands would be needed

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Oct 18, 2022, 6:22 PM Reply Quote 0
        • K Offline
          kusselin @wishmaster270
          last edited by Oct 18, 2022, 5:33 PM

          @wishmaster270 said in MagicMirror install on proxmox LXC Container?:

          npm run server

          have today what changed at the mirror udn had to make reboot… now it no longer works :-(

          After I executed the commands like :

          screen -S MM (MM is the Name)

          then

          npm run server

          and when i close the terminal the MMis stopping:-(

          and the same when i going to cd /MagicMirror

          and then i take this:

          npm run server &

          when i close the terminal MM is stopping…

          what is my problem guys?

          1 Reply Last reply Reply Quote 0
          • K Offline
            kusselin @sdetweil
            last edited by Oct 18, 2022, 6:22 PM

            @sdetweil said in MagicMirror install on proxmox LXC Container?:

            @kusselin and typically you would setup the container to run MM inside without user intervention… so none of those commands would be needed

            Hi sam, unfortunately I have not yet understood why the server always stops when closing putty???

            With the command npm run server I start the server… why does the container stop again?

            S 1 Reply Last reply Oct 18, 2022, 6:27 PM Reply Quote 0
            • S Offline
              sdetweil @kusselin
              last edited by sdetweil Oct 18, 2022, 6:29 PM Oct 18, 2022, 6:27 PM

              @kusselin because that is the way it works. when the terminal window closes, any running app also is forced closed. it’s a security thing

              during development I would not close the window. after you are happy, I would make the container auto start mm as part of it’s startup.
              a containers design is to run ONE app.

              I do not know how I do this w lxc containers
              w docker, u add a property to the Dockerfile to tell what app to start

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                kusselin @wishmaster270
                last edited by Oct 18, 2022, 6:33 PM

                @wishmaster270 said in MagicMirror install on proxmox LXC Container?:

                @kusselin
                Hi,

                if your problem is only to keep the command running while/after you disconnected to the container you can use the “screen” command.
                It you should be installed with Ubuntu already. If not you can install it with

                sudo apt update && sudo apt install -y screen
                

                You then start a new screen with

                screen -S NAME
                

                while NAME is simply an alias and could be something like “mm”.

                After this you can start the mirror with

                npm run server
                

                And you can leave the screen with the keyboard combination

                CRTL+ad
                

                The screen then keeps running. If you want the resume to the screen you can use

                screen -r NAME
                

                And what about this… yesterday i installed screen and i Type the Commander in putty and the Containers was already online…

                Now, After an reboot Nottingham is Gong :-(

                S 1 Reply Last reply Oct 18, 2022, 7:21 PM Reply Quote 0
                • S Offline
                  sdetweil @kusselin
                  last edited by Oct 18, 2022, 7:21 PM

                  @kusselin did the IP address change?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kusselin
                    last edited by Oct 19, 2022, 7:23 PM

                    Hi sam,

                    This was my Solution Now

                    https://forum.iobroker.net/topic/52195/magic-mirror-zusammen-mit-iobroker/173?_=1666207319057

                    Crontab

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 4
                    • 4 / 4
                    4 / 4
                    • First post
                      33/37
                      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