Created
August 8, 2013 14:25
-
-
Save luisivan/6185050 to your computer and use it in GitHub Desktop.
This file contains 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
echo "Updating repositories" && | |
apt-get -y update && | |
echo "Intalling Git" && | |
apt-get -y install git && | |
echo "Installing requirements for building node extensions" && | |
apt-get -y install build-essential && | |
echo "Installing Node" && | |
apt-get -y install python-software-properties && | |
add-apt-repository ppa:chris-lea/node.js && | |
apt-get -y update && | |
apt-get -y install nodejs && | |
echo "Node installed" && | |
echo "Installing MongoDB" && | |
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 && | |
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list && | |
apt-get -y update && | |
apt-get -y install mongodb-10gen && | |
echo "Installed MongoDB" && | |
echo "Configuring MongoDB" && | |
echo "bind_ip = 127.0.0.1" >> /etc/mongodb.conf && | |
mkdir /data && | |
mkdir /data/db && | |
# The default configuration for MongoDB assumes taking up 6GB off the bat for every single | |
# database is cool and also inhales tons of space for journal files. This is overkill for | |
# most deployments, so we instruct MongoDB to use smaller files | |
echo "smallfiles = true" >> /etc/mongodb.conf && | |
/usr/sbin/service mongodb restart && | |
echo "Downloading ceos" && | |
git clone https://github.com/izqui/ceos.git && | |
cd ceos && | |
mkdir images/ && | |
mkdir images/profiles && | |
mkdir images/chat && | |
echo "Installing ceos" && | |
npm install && | |
echo "Success!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment