Skip to content

Instantly share code, notes, and snippets.

@ravidsrk
Created October 20, 2011 13:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravidsrk/1301121 to your computer and use it in GitHub Desktop.
Save ravidsrk/1301121 to your computer and use it in GitHub Desktop.
Setting up Ruby on Rails Environment in Ubuntu 11.10
### GET REPOS READY ###
# initial update & upgrade #
sudo apt-get update
sudo apt-get upgrade
# gedit-gmate #
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
# update & upgrade #
sudo apt-get update
sudo apt-get upgrade
### INSTALL new apps ###
sudo apt-get install ruby nautilus-open-terminal ncurses-term mercurial ruby-dev exuberant-ctags vim geany sqlite3 libsqlite3-dev zlib1g-dev vim-gnome vim-rails libnotify-bin build-essential subversion curl bison openssl libreadline5 libreadline-dev zlib1g libssl-dev libsqlite3-0 libxml2-dev gedit-plugins autoconf make automake libxslt1-dev gedit-gmate ssh openjdk-6-jdk git-core git-gui git-doc imagemagick
### Configure git ###
git config --global user.name git-username
git config --global user.email git-email-address
# Configure SSH key#
ssh-keygen -t rsa -C git-email-address
# Add Key to Github #
### Install RVM - Ruby Version Manager ###
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source .bash_profile
rvm get head
# Install Ruby #
rvm install 1.8.7-head
rvm install 1.9.2-head
rvm --default 1.9.2-head
rvm use default
# Install Default Gemset #
gem install rails annotate heroku taps rspec
### Install and Configure a Bunch of Vim Goodies courtesy of akitaonrails - https://github.com/akitaonrails/vimfiles ###
git clone git://github.com/akitaonrails/vimfiles.git ~/.vim
cd .vim
git submodule update --init
echo "source ~/.vim/vimrc" > ~/.vimrc
echo "source ~/.vim/gvimrc" > ~/.gvimrc
# Fix Command-T for above Vimfile
rvm use system
cd ~/.vim/bundle/Command-T/ruby/command-t
ruby extconf.rb
make
# Update Vim
hg clone https://vim.googlecode.com/hg/ ~/vim
cd ~/vim
hg update -C v7-3-154
./configure --enable-rubyinterp
make
sudo make install
# Cleanup
rm -rf ~/vim
@devudilip
Copy link

Thanks it helps a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment