Read the statement by Michael Teeuw here.
MagicMirror install on LXC Container as a server will not do
-
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
- 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 - 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
- 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 - Ubuntu 24 LTS installed
-
@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
-
@sdetweil hi, And how do I get it so that the server is always running…
Isn’t npm run server enough? -
@kusselin that should be it
Says received int signal, like someone did ctrl-c
-
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/
-
@garbleflux hi, thanks a lot fpr your answer…TOP
-
@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…
-
@kusselin worked for me
-
@sdetweil hi…are you conneted as root ?
-
@kusselin I am on my desktop… not on a container