Skip to content

Instantly share code, notes, and snippets.

@richthegeek
Created November 7, 2013 16:52
Show Gist options
  • Save richthegeek/7357840 to your computer and use it in GitHub Desktop.
Save richthegeek/7357840 to your computer and use it in GitHub Desktop.
Install basic stuff to a fresh buntu server.
#!/bin/sh
apt-get update
apt-get dist-upgrade -y
apt-get install python-software-properties -y
# node
apt-add-repository ppa:chris-lea/node.js -y
# redis
apt-add-repository ppa:chris-lea/redis-server -y
# mongo
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
apt-get update
# install node, mongo, redis, git, make, g++
apt-get install nodejs redis-server mongodb-10gen git g++ -y
# install nano for richard
apt-get install nano -y
# limit mongo to localhost
echo 'bind_ip = 127.0.0.1' >> /etc/mongodb.conf
service mongodb restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment