Skip to content

Instantly share code, notes, and snippets.

@D3MZ
Forked from whistler/rubyplusplus 12-17-2011
Created September 24, 2012 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save D3MZ/3776928 to your computer and use it in GitHub Desktop.
Save D3MZ/3776928 to your computer and use it in GitHub Desktop.
Set up Ubuntu for Rails and Github
############ For Vitual Machines #######
sudo locale-gen en_CA.UTF-8
sudo apt-get install ruby git build-essential
############ Apt-Fast ############
sudo apt-get install axel
axel -a "http://www.mattparnell.com/linux/apt-fast/apt-fast.sh"
sudo chmod +x apt-fast
sudo mv apt-fast /usr/bin/
############ Run Updates ############
sudo apt-fast update
sudo apt-fast -y upgrade
############ Reboot ############
sudo apt-fast install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion ruby ncurses-term mercurial ruby-dev exuberant-ctags libnotify-bin curl autoconf make automake ssh openjdk-6-jdk git-core git-doc imagemagick graphicsmagick-libmagick-dev-compat postgresql-contrib libpq-dev
############ 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 rbenv ############
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
############ Add rbenv to your path ############
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
source ~/.bash_profile
############ Install ruby-build ############
pushd /tmp
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
sudo ./install.sh
popd
############ Install Ruby 1.9.2-p290 ############
rbenv install 1.9.3-p194
rbenv global 1.9.3-p194
############ Rehash! ############
rbenv rehash
############ Check your Ruby Version ############
ruby -v
############ Install Rails ############
gem install rails
############ Install Gmate Text Editor ##############
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment