# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential python-software-properties libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev htop git-core members memcached mysql-client libmysqlclient-dev libv8-dev
ssh-keygen -t rsa -C "your_email@youremail.com"
ssh -T git@github.com
git config --global user.name "John Doe"
git config --global user.email your_email@youremail.com
git config --global core.editor vim
git config --global color.ui true
git config --global color.status.changed yellow
git config --global color.status.added green
git config --global color.status.untracked red
git config --list
Install rbenv locally or install it Globally from here
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
mkdir ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
exec $SHELL
rbenv install 1.9.3-p392
rbenv rehash
rbenv global 1.9.3-p392
echo "install: --no-ri --no-rdoc" >> ~/.gemrc
echo "update: --no-ri --no-rdoc" >> ~/.gemrc
sudo apt-get install nodejs
Install Nginx
sudo -s
nginx=stable
add-apt-repository ppa:nginx/$nginx
apt-get update
apt-get install nginx
If you get an error about add-apt-repository not existing, you will want to install python-software-properties. For other Debian/Ubuntu based distributions, you can try the lucid variant of the PPA which is the most likely to work on older package sets.
sudo -s
nginx=stable
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu lucid main" > /etc/apt/sources.list.d/nginx-$nginx-lucid.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
sudo apt-get install postgresql libpq-dev
sudo -u postgres createuser --superuser `logname`
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
sudo apt-get install sqlite3 libsqlite3-dev