Created
November 9, 2011 14:06
-
-
Save ericcholis/1351524 to your computer and use it in GitHub Desktop.
Ubuntu Node.js Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
############################################################## | |
# | |
# Author: Ruslan Khissamov, email: [email protected] | |
# Taken from http://apptob.org/, use that url to customize to your needs | |
############################################################## | |
# Add MongoDB Package | |
echo 'Add MongoDB Package' | |
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'MongoDB Package completed' | |
# Update System | |
echo 'System Update' | |
apt-get -y update | |
echo 'Update completed' | |
# Install help app | |
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ | |
# Download & Unpack Node.js - v. 0.4.12 | |
echo 'Download Node.js - v. 0.4.12' | |
mkdir /tmp/node-install | |
cd /tmp/node-install | |
wget http://nodejs.org/dist/node-v0.4.12.tar.gz | |
tar -zxf node-v0.4.12.tar.gz | |
echo 'Node.js download & unpack completed' | |
# Install Node.js | |
echo 'Install Node.js' | |
cd node-v0.4.12 | |
./configure && make && make install | |
echo 'Node.js install completed' | |
# Install Node Package Manager | |
echo 'Install Node Package Manager' | |
curl http://npmjs.org/install.sh | sudo sh | |
echo 'NPM install completed' | |
# Install Forever | |
echo 'Install Forever' | |
npm install forever -g | |
echo 'Forever install completed' | |
# Install Cloud9IDE | |
echo 'Install Cloud9IDE' | |
git clone git://github.com/ajaxorg/cloud9.git | |
echo 'Cloud9IDE install completed' | |
# Install MongoDB | |
echo 'Install MongoDB' | |
apt-get -y install mongodb-10gen | |
echo 'MongoDB install completed.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment