Assumes a fresh install of Ubuntu 12.04 LTS.
check: http://howtonode.org/how-to-install-nodejs Install the dependencies: sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core
can see also: http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/ and https://gist.github.com/isaacs/579814