forked from jac459/neeo2021onward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResult sudo python3 install.py opt 1,2 and S.txt
63 lines (43 loc) · 2.28 KB
/
Result sudo python3 install.py opt 1,2 and S.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
pi@raspberrypi:~ $ sudo python3 install.py
Looking for git
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
apt install -y git 1>/home/pi/log/BackgroundAPTInstallgit.txt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Done apt install Reading package lists...
Looking for nodejs
apt install -y nodejs 1>/home/pi/log/BackgroundAPTInstallnodejs.txt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Done apt install Reading package lists...
Looking for npm
apt install -y npm 1>/home/pi/log/BackgroundAPTInstallnpm.txt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Extracting templates from packages: 100%
Done apt install Reading package lists...
Looking for nodered
apt install -y nodered 1>/home/pi/log/BackgroundAPTInstallnodered.txt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Done apt install Reading package lists...
Looking for mosquitto
apt install -y mosquitto 1>/home/pi/log/BackgroundAPTInstallmosquitto.txt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Done apt install Reading package lists...
Looking for meta
We need to check custom location now .meta
su -m pi -c 'mkdir "/home/pi/.meta" 2>/home/pi/log/BackgroundMkdir.txt'
su -m pi -c 'export HOME=/home/pi&& npm install --prefix "/home/pi/.meta" jac459/metadriver 2>/home/pi/log/BackgroundNPMmeta.txt'
+ @jac459/[email protected]
added 393 packages from 326 contributors in 80.498s
Done apt install npm WARN npm npm does not support Node.js v10.21.0
Looking for pm2
npm install -g pm2 2>/home/pi/log/BackgroundNPMpm2.txt
/usr/local/bin/pm2 -> /usr/local/lib/node_modules/pm2/bin/pm2
/usr/local/bin/pm2-dev -> /usr/local/lib/node_modules/pm2/bin/pm2-dev
/usr/local/bin/pm2-docker -> /usr/local/lib/node_modules/pm2/bin/pm2-docker
/usr/local/bin/pm2-runtime -> /usr/local/lib/node_modules/pm2/bin/pm2-runtime
updated 1 package in 19.489s
Done apt install npm WARN npm npm does not support Node.js v10.21.0
systemctl enable nodered.service
Created symlink /etc/systemd/system/multi-user.target.wants/nodered.service → /lib/systemd/system/nodered.service.
That's it, NodeRed is configured to autostart
systemctl start nodered.service