RaspberryPi/Node

This installation method can be used on a default Raspberry-pi installation (Wheezy).

Compiling node.js from source (in this example) can take several hours on the Raspberry-pi.
You can copy/paste the following codes one by one and have a functional Node setup when finshed.

Before you start

Make sure you can access the Rpi over ssh ... if you need to enable ssh you can run the config with:

sudo raspi-config

(find the ssh entry in the list and enable)

Connect to your Rpi on another pc in a terminal with ssh (you need to know the ip of the Rpi):

ssh pi@your_local_ip 

example:

ssh pi@192.168.1.68

(default password is "raspberry")

Once you have access with ssh you should be able to paste the following code's in the terminal one by one and end with a functional node installation on the Raspberry Pi. (on linux copy with: Ctrl-c and paste in the terminal with Ctrl-Shift-v)

Start the installation

cd /

Install python, g++ and make

sudo apt-get install python g++ make

Create a folder for node

mkdir ~/nodejs && cd $_

Get the latest node version

wget -N http://nodejs.org/dist/node-latest.tar.gz

unpack

tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`

configure

./configure

Make (this step takes about 2.5 hours ...)

sudo make install

Check the version

...confirm that Node is installed properly by checking the version:

node -v

Labels: RaspberryPi

This page was last edited by BauweBijl on 2014/07/28 21:53:40.

Built with BGAEWiki by BauweBijl