You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/running.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ The following two commands show these two approaches:
107
107
There are many methods of starting, stopping and monitoring applications at boot time.
108
108
Raspberry Pi users are *strongly* recommended to follow [these instructions](../hardware/raspberrypi).
109
109
110
-
Linux users that have a Debian flavour (e.g. Ubuntu, Mint, Debian, etc) may wish to use the
110
+
Linux users that have a Debian flavour (e.g. Ubuntu, Mint, Debian, etc) are recommended to use the
111
111
[Adding Autostart capability using SystemD](../hardware/raspberrypi#adding-autostart-capability-using-systemd)
112
-
instructions from the Raspberry Pi docs though you will need to edit the downloaded `/lib/systemd/system/nodered.service` file to suit your user and environment.
112
+
instructions from the Raspberry Pi docs though you will need to edit the downloaded `/lib/systemd/system/nodered.service` file to suit your *user id* and environment.
113
113
114
114
The guide below sets out what we believe to be the most straight-forward for
115
115
the majority of users. For Windows, PM2 does not autorun as a service -
Copy file name to clipboardExpand all lines: docs/hardware/raspberrypi.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,16 +106,16 @@ If you want Node-RED to run when the Pi boots up you can use
106
106
sudo systemctl enable nodered.service
107
107
108
108
109
-
#### Adding nodes to preloaded version (Jessie only)
109
+
#### Adding nodes to preloaded version
110
110
111
111
To add additional nodes you must first install the `npm` tool, as it is not included
112
-
in the default Jessie installation. This is not necessary if you have upgraded to Node.js 6.x.
112
+
in the default Raspbian installation. This is not necessary if you have upgraded to Node.js 6.x.
113
113
114
114
The following commands install `npm` and then upgrade
115
-
it to the latest `3.x`version.
115
+
it to the latest version.
116
116
117
117
sudo apt-get install npm
118
-
sudo npm install -g npm@3.x
118
+
sudo npm install -g npm
119
119
hash -r
120
120
cd ~/.node-red
121
121
npm install node-red-{example node name}
@@ -217,14 +217,34 @@ Systemd uses the `/var/log/system.log` for logging. To filter the log use
217
217
218
218
sudo journalctl -f -u nodered -o cat
219
219
220
+
#### Changing the systemd environment - non-Pi user
221
+
222
+
To run as a user other than Pi, you need to edit the nodered.service file. To edit this use sudo to edit the file `/lib/systemd/system/nodered.service` and change the lines 4, 5 and 6 as indicated by {your_user} below
#### Changing the systemd environment - using a proxy
221
239
222
240
If you need to use a proxy for http requests - you need to set the *HTTP_PROXY* environment variable.
223
241
When using *systemd* this must be done within the service configuration. To edit this use sudo to edit the file `/lib/systemd/system/nodered.service` and add another `Environment=` line, for example:
0 commit comments