This gist creates an init.d script to automatically run Node-RED at boot time.
To run it as a single step you can cut paste the following single line command
sudo wget -O /tmp/download https://gist.github.com/bigmonkeyboy/9962293/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/init.d && sudo chmod 755 /etc/init.d/nodered && sudo update-rc.d nodered defaults
or click right-click "save as" this link - But please read the script first and satisfy yourself it's safe to execute in your environment...
@sinewave440hz You'd need to run the nvm script that runs when you use the command line. When you start a shell a file will be run (possibly
~/.bashrc
or~/.profile
), and at the end of it nvm appends a line which says something like:You need to add those lines to this script, probably after
echo "Starting Node-Red.."