pm2 start mm.shĪnd now comes the real magic. Now you can start the script with the ProcessManager. The following command is sufficient sudo chmod +x mm.sh This will give the script the necessary permissions to be executed. cd ~/MagicMirror DISPLAY=:0 npm start Nachdem Ihr den Text eingefügt habt speichert Ihr die Datei durch Druck auf “STRG+X” und… … einem Druck auf “Enter”.Īfter that you have to make this script executable. There you create a new (still empty) file: nano mm.shĪnd inserts the following text in it. To do this, change to your home directory with the following command: CD ~ sudo pm2 startup Zum einrichten des Autostart des ProcessManagers müsst ihr den Befehl “sudo pm2 startup” eingeben.įor the autostart of the MagicMirror to work you must first set up a start script. You can set up the autostart of the ProcessManager with the following command. Because the ProcessManager can only take care of the autostart of the MagicMirror software, if it was started before. If the ProcessManager is installed, you must now set up an autostart for the ProcessManager. Therefore it must be installed with the following command. The process manager is not pre-installed on most systems. It also monitors after startup if the software is running correctly and restarts it if necessary. The advantage of this is that it not only handles the autostart of the MagicMirror software. One of these ways is the ProcessManager for Node.js applications. There are several ways to organize the autostart of MagicMirror. Set up autostart with the Node.js Process Manager After entering your username and password you can enter the first commands. How to do this is in the article RaspberryPi - Control the RaspberryPi via SSH described. To start, you must first log in to the Rasp Pi with Putty via SSH. If you make your purchases via these links, you support in being able to offer other useful projects in the future. If you click on such an affiliate link and make a purchase via this link, will receive a commission from the relevant online shop or provider. The links to online shops listed here are so-called affiliate links. Because even the coolest project is not worth injury or other trouble. Therefore, please take five minutes to read the safety instructions. Data loss is almost negligible in comparison, but even these can be really annoying. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. I know the following notes are always kind of annoying and seem unnecessary. How to do this is described in the following article. Deswegen ist es praktisch einen Autostart für die MagicMirror-Software einzurichten. “Out-of-theBox” startet die installierte MagicMirror-Software nicht automatisch nachdem der RaspberryPi hochgefahren ist.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |