• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

OrangePi Zero 2 installation issues

Scheduled Pinned Locked Moved Unsolved Troubleshooting
41 Posts 2 Posters 9.8k Views 2 Watching
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.
  • M Offline
    michelw
    last edited by Dec 10, 2021, 4:58 PM

    hi,

    Since the rp4 is hard to get atm, I got a orangpi zero 2 in stead and followed installation instructions here https://www.instructables.com/Orange-Pi-Magic-Mirror/ and here: https://docs.magicmirror.builders/getting-started/installation.html#manual-installation

    When starting mm I get:

      ___  ____  _   _____             ____  
     / _ \|  _ \(_) |__  /___ _ __ ___|___ \ 
    | | | | |_) | |   / // _ \ '__/ _ \ __) |
    | |_| |  __/| |  / /|  __/ | | (_) / __/ 
     \___/|_|   |_| /____\___|_|  \___/_____|
                                             
    Welcome to Armbian 21.08.6 Focal with Linux 4.9.255-sun50iw9
    
    System load:   24%           	Up time:       2 min	
    Memory usage:  11% of 964M   	IP:	       192.168.207.243
    CPU temp:      56°C           	Usage of /:    4% of 58G    	
    
    [ General system configuration (beta): armbian-config ]
    
    Last login: Fri Dec 10 17:27:44 2021 from 192.168.207.6
    michel@orangepizero2:~/MagicMirror$ npm run start
    
    > magicmirror@2.17.1 start /home/michel/MagicMirror
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    sh: 1: ./node_modules/.bin/electron: not found
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
    npm ERR! spawn ENOENT
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.17.1 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/michel/.npm/_logs/2021-12-10T16_46_30_202Z-debug.log
    

    I tried:

    ~/MagicMirror$ sudo npm install electron
    
    > electron@13.6.3 postinstall /home/michel/MagicMirror/node_modules/electron
    > node install.js
    
    Error: EACCES: permission denied, mkdtemp '/home/michel/MagicMirror/node_modules/electron/electron-download-oEbSjl'
    npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! electron@13.6.3 postinstall: `node install.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the electron@13.6.3 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2021-12-10T16_54_08_006Z-debug.log
    

    My linux knowledge is not good enough to figure this one out. :(

    Anyone who could help?

    Cheers,

    Michel

    S 2 Replies Last reply Dec 10, 2021, 5:13 PM Reply Quote 0
    • S Online
      sdetweil @michelw
      last edited by Dec 10, 2021, 5:13 PM

      @michelw you used sudo on some command, in error ( do not use sudo for any mm related thing)

      to get out of that

      cd ~
      sudo chown -R michel MagicMirror
      

      also, use my script, it does everything

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

      u have to delete or rename the existing folder to use my script as it assumes start from scratch

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Online
        sdetweil @michelw
        last edited by Dec 10, 2021, 5:14 PM

        @michelw also can u show the results of
        uname -a

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Dec 10, 2021, 6:05 PM Reply Quote 0
        • M Offline
          michelw @sdetweil
          last edited by michelw Dec 10, 2021, 6:20 PM Dec 10, 2021, 6:05 PM

          @sdetweil said in OrangePi Zero 2 installation issues:

          uname -a

          sure:

          michel@orangepizero2:~$ uname -a
          Linux orangepizero2 4.9.255-sun50iw9 #2 SMP PREEMPT Thu Nov 18 08:53:39 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
          

          Install log:

          install starting  - Fri Dec 10 19:02:14 CET 2021
          installing on aarch64 processor system
          the os is Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
          Installing helper tools ...
          Reading package lists...
          Building dependency tree...
          Reading state information...
          pv is already the newest version (1.6.6-1).
          unzip is already the newest version (6.0-25ubuntu1).
          curl is already the newest version (7.68.0-1ubuntu2.7).
          git is already the newest version (1:2.25.1-1ubuntu3.2).
          build-essential is already the newest version (12.8ubuntu1.1).
          wget is already the newest version (1.20.3-1ubuntu2).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Updating packages ...
          Hit:1 https://deb.nodesource.com/node_14.x focal InRelease Hit:3 http://ports.ubuntu.com focal InRelease Hit:4 http://ports.ubuntu.com focal-security InRelease Hit:5 http://ports.ubuntu.com focal-updates InRelease Hit:6 http://ports.ubuntu.com focal-backports InRelease Hit:2 http://mirror.armbian.de/apt focal InRelease Reading package lists...
          apt-get update  completed ok
          apt-get upgrade  started
          apt upgrade result =rc=0 Reading package lists...
          Building dependency tree...
          Reading state information...
          Calculating upgrade...
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Check current Node installation ...
          Node currently installed. Checking version number.
          Minimum Node version: v14.0.0
          Installed Node version: v14.18.2
          No Node.js upgrade necessary.
          Check current NPM installation ...
          NPM currently installed. Checking version number.
          Minimum npm version: V6.0.0
          Installed npm version: V6.14.15
          No npm upgrade necessary.
          Cloning MagicMirror ...
          Cloning MagicMirror Done!
          Installing dependencies ...
          > electron@13.6.3 postinstall /home/michel/MagicMirror/node_modules/electron > node install.js > magicmirror@2.17.1 install /home/michel/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... > @fortawesome/fontawesome-free@5.15.4 postinstall /home/michel/MagicMirror/vendor/node_modules/@fortawesome/fontawesome-free > node attribution.js Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) added 9 packages from 17 contributors and audited 9 packages in 11.215s found 0 vulnerabilities > magicmirror@2.17.1 postinstall /home/michel/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.17.1 install-fonts /home/michel/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... added 1 package from 1 contributor and audited 1 package in 3.224s found 0 vulnerabilities MagicMirror installation finished successfully! added 292 packages from 243 contributors and audited 923 packages in 219.336s 19 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
          Dependencies installation Done!
          fixing sandbox permissions
          setting up initial config.js
          Check plymouth installation ...
          plymouth is not installed.
          install and setup pm2
          get the pm2 platform specific startup command
          startup command = sudo env PATH=$PATH:/usr/bin:/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u michel --hp /home/michel
          
                                  -------------
          
          __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
           _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
            _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
             _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
              _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
               _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
                _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
                 _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
                  _\///______________\///______________\///__\///////////////__
          
          
                                    Runtime Edition
          
                  PM2 is a Production Process Manager for Node.js applications
                               with a built-in Load Balancer.
          
                          Start and Daemonize any application:
                          $ pm2 start app.js
          
                          Load Balance 4 instances of api.js:
                          $ pm2 start api.js -i 4
          
                          Monitor in production:
                          $ pm2 monitor
          
                          Make pm2 auto-boot at server restart:
                          $ pm2 startup
          
                          To go further checkout:
                          http://pm2.io/
          
          
                                  -------------
          
          [PM2] Init System found: systemd
          Platform systemd
          Template
          [Unit]
          Description=PM2 process manager
          Documentation=https://pm2.keymetrics.io/
          After=network.target
          
          [Service]
          Type=forking
          User=michel
          LimitNOFILE=infinity
          LimitNPROC=infinity
          LimitCORE=infinity
          Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
          Environment=PM2_HOME=/home/michel/.pm2
          PIDFile=/home/michel/.pm2/pm2.pid
          Restart=on-failure
          
          ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
          ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
          ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill
          
          [Install]
          WantedBy=multi-user.target
          
          Target path
          /etc/systemd/system/pm2-michel.service
          Command list
          [ 'systemctl enable pm2-michel' ]
          [PM2] Writing init configuration in /etc/systemd/system/pm2-michel.service
          [PM2] Making script booting at startup...
          [PM2] [-] Executing: systemctl enable pm2-michel...
          [PM2] [v] Command successfully executed.
          +---------------------------------------+
          [PM2] Freeze a process list on reboot via:
          $ pm2 save
          
          [PM2] Remove init script via:
          $ pm2 unstartup systemd
          pm2 startup command done
          configure the pm2 config file for MagicMirror
          the user is not pi
          change mm.sh
          save copy of mm.sh
          change relative home path to hard coded path
          change pm2_MagicMirror.json
          now using this config file pm2_MagicMirror_new.json
          start MagicMirror via pm2 now
          save MagicMirror pm2 config now
          stop MagicMirror via pm2 now
          disable screensaver via gsettings was true and uint32 300
          We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
          install completed - Fri Dec 10 19:06:47 CET 2021
          
          1 Reply Last reply Reply Quote 0
          • M Offline
            michelw
            last edited by michelw Dec 10, 2021, 6:17 PM Dec 10, 2021, 6:13 PM

            I forgot half of my post:

            michel@orangepizero2:~$ cd MagicMirror/
            michel@orangepizero2:~/MagicMirror$ pm2 start MagicMirror
            [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
            [PM2] [MagicMirror](0) ✓
            [PM2] Process successfully started
            ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
            │ id  │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
            ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
            │ 0   │ MagicMirror    │ default     │ 2.17.1  │ fork    │ 4924     │ 0s     │ 30   │ online    │ 0%       │ 2.8mb    │ michel   │ disabled │
            └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
            michel@orangepizero2:~/MagicMirror$ 
            

            Nothing on the monitor (just cli) and nothing on: http://192.168.207.243:8080/ (the IP of the mirror)

            2f4bf16b-73a1-4093-a7d2-d3440d852663-image.png

            53711b74-7033-4961-b591-556364c1843c-image.png

            M 1 Reply Last reply Dec 10, 2021, 6:24 PM Reply Quote 0
            • M Offline
              michelw @michelw
              last edited by Dec 10, 2021, 6:24 PM

              When I run it manually:

              michel@orangepizero2:~$ cd MagicMirror/
              michel@orangepizero2:~/MagicMirror$ npm run start
              
              > magicmirror@2.17.1 start /home/michel/MagicMirror
              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
              
              [10.12.2021 19:23.11.092] [LOG]   Starting MagicMirror: v2.17.1
              [10.12.2021 19:23.11.110] [LOG]   Loading config ...
              [10.12.2021 19:23.11.124] [LOG]   Loading module helpers ...
              [10.12.2021 19:23.11.129] [LOG]   No helper found for module: alert.
              [10.12.2021 19:23.11.166] [LOG]   Initializing new module helper ...
              [10.12.2021 19:23.11.170] [LOG]   Module helper loaded: updatenotification
              [10.12.2021 19:23.11.172] [LOG]   No helper found for module: clock.
              [10.12.2021 19:23.11.507] [LOG]   Initializing new module helper ...
              [10.12.2021 19:23.11.510] [LOG]   Module helper loaded: calendar
              [10.12.2021 19:23.11.513] [LOG]   No helper found for module: compliments.
              [10.12.2021 19:23.11.515] [LOG]   No helper found for module: weather.
              [10.12.2021 19:23.11.562] [LOG]   Initializing new module helper ...
              [10.12.2021 19:23.11.564] [LOG]   Module helper loaded: newsfeed
              [10.12.2021 19:23.11.566] [LOG]   All module helpers loaded.
              [10.12.2021 19:23.11.788] [LOG]   Starting server on port 8080 ... 
              [10.12.2021 19:23.11.821] [LOG]   Server started ...
              [10.12.2021 19:23.11.824] [LOG]   Connecting socket for: updatenotification
              [10.12.2021 19:23.11.827] [LOG]   Connecting socket for: calendar
              [10.12.2021 19:23.11.829] [LOG]   Starting node helper for: calendar
              [10.12.2021 19:23.11.831] [LOG]   Connecting socket for: newsfeed
              [10.12.2021 19:23.11.833] [LOG]   Starting node helper for: newsfeed
              [10.12.2021 19:23.11.835] [LOG]   Sockets connected & modules started ...
              /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
              npm ERR! code ELIFECYCLE
              npm ERR! errno 1
              npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              npm ERR! Exit status 1
              npm ERR! 
              npm ERR! Failed at the magicmirror@2.17.1 start script.
              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/michel/.npm/_logs/2021-12-10T18_23_11_988Z-debug.log
              
              michel@orangepizero2:~/MagicMirror$ cat /home/michel/.npm/_logs/2021-12-10T18_23_11_988Z-debug.log
              0 info it worked if it ends with ok
              1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'start' ]
              2 info using npm@6.14.15
              3 info using node@v14.18.2
              4 verbose run-script [ 'prestart', 'start', 'poststart' ]
              5 info lifecycle magicmirror@2.17.1~prestart: magicmirror@2.17.1
              6 info lifecycle magicmirror@2.17.1~start: magicmirror@2.17.1
              7 verbose lifecycle magicmirror@2.17.1~start: unsafe-perm in lifecycle true
              8 verbose lifecycle magicmirror@2.17.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/michel/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
              9 verbose lifecycle magicmirror@2.17.1~start: CWD: /home/michel/MagicMirror
              10 silly lifecycle magicmirror@2.17.1~start: Args: [
              10 silly lifecycle   '-c',
              10 silly lifecycle   'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js'
              10 silly lifecycle ]
              11 silly lifecycle magicmirror@2.17.1~start: Returned: code: 1  signal: null
              12 info lifecycle magicmirror@2.17.1~start: Failed to exec start script
              13 verbose stack Error: magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              13 verbose stack Exit status 1
              13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
              13 verbose stack     at EventEmitter.emit (events.js:400:28)
              13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
              13 verbose stack     at ChildProcess.emit (events.js:400:28)
              13 verbose stack     at maybeClose (internal/child_process.js:1058:16)
              13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
              14 verbose pkgid magicmirror@2.17.1
              15 verbose cwd /home/michel/MagicMirror
              16 verbose Linux 4.9.255-sun50iw9
              17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
              18 verbose node v14.18.2
              19 verbose npm  v6.14.15
              20 error code ELIFECYCLE
              21 error errno 1
              22 error magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              22 error Exit status 1
              23 error Failed at the magicmirror@2.17.1 start script.
              23 error This is probably not a problem with npm. There is likely additional logging output above.
              24 verbose exit [ 1, true ]
              
              S 2 Replies Last reply Dec 10, 2021, 6:53 PM Reply Quote 0
              • S Online
                sdetweil @michelw
                last edited by Dec 10, 2021, 6:53 PM

                @michelw ok, you are running the desktop graphical version of the OS, right? you must , browser draws in graphics mode.

                the number next to uptim ein the pm2 status is the restart count…

                so, pm2 stop all
                pm2 flush
                pm2 start 0

                wait 15 seconds

                then pm2 logs --lines=100

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Online
                  sdetweil @michelw
                  last edited by Dec 10, 2021, 6:59 PM

                  @michelw mm installs and runs on other aarch64 systems… , ubuntu 64 on arm, Jetson Nano and Raspi with the 64bit beta OS…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    michelw
                    last edited by michelw Dec 10, 2021, 8:18 PM Dec 10, 2021, 8:15 PM

                    @sdetweil said in OrangePi Zero 2 installation issues:

                    @michelw ok, you are running the desktop graphical version of the OS, right? you must , browser draws in graphics mode.

                    Dang, that might be the issue…
                    I’ve installed this image now: https://redirect.armbian.com/orangepizero2/Buster_legacy then. That one should have desktop. https://www.armbian.com/orange-pi-zero-2/

                    Ran your script again, but now it has issues with the missing chromium browser…

                    touch: cannot touch '/etc/chromium-browser/customizations/01-disable-update-check': No such file or directory
                    tee: /etc/chromium-browser/customizations/01-disable-update-check: No such file or directory
                    
                    install starting  - Fri Dec 10 21:09:23 CET 2021
                    installing on aarch64 processor system
                    the os is Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
                    Installing helper tools ...
                    Reading package lists...
                    Building dependency tree...
                    Reading state information...
                    build-essential is already the newest version (12.6).
                    curl is already the newest version (7.64.0-4+deb10u2).
                    git is already the newest version (1:2.20.1-2+deb10u3).
                    pv is already the newest version (1.6.6-1).
                    unzip is already the newest version (6.0-23+deb10u2).
                    wget is already the newest version (1.20.1-1.1).
                    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                    Updating packages ...
                    Hit:1 http://security.debian.org buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://deb.debian.org/debian buster-updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Hit:5 http://armbian.12z.eu/apt buster InRelease Reading package lists...
                    apt-get update  completed ok
                    apt-get upgrade  started
                    apt upgrade result =rc=0 Reading package lists...
                    Building dependency tree...
                    Reading state information...
                    Calculating upgrade...
                    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                    Check current Node installation ...
                    Node.js is not installed.
                    Installing Node.js ...
                    Node release info = ## Installing the NodeSource Node.js 14.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://deb.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org buster/updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Hit:5 http://armbian.12z.eu/apt buster InRelease Reading package lists... ## Confirming "buster" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 14.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://security.debian.org buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://deb.debian.org/debian buster-updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Get:5 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B] Hit:6 http://xogium.performanceservers.nl/apt buster InRelease Get:7 https://deb.nodesource.com/node_14.x buster/main armhf Packages [779 B] Get:8 https://deb.nodesource.com/node_14.x buster/main arm64 Packages [770 B] Fetched 6,133 B in 3s (1,867 B/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn
                    v14.18.2
                    Node.js installation Done! version=v14.18.2
                    Check current NPM installation ...
                    NPM currently installed. Checking version number.
                    Minimum npm version: V6.0.0
                    Installed npm version: V6.14.15
                    No npm upgrade necessary.
                    Cloning MagicMirror ...
                    Cloning MagicMirror Done!
                    Installing dependencies ...
                    > electron@13.6.3 postinstall /home/michel/MagicMirror/node_modules/electron > node install.js > magicmirror@2.17.1 install /home/michel/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... > @fortawesome/fontawesome-free@5.15.4 postinstall /home/michel/MagicMirror/vendor/node_modules/@fortawesome/fontawesome-free > node attribution.js Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) added 9 packages from 17 contributors and audited 9 packages in 10.954s found 0 vulnerabilities > magicmirror@2.17.1 postinstall /home/michel/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.17.1 install-fonts /home/michel/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... added 1 package from 1 contributor and audited 1 package in 2.736s found 0 vulnerabilities MagicMirror installation finished successfully! added 292 packages from 243 contributors and audited 923 packages in 174.077s 19 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
                    Dependencies installation Done!
                    fixing sandbox permissions
                    setting up initial config.js
                    Check plymouth installation ...
                    plymouth is not installed.
                    install and setup pm2
                    pm2 not installed, installing
                    pm2 install result npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. /usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker /usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev /usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"}) + pm2@5.1.2 added 180 packages from 200 contributors in 48.379s
                    get the pm2 platform specific startup command
                    startup command = sudo env PATH=$PATH:/usr/bin:/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u michel --hp /home/michel
                    
                                            -------------
                    
                    __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
                     _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
                      _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
                       _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
                        _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
                         _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
                          _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
                           _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
                            _\///______________\///______________\///__\///////////////__
                    
                    
                                              Runtime Edition
                    
                            PM2 is a Production Process Manager for Node.js applications
                                         with a built-in Load Balancer.
                    
                                    Start and Daemonize any application:
                                    $ pm2 start app.js
                    
                                    Load Balance 4 instances of api.js:
                                    $ pm2 start api.js -i 4
                    
                                    Monitor in production:
                                    $ pm2 monitor
                    
                                    Make pm2 auto-boot at server restart:
                                    $ pm2 startup
                    
                                    To go further checkout:
                                    http://pm2.io/
                    
                    
                                            -------------
                    
                    [PM2] Init System found: systemd
                    Platform systemd
                    Template
                    [Unit]
                    Description=PM2 process manager
                    Documentation=https://pm2.keymetrics.io/
                    After=network.target
                    
                    [Service]
                    Type=forking
                    User=michel
                    LimitNOFILE=infinity
                    LimitNPROC=infinity
                    LimitCORE=infinity
                    Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
                    Environment=PM2_HOME=/home/michel/.pm2
                    PIDFile=/home/michel/.pm2/pm2.pid
                    Restart=on-failure
                    
                    ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
                    ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
                    ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill
                    
                    [Install]
                    WantedBy=multi-user.target
                    
                    Target path
                    /etc/systemd/system/pm2-michel.service
                    Command list
                    [ 'systemctl enable pm2-michel' ]
                    [PM2] Writing init configuration in /etc/systemd/system/pm2-michel.service
                    [PM2] Making script booting at startup...
                    [PM2] [-] Executing: systemctl enable pm2-michel...
                    [PM2] [v] Command successfully executed.
                    +---------------------------------------+
                    [PM2] Freeze a process list on reboot via:
                    $ pm2 save
                    
                    [PM2] Remove init script via:
                    $ pm2 unstartup systemd
                    pm2 startup command done
                    configure the pm2 config file for MagicMirror
                    the user is not pi
                    change mm.sh
                    save copy of mm.sh
                    change relative home path to hard coded path
                    change pm2_MagicMirror.json
                    now using this config file pm2_MagicMirror_new.json
                    start MagicMirror via pm2 now
                    save MagicMirror pm2 config now
                    stop MagicMirror via pm2 now
                    We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
                    install completed - Fri Dec 10 21:15:14 CET 2021
                    
                    

                    I really need this to run on the orange pi zero 2 as I have no other option available. :(

                    S 2 Replies Last reply Dec 10, 2021, 8:21 PM Reply Quote 0
                    • S Online
                      sdetweil @michelw
                      last edited by Dec 10, 2021, 8:21 PM

                      @michelw that chrome issue is nothing. try to disable the click to update, if u have no mouse! duh.

                      but won’t affect you

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        1/41
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy