Skip to content

Instantly share code, notes, and snippets.

@joshrickard
Last active December 28, 2015 16:59
Show Gist options
  • 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 [email protected]
# 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 "[email protected]" -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