Skip to content

Commit e8d8aac

Browse files
author
Dave Conway-Jones
committed
updates to BBB docs re autostart
1 parent 2b78cc1 commit e8d8aac

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/hardware/beagleboneblack.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ To start Node-RED
2121

2222
sudo service node-red start
2323

24+
To set Node-RED to auto-run on every boot
25+
26+
sudo systemctl enable node-red.service
27+
28+
and likewise to stop it auto-running on boot
29+
30+
sudo systemctl disable node-red.service
31+
2432

2533
The 2GB console version suitable for flashing to older eMMC versions of the BBB will need to be manually installed as per below.
2634

@@ -42,6 +50,18 @@ both Node.js and Node-RED in different locations and will conflict with and brea
4250

4351
---
4452

53+
#### Configuring
54+
55+
The Beaglebone is configured by default to run Node-RED as root. Therefore the configuration files are located in the
56+
`/root/.node-red` directory and you will need root privileges (sudo) to edit them. This is where you need to edit your
57+
`settings.js` file for example.
58+
59+
Beaglebone also has a systemd service, `/lib/systemd/system/node-red.socket`, that automatically starts Node-RED
60+
when is sees an attempt to connect. By default this is port 1880 - but if you want change that you need to change it
61+
here as well as in the `settings.js` file.
62+
63+
---
64+
4565
### Manual installation
4666

4767
<div class="doc-callout">

0 commit comments

Comments
 (0)