16 June 2013

Pump.io on Raspberry Pi

Note: I’m using the Raspbian distro, but I imagine this would be very similar on other distros since there’s no package manager involved. I’m just using the latest binaries available from the node.js project.

The version of node.js in Raspbian apt is too old to run pump.io, so we’ll have to install the .tar.gz version that’s available on node’s site. Get the node-vxxx-linux-arm-pi.tar.gz file from http://nodejs.org/dist/latest/ (as of writing it’s v0.10.11: http://nodejs.org/dist/latest/node-v0.10.11-linux-arm-pi.tar.gz).

Extract that into /opt/node:

sudo mkdir -p /opt/node
sudo tar zxvf node-v0.10.11-linux-arm-pi.tar.gz

Now you’ve got to put it on your path. Put the following in your /etc/profile file:

export PATH

And if you want to be able to access it from sudo you can either run sudo -i to sudo with your normal environment vars or edit your /etc/sudoers file like so:

< Defaults	secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
> Defaults	secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/node/bin"

Now you should be able to install pump.io:

sudo -i npm install -g pump.io

Follow the rest of the instructions on https://github.com/e14n/pump.io for database setup, etc.