Created
May 1, 2012 14:51
-
-
Save whistler/2568501 to your computer and use it in GitHub Desktop.
Set up Ubuntu for Rails and Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ For Vitual Machines ####### | |
sudo locale-gen en_CA.UTF-8 | |
sudo apt-get install ruby git build-essential | |
############ Run Updates ############ | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
############ Reboot ############ | |
sudo apt-get 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 libmagick9-dev postgresql-contrib libpq-dev ubuntu-restricted-extras | |
############ 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