Created
October 31, 2016 19:04
-
-
Save joseramonc/da818176fd878d7c7d04c3706de7282e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | |
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