Read the statement by Michael Teeuw here.
MM on NanopiM4 using Lubuntu...
-
it is a complete fresh install, ran this from link above.
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
-
@banbutcher
So pure MM also cannot be executable standalone? -
with pm2 stopped, when i type
npm start
nothin happens untill i manually open chrome and goto localhost -
@banbutcher this means u are starting in server only mode.
Can u tell me more?
execute
cd ~/MagicMirror
bash -x ./run-start.shAnd then post the output. (maybe 15 lines)
Usually this is because it cannot find xwindows running
I made all the changes to run-start
on my machine, the output looks like this
bash -x ./run-start.sh + '[' -f ./untrack-css.sh ']' + ./untrack-css.sh + grep docker /proc/1/cgroup -qa + '[' -z :0.0 ']' ++ uname -m + arch=x86_64 + false=false ++ grep -v '^[[:blank:]]*//' config/config.js ++ awk '{print tolower($2)}' ++ tr -d ',"'\''\r' ++ grep -i serveronly: + serveronly= + serveronly=false ++ pgrep Xorg + xorg=621 ++ uname + mac=Linux + '[' false. '!=' false. -o x86_64 == armv6l ']' + '[' 621. == . -a Linux '!=' Darwin ']' + node_modules/.bin/electron js/electron.js
-
~/MagicMirror$ bash -x ./run-start.sh + '[' -f ./untrack-css.sh ']' + ./untrack-css.sh + grep docker /proc/1/cgroup -qa + '[' -z :0.0 ']' ++ uname -m + arch=aarch64 + false=false ++ grep -v '^[[:blank:]]*//' config/config.js ++ awk '{print tolower($2)}' ++ grep -i serveronly: ++ tr -d ',"'\''\r' + serveronly= + serveronly=false ++ pgrep Xorg + xorg= ++ uname + mac=Linux + '[' false. '!=' false. -o aarch64 == armv6l ']' + '[' . == . -a Linux '!=' Darwin ']' + '[' false. == true. ']' + '[' . == . -a Linux '!=' Darwin ']' + node serveronly
seems to show serveronly to be false?
-
@banbutcher this says xwindows not running( ie text console mode)
pgrep Xorg + xorg=
Can u do
ps -ef
So I can fix the script…
And also
lsb_release -a
-
result of
ps -ef
:UID PID PPID C STIME TTY TIME CMD root 1 0 0 11:16 ? 00:00:07 /sbin/init root 2 0 0 11:16 ? 00:00:00 [kthreadd] root 3 2 0 11:16 ? 00:00:00 [ksoftirqd/0] root 4 2 0 11:16 ? 00:00:00 [kworker/0:0] root 5 2 0 11:16 ? 00:00:00 [kworker/0:0H] root 7 2 0 11:16 ? 00:00:11 [rcu_sched] root 8 2 0 11:16 ? 00:00:00 [rcu_bh] root 9 2 0 11:16 ? 00:00:00 [migration/0] root 10 2 0 11:16 ? 00:00:00 [watchdog/0] root 11 2 0 11:16 ? 00:00:00 [watchdog/1] root 12 2 0 11:16 ? 00:00:00 [migration/1] root 13 2 0 11:16 ? 00:00:00 [ksoftirqd/1] root 15 2 0 11:16 ? 00:00:00 [kworker/1:0H] root 16 2 0 11:16 ? 00:00:00 [watchdog/2] root 17 2 0 11:16 ? 00:00:00 [migration/2] root 18 2 0 11:16 ? 00:00:00 [ksoftirqd/2] root 20 2 0 11:16 ? 00:00:00 [kworker/2:0H] root 21 2 0 11:16 ? 00:00:00 [watchdog/3] root 22 2 0 11:16 ? 00:00:00 [migration/3] root 23 2 0 11:16 ? 00:00:00 [ksoftirqd/3] root 25 2 0 11:16 ? 00:00:00 [kworker/3:0H] root 26 2 0 11:16 ? 00:00:00 [watchdog/4] root 27 2 0 11:16 ? 00:00:00 [migration/4] root 28 2 0 11:16 ? 00:00:00 [ksoftirqd/4] root 30 2 0 11:16 ? 00:00:00 [kworker/4:0H] root 31 2 0 11:16 ? 00:00:00 [watchdog/5] root 32 2 0 11:16 ? 00:00:00 [migration/5] root 33 2 0 11:16 ? 00:00:00 [ksoftirqd/5] root 35 2 0 11:16 ? 00:00:00 [kworker/5:0H] root 36 2 0 11:16 ? 00:00:00 [kdevtmpfs] root 37 2 0 11:16 ? 00:00:00 [netns] root 38 2 0 11:16 ? 00:00:00 [perf] root 39 2 0 11:16 ? 00:00:00 [khungtaskd] root 40 2 0 11:16 ? 00:00:00 [writeback] root 41 2 0 11:16 ? 00:00:00 [khugepaged] root 42 2 0 11:16 ? 00:00:00 [crypto] root 43 2 0 11:16 ? 00:00:00 [bioset] root 44 2 0 11:16 ? 00:00:00 [kblockd] root 46 2 0 11:16 ? 00:00:00 [ata_sff] root 47 2 0 11:16 ? 00:00:00 [devfreq_wq] root 48 2 0 11:16 ? 00:00:00 [cfg80211] root 49 2 0 11:16 ? 00:00:06 [cfinteractive] root 51 2 0 11:16 ? 00:00:00 [rpciod] root 66 2 0 11:16 ? 00:00:00 [kswapd0] root 67 2 0 11:16 ? 00:00:00 [vmstat] root 68 2 0 11:16 ? 00:00:00 [fsnotify_mark] root 69 2 0 11:16 ? 00:00:00 [SquashFS read w] root 70 2 0 11:16 ? 00:00:00 [nfsiod] root 115 2 0 11:16 ? 00:00:00 [kthrotld] root 116 2 0 11:16 ? 00:00:00 [irq/231-rockchi] root 117 2 0 11:16 ? 00:00:00 [vcodec] root 118 2 0 11:16 ? 00:00:00 [irq/47-ff650000] root 119 2 0 11:16 ? 00:00:00 [irq/46-ff650000] root 121 2 0 11:16 ? 00:00:00 [vcodec] root 122 2 0 11:16 ? 00:00:00 [irq/49-ff660000] root 123 2 0 11:16 ? 00:00:00 [kworker/1:1] root 124 2 0 11:16 ? 00:00:00 [bioset] root 125 2 0 11:16 ? 00:00:00 [bioset] root 126 2 0 11:16 ? 00:00:00 [bioset] root 127 2 0 11:16 ? 00:00:00 [bioset] root 128 2 0 11:16 ? 00:00:00 [bioset] root 129 2 0 11:16 ? 00:00:00 [bioset] root 130 2 0 11:16 ? 00:00:00 [bioset] root 131 2 0 11:16 ? 00:00:00 [bioset] root 132 2 0 11:16 ? 00:00:00 [bioset] root 133 2 0 11:16 ? 00:00:00 [bioset] root 134 2 0 11:16 ? 00:00:00 [bioset] root 135 2 0 11:16 ? 00:00:00 [bioset] root 136 2 0 11:16 ? 00:00:00 [bioset] root 137 2 0 11:16 ? 00:00:00 [bioset] root 138 2 0 11:16 ? 00:00:00 [bioset] root 139 2 0 11:16 ? 00:00:00 [bioset] root 140 2 0 11:16 ? 00:00:00 [bioset] root 141 2 0 11:16 ? 00:00:00 [memory_wq] root 142 2 0 11:16 ? 00:00:00 [nvme] root 145 2 0 11:16 ? 00:00:00 [kworker/2:1] root 146 2 0 11:16 ? 00:00:00 [kworker/5:1] root 147 2 0 11:16 ? 00:00:00 [goodix_wq] root 148 2 0 11:16 ? 00:00:00 [irq/123-rk808] root 149 2 0 11:16 ? 00:00:00 [fusb302_wq] root 150 2 0 11:16 ? 00:00:00 [irq/104-fusb302] root 151 2 0 11:16 ? 00:00:00 [irq/39-rockchip] root 152 2 0 11:16 ? 00:00:00 [dm_bufio_cache] root 154 2 0 11:16 ? 00:00:00 [irq/27-mmc1] root 156 2 0 11:16 ? 00:00:00 [ipv6_addrconf] root 157 2 0 11:16 ? 00:00:00 [krfcommd] root 159 2 0 11:16 ? 00:00:00 [deferwq] root 160 2 0 11:16 ? 00:00:00 [irq/243-rockchi] root 161 2 0 11:16 ? 00:00:00 [irq/244-rockchi] root 162 2 0 11:16 ? 00:00:00 [irq/245-rockchi] root 163 2 0 11:16 ? 00:00:00 [irq/64-analogix] root 164 2 0 11:16 ? 00:00:00 [hpd_queue] root 165 2 0 11:16 ? 00:00:00 [irq/63-ff940000] root 169 2 0 11:16 ? 00:00:00 [gpu_power_off_w] root 172 2 0 11:16 ? 00:00:00 [kbase_job_fault] root 174 2 0 11:16 ? 00:00:00 [bioset] root 175 2 0 11:16 ? 00:00:16 [mmcqd/0] root 176 2 0 11:16 ? 00:00:00 [kworker/3:1] root 228 2 0 11:16 ? 00:00:00 [kworker/4:1H] root 243 2 0 11:16 ? 00:00:00 [jbd2/mmcblk0p1-] root 244 2 0 11:16 ? 00:00:00 [ext4-rsv-conver] root 266 2 0 11:16 ? 00:00:00 [jbd2/mmcblk0p2-] root 267 2 0 11:16 ? 00:00:00 [ext4-rsv-conver] root 294 2 0 11:16 ? 00:00:00 [kauditd] root 303 1 0 11:16 ? 00:00:00 /lib/systemd/systemd-journald root 331 2 0 11:16 ? 00:00:00 [kworker/4:2] root 355 2 0 11:16 ? 00:00:00 [kworker/2:1H] root 369 1 0 11:16 ? 00:00:00 /lib/systemd/systemd-udevd root 387 2 0 11:16 ? 00:00:00 [kworker/3:2] root 463 1 0 11:16 ? 00:00:00 /usr/lib/accountsservice/account gpsd 467 1 0 11:16 ? 00:00:00 /usr/sbin/gpsd -N syslog 469 1 0 11:16 ? 00:00:00 /usr/sbin/rsyslogd -n avahi 485 1 0 11:16 ? 00:00:02 avahi-daemon: running [FriendlyE message+ 515 1 0 11:16 ? 00:00:06 /usr/bin/dbus-daemon --system -- avahi 541 485 0 11:16 ? 00:00:00 avahi-daemon: chroot helper root 573 2 0 11:16 ? 00:00:00 [kworker/5:1H] root 636 1 0 11:16 ? 00:00:08 /usr/sbin/NetworkManager --no-da root 659 1 0 11:16 ? 00:00:00 /usr/sbin/cups-browsed root 668 1 0 11:16 ? 00:00:00 /lib/systemd/systemd-logind root 690 1 0 11:16 ? 00:00:00 /usr/sbin/cron -f root 705 2 0 11:16 ? 00:00:00 [wl_escan_handle] root 706 2 0 11:16 ? 00:00:01 [dhd_watchdog_th] root 709 2 0 11:16 ? 00:00:02 [dhd_dpc] root 710 2 0 11:16 ? 00:00:00 [dhd_rxf] root 770 1 0 11:16 ? 00:00:00 /usr/lib/policykit-1/polkitd --n root 795 1 0 11:16 ? 00:00:00 /usr/sbin/lightdm dnsmasq 815 1 0 11:16 ? 00:00:00 /usr/sbin/dnsmasq -x /var/run/dn root 863 2 0 11:16 ? 00:00:00 [kworker/3:1H] root 894 795 3 11:16 tty7 00:04:40 /usr/bin/X -core :0 -seat seat0 root 997 2 0 11:16 ? 00:00:00 [kbase_event] root 1007 2 0 11:16 ? 00:00:00 [dhd_eventd] root 1008 2 0 11:16 ? 00:00:00 [kworker/1:1H] root 1010 1 0 11:16 ? 00:00:01 /sbin/wpa_supplicant -u -s -O /r root 1026 795 0 11:16 ? 00:00:00 lightdm --session-child 12 15 pi 1032 1 0 11:16 ? 00:00:00 /lib/systemd/systemd --user pi 1035 1032 0 11:16 ? 00:00:00 (sd-pam) pi 1038 1026 0 11:16 ? 00:00:00 /sbin/upstart --user pi 1098 1038 0 11:16 ? 00:00:00 upstart-udev-bridge --daemon --u pi 1101 1038 0 11:16 ? 00:00:00 dbus-daemon --fork --session --a pi 1136 1038 0 11:16 ? 00:00:00 gnome-keyring-daemon --start --c pi 1149 1038 0 11:16 ? 00:00:00 upstart-dbus-bridge --daemon --s pi 1153 1038 0 11:16 ? 00:00:00 upstart-file-bridge --daemon --u pi 1155 1038 0 11:16 ? 00:00:00 upstart-dbus-bridge --daemon --s pi 1165 1038 0 11:16 ? 00:00:00 gpg-agent --homedir /home/pi/.gn pi 1182 1038 0 11:16 ? 00:00:00 /usr/bin/lxsession -s Lubuntu -e pi 1187 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfsd pi 1192 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/us root 1200 2 0 11:16 ? 00:00:00 [kworker/0:1H] pi 1204 1182 0 11:16 ? 00:00:01 openbox --config-file /home/pi/. pi 1207 1182 0 11:16 ? 00:00:34 lxpanel --profile Lubuntu pi 1209 1182 0 11:16 ? 00:00:04 pcmanfm --desktop --profile lubu pi 1215 1038 0 11:16 ? 00:00:00 /usr/bin/ssh-agent -s pi 1224 1038 0 11:16 ? 00:00:08 nm-applet pi 1237 1038 0 11:16 ? 00:00:00 xfce4-power-manager pi 1245 1038 0 11:16 ? 00:00:00 /usr/lib/arm-linux-gnueabihf/xfc pi 1249 1038 0 11:16 ? 00:00:01 /usr/bin/pulseaudio --start --lo rtkit 1250 1 0 11:16 ? 00:00:00 /usr/lib/rtkit/rtkit-daemon root 1259 1 0 11:16 ? 00:00:00 /usr/lib/upower/upowerd pi 1270 1038 0 11:16 ? 00:00:00 /usr/lib/menu-cache/menu-cached pi 1291 1038 0 11:16 ? 00:00:00 /usr/lib/at-spi2-core/at-spi-bus pi 1300 1291 0 11:16 ? 00:00:00 /usr/bin/dbus-daemon --config-fi pi 1305 1038 0 11:16 ? 00:00:00 /usr/lib/at-spi2-core/at-spi2-re pi 1318 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfs-udisks2-volum root 1321 1 0 11:16 ? 00:00:00 /usr/lib/udisks2/udisksd --no-de pi 1348 1038 0 11:16 ? 00:00:00 /usr/lib/indicator-sound-gtk2/in pi 1349 1038 0 11:16 ? 00:00:00 /usr/lib/arm-linux-gnueabihf/ind root 1411 1 0 11:16 ? 00:00:00 /sbin/dhclient -1 -v -pf /run/dh pi 1412 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-mo pi 1442 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volum pi 1497 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfs-goa-volume-mo pi 1526 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfs-afc-volume-mo root 1530 1 0 11:16 ? 00:00:00 /usr/bin/python3 /usr/share/unat root 1545 1 0 11:16 ? 00:00:00 /usr/sbin/sshd -D pi 1555 1038 0 11:16 ? 00:00:00 /usr/lib/gvfs/gvfsd-trash --spaw whoopsie 1568 1 0 11:16 ? 00:00:00 /usr/bin/whoopsie -f root 1597 2 0 11:16 ? 00:00:00 [hci0] root 1598 2 0 11:16 ? 00:00:00 [hci0] root 1599 1 0 11:16 ? 00:00:00 /usr/bin/hciattach /dev/ttyS0 bc root 1606 1 0 11:16 ? 00:00:12 /bin/bash /usr/bin/start-rk3399- root 1611 1 0 11:16 ttyFIQ0 00:00:00 /sbin/agetty --keep-baud 115200 root 1612 1 0 11:16 tty1 00:00:00 /sbin/agetty --noclear tty1 linu root 1616 1 0 11:16 ? 00:00:00 /usr/lib/bluetooth/bluetoothd pi 1622 1 0 11:16 ? 00:00:02 PM2 v4.2.3: God Daemon (/home/pi pi 1693 1038 0 11:16 ? 00:00:05 /usr/bin/python /usr/bin/x-termi ntp 1700 1 0 11:16 ? 00:00:02 /usr/sbin/ntpd -p /var/run/ntpd. pi 1747 1038 0 11:16 ? 00:00:00 /usr/lib/arm-linux-gnueabihf/gco pi 1752 1693 0 11:16 ? 00:00:00 gnome-pty-helper pi 1753 1693 0 11:16 pts/1 00:00:00 /bin/bash pi 2623 1207 1 11:18 ? 00:02:03 /usr/lib/chromium-browser/chromi pi 2637 2623 0 11:18 ? 00:00:00 /usr/lib/chromium-browser/chromi pi 2639 2637 0 11:18 ? 00:00:00 /usr/lib/chromium-browser/chromi pi 2660 2623 3 11:18 ? 00:04:22 /usr/lib/chromium-browser/chromi pi 2664 2623 0 11:18 ? 00:00:20 /usr/lib/chromium-browser/chromi root 2671 2 0 11:18 ? 00:00:00 [kbase_event] pi 2714 2639 0 11:18 ? 00:00:06 /usr/lib/chromium-browser/chromi pi 2760 2639 0 11:18 ? 00:00:17 /usr/lib/chromium-browser/chromi pi 3054 2639 1 11:18 ? 00:02:10 /usr/lib/chromium-browser/chromi root 3587 1 0 11:21 ? 00:00:00 /usr/sbin/cupsd -l root 4334 2 0 11:28 ? 00:00:00 [kworker/5:2] root 4498 2 0 11:28 ? 00:00:07 [kworker/1:0] pi 4562 1038 0 11:29 ? 00:00:01 /usr/bin/python /usr/bin/x-termi pi 4572 4562 0 11:29 ? 00:00:00 gnome-pty-helper pi 4573 4562 0 11:29 pts/2 00:00:00 /bin/bash pi 4792 1209 0 11:31 ? 00:00:03 leafpad /home/pi/MagicMirror/con pi 5864 2639 1 11:44 ? 00:01:25 /usr/lib/chromium-browser/chromi pi 5927 2639 0 11:44 ? 00:00:00 /usr/lib/chromium-browser/chromi root 6603 2 0 11:51 ? 00:00:00 [kworker/2:2] root 7776 2 0 12:07 ? 00:00:00 [kworker/4:1] root 8056 2 0 12:11 ? 00:00:03 [kworker/u12:2] root 10915 2 0 12:49 ? 00:00:04 [kworker/0:2] root 12454 2 0 13:11 ? 00:00:00 [kworker/u13:0] root 12691 2 0 13:15 ? 00:00:00 [kworker/u12:0] root 12846 2 0 13:17 ? 00:00:00 [kworker/u13:2] root 13049 2 0 13:20 ? 00:00:00 [kworker/u12:1] root 13163 2 0 13:21 ? 00:00:00 [kworker/0:1] root 13231 2 0 13:22 ? 00:00:00 [kworker/u13:1] root 13260 1606 0 13:22 ? 00:00:00 sleep 2s pi 13261 1753 0 13:22 pts/1 00:00:00 ps -ef pi@FriendlyELEC:~/MagicMirror$
and result of
lsb-release-a
:pi@FriendlyELEC:~/MagicMirror$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenia
thanks
-
@banbutcher cool.
Can u try pgrep X
-
894
-
@banbutcher cool. Edit the run-start.sh and change
pgrep Xorg
To
pgrep XUntil I can make the right change
Thank you for your help