Last active
August 29, 2015 13:57
-
-
Save brodock/9798269 to your computer and use it in GitHub Desktop.
ZSH + RVM + Ruby 2.0.0 installation script (This is all you need to develop Ruby on Ubuntu)
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
#!/bin/bash | |
sudo apt-get update && sudo apt-get dist-upgrade -y | |
sudo update-ca-certificates | |
echo "Instalação de bibliotecas essenciais..." | |
sudo apt-get install -y git build-essential vim curl | |
echo "Instalação do MySQL (cliente e servidor) e bibliotecas para compilar gems..." | |
sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev | |
echo "Instalação do ImageMagick e bibliotecas dependentes..." | |
sudo apt-get install -y imagemagick libmagickwand-dev | |
echo "Instalação de bibliotecas do qt4 para o Capybara..." | |
sudo apt-get install qt4-qmake libqt4-dev | |
echo "Instalação do zsh com oh-my-zsh" | |
sudo apt-get install -y zsh | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash | |
chsh -s $(which zsh) | |
echo "Instalação do RVM com Ruby 2.1.2" | |
curl -L get.rvm.io | bash -s stable --auto-dotfiles --ruby=2.1.2 | |
echo "Instalação do NodeJS (para compilar Javascript e CSS)" | |
sudo apt-get install -y nodejs | |
echo "Configurando bundler para usar todos os núcleos na instalação de Gems" | |
bundle config --global jobs "$(($(getconf _NPROCESSORS_ONLN)*2))" | |
echo | |
echo "-------------------------------------------------------------------------" | |
echo "Reinicie o seu terminal para que o RVM passe a funcionar corretamente" | |
echo "Se você estiver usando o Terminator, é necessário fechar a sessão do Ubuntu e abrir novamente" | |
echo "-------------------------------------------------------------------------" | |
echo "Personalize a sua instalação do ZSH : veja o arquivo ~/.zshrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment