Skip to content

Instantly share code, notes, and snippets.

@KingScooty
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KingScooty/970264026157caeed81e to your computer and use it in GitHub Desktop.
Save KingScooty/970264026157caeed81e to your computer and use it in GitHub Desktop.
Setting up node on a Raspberry Pi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot
sudo rpi-update
sudo reboot
#install node
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz
tar -xvzf node-v0.10.26-linux-arm-pi.tar.gz
node-v0.10.26-linux-arm-pi/bin/node --version
sudo apt-get install vim-runtime
sudo apt-get install vim
vim ~/.bash_profile
#save the following to the .bash_profile
NODE_JS_HOME=/home/pi/node-v0.10.26-linux-arm-pi
PATH=$PATH:$NODE_JS_HOME/bin; export PATH
#commit and exit (:wq)
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment