Installing node.js on Rackspace Cloud Server can be smooth as butter with a nice GitHub repository and Rackspace Cloud Server API. Here is the ways for node.js. We basically published a guide on Installing node.js on Rackspace Cloud Server before, however this guide shows Installing Node.js on Rackspace Cloud Server using some advanced features of Rackspace Cloud itself.
Installing node.js on Rackspace Cloud Server Using CloudServers API : Resources
This guide on Installing node.js on Rackspace Cloud Server Using CloudServers API is definitely for a bit advanced users, definitely you will find the way after a bit fiddling if you are the first time user. This is a pointing guide, not a step by step guide, all resources are mentioned here.
Resource for npm :
---
1 | https://github.com/isaacs/npm |
npm for Rackspace Cloud Server :
1 | https://github.com/nodejitsu/node-cloudservers |
Rackspace Cloud Server API documentation has two types for now – first generation and Next Generation Open Stack based API. You can check the Knowledge Center if you need :
1 | http://www.rackspace.com/knowledge_center/product-page/cloud-servers |
Installing node.js on Rackspace Cloud Server Using CloudServers API : Steps
It is quite impossible to do from Windows PC, not impossible but so painful for the setup with Cygwin, it is better to use a Pen drive live Version on Ubuntu / Virtualization or own Ubuntu or Mac. You can search our website for the Ubuntu part. Except login, the others commands of previous tutorial will remain the same (for making you understand that this is a PuTTY’s screenshot and you will probably not use Windows PC) :

There is not much practical difference between the official documentation Installing node.js on Rackspace Cloud Server Using CloudServers API :
1 | http://blog.nodejitsu.com/nodejs-cloud-server-in-three-minutes |
If you find our way or steps difficult, you can follow it.
1 | curl http://npmjs.org/install.sh | sudo sh |
This is for installing npm, you will find more info on the GitHub documentation.
1 | sudo npm install cloudservers |
You need to change the Servername, image, flavor, API, Username etc. Image and Flavor or you can do it programatically with your Rackspace Cloud Server with Ubuntu :
node create-server.js your-server-name your-username your-api-key
Change the colored texts with real values. The next steps has difference with our old guide linked above. After initial git install, updating server etc, go to usr/src folder and clone the git :
1 | git clone http://github.com/ry/node.git |
Go to node folder and :
1 | ./configure |
Make installation :
1 2 3 | make make install curl http://npmjs.org/install.sh | sh |
This completes the tutorial on Installing node.js on Rackspace Cloud Server Using CloudServers API itself. node.js Read the Child Process API for node.js for running your application.
