Skip to content

Instantly share code, notes, and snippets.

@samklr
Created October 29, 2014 10: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 samklr/5e0ba78c763c1cd21a8e to your computer and use it in GitHub Desktop.
Save samklr/5e0ba78c763c1cd21a8e to your computer and use it in GitHub Desktop.
#! /bin/bash
sudo apt-get update
sudo apt-get install -yq git-core
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
# type rbenv ===> should print rbenv is a function
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
sudo git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install --list
rbenv install 2.1.4 -k
rbenv global 2.1.4
ruby -v
# Rails
sudo apt-get install -y sqlite3 libsqlite3-dev
#sudo nano /etc/apt/sources.list
sudo echo 'deb http://ftp.us.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list
sudo echo 'deb-src http://ftp.us.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t wheezy-backports install #nodejs
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment