Skip to content

Instantly share code, notes, and snippets.

@luiseduardobrito
Created August 2, 2013 18:06
Show Gist options
  • Save luiseduardobrito/6142007 to your computer and use it in GitHub Desktop.
Save luiseduardobrito/6142007 to your computer and use it in GitHub Desktop.
Script for preparing an EC2 instance in first boot for a Node.js v0.10.15 environment.
#!/bin/bash
sudo apt-get update
sudo apt-get install make
sudo apt-get install mongodb
wget http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz
tar -xvzf node-v0.10.15.tar.gz
cd node-v0.10.15
sudo ./configure
sudo make
sudo make install
sudo npm install -g deployd
sudo npm install -g forever
# NOTE: if g++ crashes in Node.js makeifle,
# you have to create a swapfile for increasing
# ubuntu ram.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment