Advertisement
vedranvinko

ruby_ubuntu

Jun 4th, 2017
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. sudo apt-get update
  2. 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
  3. sudo apt-get install python-software-properties libffi-dev
  4.  
  5. git clone git://github.com/sstephenson/rbenv.git .rbenv
  6. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
  7. echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  8. exec $SHELL
  9.  
  10. git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
  11. echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
  12. exec $SHELL
  13.  
  14. git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
  15.  
  16. rbenv install 2.2.2
  17. rbenv global 2.2.2
  18. ruby -v
  19.  
  20. echo "gem: --no-ri --no-rdoc" > ~/.gemrc
  21. gem install bundler
  22.  
  23. git config --global color.ui true
  24. git config --global user.name "YOUR NAME"
  25. git config --global user.email "YOUR@EMAIL.com"
  26. ssh-keygen -t rsa -C "YOUR@EMAIL.com"
  27.  
  28. cat ~/.ssh/id_rsa.pub
  29.  
  30. ssh -T git@github.com
  31.  
  32. Ukoliko prenosis .gitconfig s windoza, postavi autocrlf = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement