Skip to content

Instantly share code, notes, and snippets.

@JasonGiedymin
Created October 31, 2011 13:35
Show Gist options
  • Save JasonGiedymin/1327494 to your computer and use it in GitHub Desktop.
Save JasonGiedymin/1327494 to your computer and use it in GitHub Desktop.
Jump Start with Ubuntu, Rails, and Friends.
#!/bin/bash
# --------------------------------------------------------
#
# Jump Start with Ubuntu, Rails, and Friends.
#
# Notes: Asterisk (*) denotes manual intervention
#
# --------------------------------------------------------
echo "Don't actually run this. Use it as a copy-paste template."
exit
# You may want to upgrade your version of Ubuntu
# do-release-upgrade
# Upgrade apt-get, and any packages post release
sudo apt-get -y update
sudo apt-get -y upgrade
# We need the basics first
sudo apt-get -y install build-essential ssh git mercurial ccache vim curl wget
# *Manually finish ccache setup
# compilers: c++, c89-gcc, c99-gcc, cc, g++, gcc
sudo ln -s /usr/bin/ccache /usr/local/bin/c++
sudo ln -s /usr/bin/ccache /usr/local/bin/c89-gcc
sudo ln -s /usr/bin/ccache /usr/local/bin/c99-gcc
sudo ln -s /usr/bin/ccache /usr/local/bin/cc
sudo ln -s /usr/bin/ccache /usr/local/bin/g++
sudo ln -s /usr/bin/ccache /usr/local/bin/gcc
# *Make sure gcc points to /usr/local/bin/gcc
which gcc
# *Run gcc to make sure it works
gcc -v
# RVM for ubuntu
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# *RVM for OSX:
# -OSX users may need manual intervention regarding the RVM
# path loading snippet
# -OSX users may need to:
# Add "source ~/.bashrc" to ~/.bash_profile or ~/.profile
# Upgrade to the latest rvm release
# rvm get latest
# List all known (and remote) ruby CLIs
# rvm list known
# Use RVM to install the latest ‘release’ version of 1.9.3 ruby.
# Compile will take a while. Grab some coffee...
echo "Compile will take a while. Grab some coffee..."
rvm install 1.9.3
# *Create, use, and double check that the gemset ‘basic’ is default.
rvm gemset create basic
rvm gemset use basic --default
rvm gemset list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment