Skip to content

Instantly share code, notes, and snippets.

@erikroyall
Created October 10, 2016 03:34
Show Gist options
  • Save erikroyall/108eb7ab456ed7812505affbc5ee4c64 to your computer and use it in GitHub Desktop.
Save erikroyall/108eb7ab456ed7812505affbc5ee4c64 to your computer and use it in GitHub Desktop.
Setup
sudo apt update
sudo apt install build-essential git libssl-dev curl -y
# NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node
# Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt update; sudo apt install oracle-java8-installer
sudo apt install oracle-java8-set-default
# Ruby and RoR
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.3.1
rbenv global 2.3.1
ruby -v
gem install bundler
gem install rails -v 4.2.6
rbenv rehash
rails -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment