• 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 LXC Container as a server will not do

Scheduled Pinned Locked Moved Unsolved Troubleshooting
10 Posts 3 Posters 562 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.
  • K Offline
    kusselin
    last edited by kusselin Aug 11, 2024, 12:29 PM Aug 11, 2024, 12:28 PM

    Hello everyone, I would like to install the MagicMirror as a server on a Proxmox LXC container…what have I done so far:

    1.New ConLXC container created
    
    1. Ubuntu 24 LTS installed
      3.run apt-get update && apt-get upgrade -y
      4.created new user “MM” with useradd -s /bin/bash -m MM
      5.assign password for MM
    2. add the new user to the group “sudo” with sudo usermod -a -G sudo MM
      7.reboot
      8.logged in with MM and pass
      9.then execute the following command:
    bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
    
    

    10.After installation, the following command is executed:

    bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
    
    

    11.then entered cd and I am on

    mm@MagicMirror-live:~$
    

    12.then enter nano mm.sh and insert the following there:

    cd ~/MagicMirror
    npm run server
    
    

    13.Then make the file executable with

    chmod +r ~/mm.sh
    
    
    1. then enter crontab -e and select 1 then enter the last thing at the bottom:
    @reboot /home/pi/mm.sh 
    

    15.then out and reboot made…
    16.to be on the safe side, go to the /MagicMirror directory and run npm run server…then this is what comes out:

    mm@MagicMirror-live:~/MagicMirror$ npm run server
    
    > magicmirror@2.28.0 server
    > node ./serveronly
    
    [2024-08-10 16:51:17.974] [LOG]   Starting MagicMirror: v2.28.0
    [2024-08-10 16:51:17.986] [LOG]   Loading config ...
    [2024-08-10 16:51:17.989] [LOG]   config template file not exists, no envsubst
    [2024-08-10 16:51:18.334] [LOG]   Loading module helpers ...
    [2024-08-10 16:51:18.335] [LOG]   No helper found for module: alert.
    [2024-08-10 16:51:18.343] [LOG]   Initializing new module helper ...
    [2024-08-10 16:51:18.344] [LOG]   Module helper loaded: updatenotification
    [2024-08-10 16:51:18.344] [LOG]   No helper found for module: clock.
    [2024-08-10 16:51:18.561] [LOG]   Initializing new module helper ...
    [2024-08-10 16:51:18.563] [LOG]   Module helper loaded: calendar
    [2024-08-10 16:51:18.565] [LOG]   No helper found for module: compliments.
    [2024-08-10 16:51:18.567] [LOG]   No helper found for module: weather.
    [2024-08-10 16:51:18.568] [LOG]   No helper found for module: weather.
    [2024-08-10 16:51:18.717] [LOG]   Initializing new module helper ...
    [2024-08-10 16:51:18.717] [LOG]   Module helper loaded: newsfeed
    [2024-08-10 16:51:18.718] [LOG]   All module helpers loaded.
    [2024-08-10 16:51:18.724] [LOG]   Starting server on port 8080 ...
    [2024-08-10 16:51:18.746] [LOG]   Server started ...
    [2024-08-10 16:51:18.747] [LOG]   Connecting socket for: updatenotification
    [2024-08-10 16:51:18.747] [LOG]   Starting module helper: updatenotification
    [2024-08-10 16:51:18.748] [LOG]   Connecting socket for: calendar
    [2024-08-10 16:51:18.748] [LOG]   Starting node helper for: calendar
    [2024-08-10 16:51:18.748] [LOG]   Connecting socket for: newsfeed
    [2024-08-10 16:51:18.748] [LOG]   Starting node helper for: newsfeed
    [2024-08-10 16:51:18.749] [LOG]   Sockets connected & modules started ...
    [2024-08-10 16:51:18.749] [INFO]
    >>>   Ready to go! Please point your browser to: http://localhost:8080   <<<
    [2024-08-10 16:51:18.871] [INFO]  System information:
    ### SYSTEM:   manufacturer: ; model: ; raspberry: undefined; virtual: false
    ### OS:       platform: linux; distro: Ubuntu; release: 24.04 LTS; arch: x64; kernel: 6.5.13-3-pve
    ### VERSIONS: electron: undefined; used node: 20.9.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2
    ### OTHER:    timeZone: UTC; ELECTRON_ENABLE_GPU: undefined
    ^C[2024-08-10 16:51:29.977] [LOG]   [SIGINT] Received. Shutting down server...
    [2024-08-10 16:51:29.977] [LOG]   Stopping module helper: updatenotification
    [2024-08-10 16:51:29.977] [LOG]   Stopping module helper: calendar
    [2024-08-10 16:51:29.977] [LOG]   Stopping module helper: newsfeed
    [2024-08-10 16:51:29.978] [LOG]   Node_helpers stopped ...
    
    

    whats that 😞
    He shuts down the server again… 😞 why ?

    Did I do it wrong again???
    Thanks and greetings

    S 1 Reply Last reply Aug 11, 2024, 12:44 PM Reply Quote 0
    • S Offline
      sdetweil @kusselin
      last edited by sdetweil Aug 11, 2024, 12:45 PM Aug 11, 2024, 12:44 PM

      @kusselin server should run forever til stopped with kill or ctrl-c

      Also you don’t need to run upgrade right after install. Install always does the latest

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Aug 11, 2024, 3:28 PM Reply Quote 0
      • K Offline
        kusselin @sdetweil
        last edited by Aug 11, 2024, 3:28 PM

        @sdetweil hi, And how do I get it so that the server is always running…
        Isn’t npm run server enough?

        S 1 Reply Last reply Aug 11, 2024, 3:58 PM Reply Quote 0
        • S Offline
          sdetweil @kusselin
          last edited by sdetweil Aug 11, 2024, 3:59 PM Aug 11, 2024, 3:58 PM

          @kusselin that should be it

          Says received int signal, like someone did ctrl-c

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • G Offline
            garbleflux Project Sponsor
            last edited by garbleflux Aug 13, 2024, 8:27 AM Aug 13, 2024, 8:24 AM

            Hi kusselin,
            use this ready skript from Proxmox VE Helper Scripts - it works like a charme.

            "To create a new MagicMirror Server LXC, run the command below in the Proxmox VE Shell.
            To Update MagicMirror, run the command below (or type update) in the LXC Console.

            bash -c “$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/magicmirror.sh)”

            ⚡ Default Settings: 512MiB RAM - 3GB Storage - 1vCPU ⚡

            MagicMirror Interface: IP:8080

            ⚙️ Configuration

            It’s from this url: https://tteck.github.io/Proxmox/

            K 2 Replies Last reply Sep 11, 2024, 7:53 PM Reply Quote 0
            • K Offline
              kusselin @garbleflux
              last edited by Sep 11, 2024, 7:53 PM

              @garbleflux hi, thanks a lot fpr your answer…TOP

              1 Reply Last reply Reply Quote 0
              • K Offline
                kusselin @garbleflux
                last edited by kusselin Sep 13, 2024, 1:39 PM Sep 13, 2024, 1:36 PM

                @garbleflux said in MagicMirror install on LXC Container as a server will not do:

                Hi kusselin,
                use this ready skript from Proxmox VE Helper Scripts - it works like a charme.

                "To create a new MagicMirror Server LXC, run the command below in the Proxmox VE Shell.
                To Update MagicMirror, run the command below (or type update) in the LXC Console.

                bash -c “$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/magicmirror.sh)”

                ⚡ Default Settings: 512MiB RAM - 3GB Storage - 1vCPU ⚡

                MagicMirror Interface: IP:8080

                ⚙️ Configuration

                It’s from this url: https://tteck.github.io/Proxmox/

                it´s not going…

                Fehler

                S 1 Reply Last reply Sep 13, 2024, 1:39 PM Reply Quote 0
                • S Offline
                  sdetweil @kusselin
                  last edited by Sep 13, 2024, 1:39 PM

                  @kusselin worked for me

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Sep 13, 2024, 2:11 PM Reply Quote 0
                  • K Offline
                    kusselin @sdetweil
                    last edited by Sep 13, 2024, 2:11 PM

                    @sdetweil hi…are you conneted as root ?

                    S 1 Reply Last reply Sep 13, 2024, 2:33 PM Reply Quote 0
                    • S Offline
                      sdetweil @kusselin
                      last edited by Sep 13, 2024, 2:33 PM

                      @kusselin I am on my desktop… not on a container

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      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