Skip to content

Instantly share code, notes, and snippets.

@joseramonc
Created October 31, 2016 19:04
Show Gist options
  • Save joseramonc/da818176fd878d7c7d04c3706de7282e to your computer and use it in GitHub Desktop.
Save joseramonc/da818176fd878d7c7d04c3706de7282e to your computer and use it in GitHub Desktop.
sudo apt-get install git autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
# registrer key at gitlab https://gitlab.com/profile/keys
# install rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
~/.rbenv/bin/rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
##################
# restart terminal
##################
# install ruby-build
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.2.3
rbenv global 2.2.3
gem install bundler
sudo apt-get install postgresql postgresql-contrib
sudo -u postgres createuser --interactive
sudo -u postgres createdb $USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment