Read the statement by Michael Teeuw here.
MagicMirror install on proxmox LXC Container?
-
@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?
-
@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?
-
@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 -
@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 withsudo 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 :-(
-
@kusselin did the IP address change?
-
Hi sam,
This was my Solution Now
https://forum.iobroker.net/topic/52195/magic-mirror-zusammen-mit-iobroker/173?_=1666207319057
Crontab