How to apply changes on the MM other than reboot? ftp?
Is it possible to install ftp on the raspberry to access and edit the config files etc easier on your computer, or you’re stuck with making all the changes through ssh.
After changes how do you apply the settings, what I’ve done so far is reboot the Rpi :(
Using Raspberry Pi 1 Model B.
There’s VNC that’s standard with Pi3 and Jessie. I don’t know about the Pi1’s abilities. “Putty” seems to be a favorite of many although I’ve never used it. At least with VNC, you can send and receive files to the Pi, edit them locally, and send them back, but I would only do that for major changes or at least large changes. If I were just adding a module for example, I would just do it remotely. It’s a personal preference.
Assuming you’re talking about applying changes to the MM software, you can simply quit MM, make your changes and relaunch, no?
I followed this guide https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/8?page=1 everything went pretty well mostly…but I still haven’t figured out how to quit and relaunch the MM.
Ok, this is how I do it.
While viewing the Pi via VNC, I press the
This drops a menu bar down at the top of MM.
You may not see your mouse/cursor until you move it all the way up into the menu bar.
The far left menu has
Relaunch the way you normally would launch MM
Ok thank you! I get electron.js failed at MM start script when using npm start.
I will try reinstalling the MM instead tomorrow!
I get electron.js failed at MM start script when using npm start.
Wait, are you using VNC, because you CAN use npm start using that. Are you running server only?
Yes Rpi zero and 1 only supports server only at this moment. What I’ve figured out so far and no I’m using Tera Term (almost like PuTTY) accessing it with SSH. But I connected my mouse and keyboard to find the mouse cursor, so I saw the X button on the Midori browser and closed it.
Ok, there is a command specific to starting server only I think. Lemme see if I can find it for you before you reinstall anything.
I think this is what you need
Thanks again for trying, I will look it up tomorrow and try before reinstall. I think it is best to get a clean installation after everything I’ve tested now, start.sh might even be wrong at this moment. All I get when I reboot is localhost:8080 error something…
This is what I got after those commands though, npm start gives me electron error, I read somewhere before about rpi zero/1 can´t handle electron.js somehow I think.
pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 nohup npm start &
pi@raspberrypi:~/MagicMirror $ nohup: ignoring input and appending output to ‘nohup.out’
+ Exit 1 DISPLAY=:0 nohup npm start
pi@raspberrypi:~/MagicMirror $ ^C
pi@raspberrypi:~/MagicMirror $ npm start
email@example.com start /home/pi/MagicMirror
/home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
npm ERR! Linux 4.4.34+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” "start"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! firstname.lastname@example.org start:
npm ERR! spawn ENOENT
npm ERR! Failed at the email@example.com start script ‘electron js/electron.js’.
npm ERR! This is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron js/electron.js
npm ERR! You can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/MagicMirror/npm-debug.log
Thanks again for trying, I will look it up tomorrow and try before reinstall.
Ok, keep me posted. I’ve never used anything other than a Pi 3 B or better, nor have I ever ran MM as node server only, but I am interested in knowing how you get it running.