Skip to content

Instantly share code, notes, and snippets.

@joshrickard
Last active December 28, 2015 16:59
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 joshrickard/7533102 to your computer and use it in GitHub Desktop.
Save joshrickard/7533102 to your computer and use it in GitHub Desktop.
Setup ruby environment on Ubuntu 14.04.1 desktop.
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential curl git-core redis-server
# setup git
git config --global user.name "Josh Rickard"
git config --global user.email josh.rickard@gmail.com
# install RVM
curl -L https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
# setup ruby
rvm install 2.1
rvm use 2.1 --default
ruby -v
# setup gems
gem update
gem install rails
gem clean
#
# https://rvm.io/integration/gnome-terminal
#
# ssh keys
ssh-keygen -f ~/.ssh/id_rsa -t rsa -C "josh.rickard@gmail.com" -N ''
ssh-add ~/.ssh/id_rsa
echo Paste this key into Github:
cat ~/.ssh/id_rsa.pub
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment