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.

    MM on Ubuntu

    Scheduled Pinned Locked Moved Solved Troubleshooting
    90 Posts 4 Posters 50.9k Views 4 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.
    • S Offline
      sdetweil @goncalovsc
      last edited by

      @goncalovsc how did u do install?

      it should not run without config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        goncalovsc @sdetweil
        last edited by

        @sdetweil I installed with the command you gave on the beggining of this thread

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

          @goncalovsc my script will copy the sample

          please do

          cd ~/MagicMirror/config
          ls -laF
          

          show results

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            goncalovsc @sdetweil
            last edited by

            @sdetweil said in MM on Ubuntu:

            cd ~/MagicMirror/config

            Here you have - https://gyazo.com/18000e7546ea27b9c3682acd33c1d27a

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

              @goncalovsc config.js is present… which file did u edit?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                goncalovsc @sdetweil
                last edited by

                @sdetweil now its present because i copied it from config.js.sample and renamed it

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

                  @goncalovsc show me
                  ~/install.log

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    goncalovsc @sdetweil
                    last edited by

                    @sdetweil said in MM on Ubuntu:

                    ~/install.log

                    ahhh permission denied, hou should i do it?

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

                      @goncalovsc why? you did not do sudo on install command, right?
                      do

                      ls ~/i* -laF
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        goncalovsc
                        last edited by

                        @sdetweil said in MM on Ubuntu:

                        ls ~/i* -laF

                        That worked - https://gyazo.com/bf7c215253185fb005cd67994706e79e

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

                          @goncalovsc ok, when I mean show me the log, I mean the contents of the file

                          cat ~/install.log

                          If u can printscreen, you should be able to copy/paste the text

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            goncalovsc @sdetweil
                            last edited by

                            @sdetweil said in MM on Ubuntu:

                            cat ~/install.log

                            install starting  - sáb abr  4 12:57:46 WEST 2020
                            installing on x86_64 processor system
                            the os is Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic
                            Updating packages ...
                            Atingido:1 http://pt.archive.ubuntu.com/ubuntu bionic InRelease Obter:2 http://pt.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB] Obter:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB] Obter:4 http://pt.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB] Obter:5 http://pt.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [307 kB] Obter:6 http://pt.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73,8 kB] Obter:7 http://pt.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [140 kB] Obter:8 http://pt.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1012 kB] Obter:9 http://pt.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1061 kB] Obter:10 http://pt.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [273 kB] Obter:11 http://pt.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [215 kB] Obter:12 http://pt.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [489 kB] Obter:13 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [454 kB] Obter:14 http://pt.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B] Obter:15 http://pt.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7980 B] Obter:16 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [677 kB] Obter:17 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB] Obter:18 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB] Obter:19 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,5 kB] Obter:20 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [617 kB] Obter:21 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [653 kB] Obter:22 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB] Obter:23 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB] Obter:24 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB] Obter:25 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B] Obtidos 6506 kB em 3s (2287 kB/s) A ler as listas de pacotes...
                            apt-get update  completed ok
                            apt-get upgrade  started
                            apt upgrade result =rc=0 A ler as listas de pacotes...
                            A construir árvore de dependências...
                            A ler a informação de estado...
                            A calcular a actualização...
                            Os seguintes pacotes foram instalados automaticamente e já não são necessários:
                              efibootmgr libfwup1 libwayland-egl1-mesa
                            Utilize 'sudo apt autoremove' para os remover.
                            Serão actualizados os seguintes pacotes:
                              firefox firefox-locale-en firefox-locale-pt xserver-common xserver-xephyr
                              xwayland
                            6 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 0 não actualizados.
                            É necessário obter 53,5 MB/55,4 MB de arquivos.
                            Após esta operação, serão utilizados 9216 B adicionais de espaço em disco.
                            Obter:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 firefox amd64 74.0.1+build1-0ubuntu0.18.04.1 [51,9 MB]
                            Obter:2 http://security.ubuntu.com/ubuntu bionic-security/main amd64 firefox-locale-en amd64 74.0.1+build1-0ubuntu0.18.04.1 [726 kB]
                            Obter:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 firefox-locale-pt amd64 74.0.1+build1-0ubuntu0.18.04.1 [925 kB]
                            Obtidos 53,5 MB em 5s (11,8 MB/s)
                            (A ler a base de dados ... 166374 ficheiros e directórios actualmente instalados.)
                            A preparar para desempacotar .../0-firefox_74.0.1+build1-0ubuntu0.18.04.1_amd64.deb ...
                            A descompactar firefox (74.0.1+build1-0ubuntu0.18.04.1) sobre (74.0+build3-0ubuntu0.18.04.1) ...
                            A preparar para desempacotar .../1-firefox-locale-en_74.0.1+build1-0ubuntu0.18.04.1_amd64.deb ...
                            A descompactar firefox-locale-en (74.0.1+build1-0ubuntu0.18.04.1) sobre (74.0+build3-0ubuntu0.18.04.1) ...
                            A preparar para desempacotar .../2-firefox-locale-pt_74.0.1+build1-0ubuntu0.18.04.1_amd64.deb ...
                            A descompactar firefox-locale-pt (74.0.1+build1-0ubuntu0.18.04.1) sobre (74.0+build3-0ubuntu0.18.04.1) ...
                            A preparar para desempacotar .../3-xserver-common_2%3a1.19.6-1ubuntu4.4_all.deb ...
                            A descompactar xserver-common (2:1.19.6-1ubuntu4.4) sobre (2:1.19.6-1ubuntu4.3) ...
                            A preparar para desempacotar .../4-xserver-xephyr_2%3a1.19.6-1ubuntu4.4_amd64.deb ...
                            A descompactar xserver-xephyr (2:1.19.6-1ubuntu4.4) sobre (2:1.19.6-1ubuntu4.3) ...
                            A preparar para desempacotar .../5-xwayland_2%3a1.19.6-1ubuntu4.4_amd64.deb ...
                            A descompactar xwayland (2:1.19.6-1ubuntu4.4) sobre (2:1.19.6-1ubuntu4.3) ...
                            
                            A instalar xserver-common (2:1.19.6-1ubuntu4.4) ...
                            A instalar firefox-locale-en (74.0.1+build1-0ubuntu0.18.04.1) ...
                            A instalar xserver-xephyr (2:1.19.6-1ubuntu4.4) ...
                            A instalar firefox-locale-pt (74.0.1+build1-0ubuntu0.18.04.1) ...
                            A instalar firefox (74.0.1+build1-0ubuntu0.18.04.1) ...
                            Please restart all running instances of firefox, or you will experience problems.
                            A instalar xwayland (2:1.19.6-1ubuntu4.4) ...
                            A processar 'triggers' para hicolor-icon-theme (0.17-2) ...
                            A processar 'triggers' para mime-support (3.60ubuntu1) ...
                            A processar 'triggers' para desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
                            A processar 'triggers' para man-db (2.8.3-2ubuntu0.1) ...
                            A processar 'triggers' para gnome-menus (3.13.3-11ubuntu1.1) ...
                            Installing helper tools ...
                            A ler as listas de pacotes...
                            A construir árvore de dependências...
                            A ler a informação de estado...
                            build-essential is already the newest version (12.4ubuntu1).
                            build-essential está definido para ser instalado manualmente.
                            unzip is already the newest version (6.0-21ubuntu1).
                            unzip está definido para ser instalado manualmente.
                            curl is already the newest version (7.58.0-2ubuntu3.8).
                            wget is already the newest version (1.19.4-1ubuntu2.2).
                            wget está definido para ser instalado manualmente.
                            Os seguintes pacotes foram instalados automaticamente e já não são necessários:
                              efibootmgr libfwup1 libwayland-egl1-mesa
                            Utilize 'sudo apt autoremove' para os remover.
                            The following additional packages will be installed:
                              git-man liberror-perl
                            Pacotes sugeridos:
                              git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
                              gitweb git-cvs git-mediawiki git-svn
                            Serão instalados os seguintes NOVOS pacotes:
                              git git-man liberror-perl
                            0 pacotes actualizados, 3 pacotes novos instalados, 0 a remover e 0 não actualizados.
                            É necessário obter 4738 kB de arquivos.
                            Após esta operação, serão utilizados 33,9 MB adicionais de espaço em disco.
                            Obter:1 http://pt.archive.ubuntu.com/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22,8 kB]
                            Obter:2 http://pt.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.5 [803 kB]
                            Obter:3 http://pt.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.5 [3912 kB]
                            Obtidos 4738 kB em 1s (7320 kB/s)
                            A seleccionar pacote anteriormente não seleccionado liberror-perl.
                            (A ler a base de dados ... 166374 ficheiros e directórios actualmente instalados.)
                            A preparar para desempacotar .../liberror-perl_0.17025-1_all.deb ...
                            A descompactar liberror-perl (0.17025-1) ...
                            A seleccionar pacote anteriormente não seleccionado git-man.
                            A preparar para desempacotar .../git-man_1%3a2.17.1-1ubuntu0.5_all.deb ...
                            A descompactar git-man (1:2.17.1-1ubuntu0.5) ...
                            A seleccionar pacote anteriormente não seleccionado git.
                            A preparar para desempacotar .../git_1%3a2.17.1-1ubuntu0.5_amd64.deb ...
                            A descompactar git (1:2.17.1-1ubuntu0.5) ...
                            A instalar git-man (1:2.17.1-1ubuntu0.5) ...
                            A instalar liberror-perl (0.17025-1) ...
                            A instalar git (1:2.17.1-1ubuntu0.5) ...
                            A processar 'triggers' para man-db (2.8.3-2ubuntu0.1) ...
                            Check current Node installation ...
                            Node currently installed. Checking version number.
                            Minimum Node version: v10.1.0
                            Installed Node version: v8.10.0
                            Node should be upgraded.
                            Installing Node.js ...
                            Node release info = ## Installing the NodeSource Node.js 10.x repo... ## Populating apt-get cache... + apt-get update Atingido:1 http://pt.archive.ubuntu.com/ubuntu bionic InRelease Atingido:2 http://pt.archive.ubuntu.com/ubuntu bionic-updates InRelease Atingido:3 http://pt.archive.ubuntu.com/ubuntu bionic-backports InRelease Atingido:4 http://security.ubuntu.com/ubuntu bionic-security InRelease A ler as listas de pacotes... ## Confirming "bionic" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/bionic/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js 10.x repo... + echo 'deb https://deb.nodesource.com/node_10.x bionic main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_10.x bionic main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Atingido:1 http://pt.archive.ubuntu.com/ubuntu bionic InRelease Atingido:2 http://pt.archive.ubuntu.com/ubuntu bionic-updates InRelease Atingido:3 http://pt.archive.ubuntu.com/ubuntu bionic-backports InRelease Atingido:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Obter:5 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B] Obter:6 https://deb.nodesource.com/node_10.x bionic/main amd64 Packages [765 B] Obtidos 5349 B em 1s (5158 B/s) A ler as listas de pacotes... ## Run `sudo apt-get install -y nodejs` to install Node.js 10.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 | sudo apt-key add - echo "deb 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
                            v10.19.0
                            Node.js installation Done! version=v10.19.0
                            Check current NPM installation ...
                            NPM currently installed. Checking version number.
                            Minimum npm version: V6.0.0
                            Installed npm version: V6.13.4
                            No npm upgrade necessary.
                            Cloning MagicMirror ...
                            Cloning MagicMirror Done!
                            Installing dependencies ...
                            Dependencies installation Done!
                            setting up initial config.js
                            Check plymouth installation ...
                            Splashscreen: Checking themes directory.
                            Splashscreen: Create theme directory if not exists.
                            install and setup pm2
                            pm2 not installed, installing
                            pm2 install result npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) /usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev /usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker /usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + pm2@4.2.3 added 207 packages from 202 contributors in 17.948s
                            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 goncalo --hp /home/goncalo
                            [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=goncalo
                            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/goncalo/.pm2
                            PIDFile=/home/goncalo/.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-goncalo.service
                            Command list
                            [ 'systemctl enable pm2-goncalo' ]
                            [PM2] Writing init configuration in /etc/systemd/system/pm2-goncalo.service
                            [PM2] Making script booting at startup...
                            [PM2] [-] Executing: systemctl enable pm2-goncalo...
                            [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
                            disable screensaver via gsettings was true and uint32 300
                            gsettings screen saver already disabled
                            We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
                            install completed - sáb abr  4 14:27:42 WEST 2020
                            
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @goncalovsc
                              last edited by

                              @goncalovsc said in MM on Ubuntu:

                              setting up initial config.js

                              from my script

                              # Use sample config for start MagicMirror
                              echo setting up initial config.js | tee -a $logfile      // < --- this is the message
                              cp config/config.js.sample config/config.js
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                goncalovsc @sdetweil
                                last edited by

                                @sdetweil Should i reinstall? If its the easiest way i dont mind

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

                                  @goncalovsno…

                                  how do you start MM? pm2 or some other script?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    goncalovsc @sdetweil
                                    last edited by

                                    @sdetweil Its with auto start activated

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

                                      @goncalovsc sorry, don’t understand that…

                                      if you used my script, it would have asked if you wanted to use pm2 to start on boot… (default answer is no)

                                      so, what script is executed on ‘autostart’?

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        goncalovsc @sdetweil
                                        last edited by

                                        @sdetweil ahhh i think i said yes

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

                                          @goncalovsc so,

                                          pm2 status  
                                          

                                          should show the definition

                                          anyhow, if you have copied the confi over, now restart mm again…

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            goncalovsc
                                            last edited by

                                            https://gyazo.com/14d8c30cc49ba12b849877d0b401a638
                                            Just restarted, all the same…

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              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