# Install required packages
sudo apt-get install -y aptitude autoconf automake bison build-essential curl gawk git-core imagemagick libc6-dev libffi-dev libgdbm-dev libmysql-ruby libmysqlclient-dev libncurses5-dev libqt4-dev libqtwebkit-dev libreadline6 libreadline6-dev libruby libsqlite3-dev libssl-dev libtool libxml2-dev libxslt1-dev libyaml-dev mysql-client mysql-server mysql-workbench ncurses-base openssh-server openssl pkg-config screen sqlite3 subversion vim-gnome wget xvfb zlib1g zlib1g-dev
# Download the .deb package from http://google.com/chrome. Choose the correct architecture.
# Google chrome install doesn't put the .desktop file in the right place. Run the following command to make Google Chrome show up in the menu:
sudo ln -s /opt/google/chrome/google-chrome.desktop /usr/share/applications/
# Debian 7 comes with Iceweasle, which is a debian-compatible version of Firefox. Install Firefox by adding Linux Mint's debian repository
gpg --keyserver subkeys.pgp.net --recv 3EE67F3D0FF405B2 && gpg --export --armor 3EE67F3D0FF405B2 | sudo apt-key add -
echo "deb http://packages.linuxmint.com debian import" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install firefox
# Different repository for Mongodb
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get -y install mongodb-10gen
# See http://rvm.io/rvm/install for rvm installation
# rvm install current stable (rvm should install the current Ruby stable for you)
curl -L https://get.rvm.io | bash -s stable --ruby
# rvm assumes you're on Mac OS X so it puts commands in the .bash_profile instead of .bashrc. Do the following to append the command to .bashrc
cat ~/.bash_profile >> .bashrc
# Load RVM or reset the Terminal
source ~/.bashrc
# We have the internet. We don't need to download all the documentations.
echo "install: --no-rdoc --no-ri" >> ~/.gemrc
echo "update: --no-rdoc --no-ri" >> ~/.gemrc
gem install rails
# Sublime Text Editor; Webupd8 PPA doesn't quite work on Debian
wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3047_amd64.deb
dpkg -i sublime-text_build-3047_amd64.deb
# In any new Rails project, a javascript runtime needs to be installed.
# Add gem 'therubyracer' to Gemfile
# Install Jenkins if needed
sudo apt-get install jenkins