Skip to content

Instantly share code, notes, and snippets.

@dceejay
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save dceejay/ab527322584c3600f293 to your computer and use it in GitHub Desktop.

Select an option

Save dceejay/ab527322584c3600f293 to your computer and use it in GitHub Desktop.
Pi 2 Node-RED install (and run) script
#! /bin/bash
### This is for Pi Version 2 ONLY
### Once it completes Node-RED should be ready to run...
### To do this all in one command... copy and paste just the following command
### curl -sL https://gist.githubusercontent.com/dceejay/ab527322584c3600f293/raw/ | bash -
cd ~
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y build-essential python-dev python-rpi.gpio nodejs
node -v
echo " - previous line should have returned v0.10.36"
echo " "
echo "The next step may take 3-4 mins and may produce warnings - don't worry"
npm cache clear
sudo npm install -g --log-level error git+https://github.com/node-red/node-red.git
/usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio ver 0
echo " - previous line should have returned 0.5.11 or better"
echo " "
echo " Node-RED should now be ready to run."
echo " In this windows type"
echo " node-red-pi --max-old-space-size=128"
echo " and then also point a browser at this address"
echo " http://"$(echo $(hostname -I))":1880/"
echo " "
@vielmetti
Copy link
Copy Markdown

Thanks! Looking forward to getting my Pi 2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment