MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. gmgarcia719
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    gmgarcia719

    @gmgarcia719

    0
    Reputation
    146
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gmgarcia719 Unfollow Follow

    Latest posts made by gmgarcia719

    • Can't get pm2 to auto launch after reboot

      I’ve Done all of the below steps bit it till wont auto launch when i reboot the PI

      We want Magic Mirror to start up automatically, so type in the following command:
      pm2 startup

      Now create a shell script for startup. Open up the built-in text editor on the Pi by typing in:
      cd ~
      nano mm.sh
      The lower line basically means, “open up a file called mm.sh in the nano text editor.”

      When the text editor has opened, add this to the mm.sh file:
      cd ~/MagicMirror
      DISPLAY=:0 npm start
      Exit the editor by pressing ctrl+x and type in y to save the file.

      Make your shiny new script executable by typing in:
      chmod +x mm.sh

      Now start up Magic Mirror and make it start up on boot:
      pm2 start mm.sh

      pm2 save

      Now, reboot your Pi by typing in
      sudo reboot

      posted in Troubleshooting
      G
      gmgarcia719