Skip to content

Instantly share code, notes, and snippets.

@mcotton
Created March 30, 2014 20:49
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 mcotton/9879510 to your computer and use it in GitHub Desktop.
Save mcotton/9879510 to your computer and use it in GitHub Desktop.
getting a raspberry pi ready for node-rfid
sudo apt-get upgrade; sudo apt-get update
wget http://nodejs.org/dist/v0.10.12/node-v0.10.12-linux-arm-pi.tar.gz
mkdir ~/src
cd ~/src
cp ~/node-v0.10.12-linux-arm-pi.tar.gz .
tar -xvzf node-v0.10.12-linux-arm-pi.tar.gz
#add to ~/.bashrc
NODE_JS_HOME=/home/pi/src/node-v0.10.12-linux-arm-pi
PATH=$PATH:$NODE_JS_HOME/bin
source ~/.bashrc
cd ~
mkdir dev
cd dev
git clone https://github.com/mcotton/node-rfid.git
cd node-rfid
npm install
# might need to sudo npm install node-gyp -g to build dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment