Step by step guide to MagicMirror on Ubuntu 22 server?
I’ve seen some guides for MagicMirror on linux but I am on the struggle bus trying to setup MM on a remote VPS (via SSH). Ubuntu 22 on ARM architecture. Is there a guide floating around? Has anyone done this?
@sdetweil thanks! can I use this curl command?
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”
@sdetweil oh sorry - a vps is a remote, virtual machine. but it functions exactly like a low power (2cores 8g of ram) ARM machine.
@eqpaisley does it have a local UI?
if not, then you do
npm run server
to execute the server
and then view with a browser somewhere else
there is one install, and three different run modes
@sdetweil great ty. Yeah the plan is to run this non-gui version in server mode. I’ll need to edit the config to allow remote connections from my IPs and open the right ports, etc it will be a process lol but I think I can sort it out.
@sdetweil could you remind me of the command to run NPM RUN SERVER in the background so it won’t quit when I close my SSH session?
Also, if I need to re-run the server (let’s say I update the config or add a module) how do I do that?
@eqpaisley if u setup pm2, then
pm2 status will show u the managed apps
pm2 --help will show u all the things it can do
all take the name of the app, or the number
if u setup pm2 q my script then it launches
change the npm start to npm run server
if u didn’t setup pm2, then the script on my script
fixuppm2.sh will do that
@sdetweil Thanks! I ended up setting up a magicmirror.service. now I use
sudo service magicmirror resart
after each tweak to my config. I have it up and running on a free oracle cloud instance and behind a reverse proxy.
I guess the danger there is that anyone with the URL can access it…but they’d have to guess the URL…right?