This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script will install node-red and register it as a service. | |
# Node red will later be running under the user that executes this script. Sudo priviledges are required | |
# To change re user, simply edit /etc/systemd/system/node-red.service. | |
sudo apt update || exit 1 | |
sudo apt install -y nodejs-legacy || exit 1 | |
sudo apt install -y npm || exit 1 | |
sudo npm install -g node-red node-red-admin || exit 1 |