MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Step by step guide to MagicMirror on Ubuntu 22 server?

    General Discussion
    2
    10
    327
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eqpaisley last edited by

      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?

      S 1 Reply Last reply Reply Quote 1
      • S
        sdetweil @eqpaisley last edited by

        @eqpaisley what is a VPS ?

        but, run my script to install

        see
        https://github.com/sdetweil/MagicMirror_scripts

        Sam

        Create a working config
        How to add modules

        E 4 Replies Last reply Reply Quote 0
        • E
          eqpaisley @sdetweil last edited by

          @sdetweil thanks! can I use this curl command?

          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

          1 Reply Last reply Reply Quote 0
          • E
            eqpaisley @sdetweil last edited by

            @sdetweil oh sorry - a vps is a remote, virtual machine. but it functions exactly like a low power (2cores 8g of ram) ARM machine.

            S 1 Reply Last reply Reply Quote 1
            • S
              sdetweil @eqpaisley last edited by sdetweil

              @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
              full
              server
              client

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • E
                eqpaisley @sdetweil last edited by

                @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.

                1 Reply Last reply Reply Quote 1
                • E
                  eqpaisley @sdetweil last edited by

                  @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?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @eqpaisley last edited by

                    @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

                    pm2 start
                    pm2 restart
                    pm2 stop
                    pm2 info

                    all take the name of the app, or the number

                    if u setup pm2 q my script then it launches
                    MagicMirror/installers/mm.sh

                    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

                    Sam

                    Create a working config
                    How to add modules

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      eqpaisley @sdetweil last edited by

                      @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?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sdetweil @eqpaisley last edited by

                        @eqpaisley right

                        Sam

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy