Created
March 30, 2014 20:49
-
-
Save mcotton/9879510 to your computer and use it in GitHub Desktop.
getting a raspberry pi ready for node-rfid
This file contains 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
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