Last active
August 29, 2015 14:15
-
-
Save dceejay/ab527322584c3600f293 to your computer and use it in GitHub Desktop.
Pi 2 Node-RED install (and run) script
This file contains hidden or 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/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 " " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! Looking forward to getting my Pi 2!