-
-
Save takitani/84baa7cb033e533e95ce to your computer and use it in GitHub Desktop.
This file contains 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
#atualizado para mint 17.1 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y git curl zsh terminator ruby1.9.3 ant vim coffeescript libcurl4-openssl-dev exuberant-ctags imagemagick | |
sudo locale-gen pt_BR.UTF-8 | |
#postgres | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y postgresql-9.4 postgresql-contrib-9.4 libpq-dev pgadmin3 | |
#sudo -u postgres psql | |
#\password | |
#seta senha | |
#\quit | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y | |
sudo add-apt-repository ppa:synapse-core/testing -y | |
sudo add-apt-repository ppa:webupd8team/java -y | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee -a /etc/apt/sources.list.d/google-chrome.list | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install nodejs sublime-text-installer redis-server memcached synapse google-chrome-stable chromium-browser oracle-java8-installer -y | |
sudo update-java-alternatives -s java-8-oracle | |
sudo apt-get install oracle-java8-set-default -y | |
curl -L http://install.ohmyz.sh | sh | |
#adicionar ao .zshrc | |
echo 'export PATH=$HOME/.node/bin:$PATH' >> ~/.zshrc | |
echo 'export PATH=$HOME/npm/bin:$PATH'>> ~/.zshrc | |
#plugins zsh | |
sed -i.bak 's/(git)/(git command-not-found bundler sublime)/g' ~/.zshrc | |
cat << EOF >> ~/.zshrc | |
alias dm='rake db:migrate' | |
alias dmt='rake db:migrate && rake db:test:prepare' | |
alias dmp='RAILS_ENV=production rake db:migrate' | |
alias rc='rails c' | |
alias rg='rails g' | |
alias rcp='RAILS_ENV=production rails c' | |
alias rs='rails s' | |
alias rsp='RAILS_ENV=production rails s' | |
alias pywww='python -m SimpleHTTPServer' | |
EOF | |
#node | |
npm config set prefix ~/npm | |
echo prefix = ~/.node >> ~/.npmrc | |
#nao parece funcionar o npm sem atualizar | |
# config o sublime | |
# https://sublime.wbond.net/installation | |
# https://sublime.wbond.net/docs/syncing | |
#mysql | |
sudo aptitude install -y libmysqlclient-dev | |
#freetds | |
sudo aptitude install -y freetds-bin freetds-dev | |
# terminator | |
mkdir ~/.config/terminator | |
cat << EOF > ~/.config/terminator/config | |
[global_config] | |
[keybindings] | |
[profiles] | |
[[default]] | |
copy_on_selection = True | |
background_image = None | |
font = Ubuntu Mono 13 | |
login_shell = True | |
EOF | |
#rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s head | |
source $HOME/.rvm/scripts/rvm | |
rvm install 2.2.2 --patch railsexpress | |
#rvm install 2.0.0 --patch railsexpress | |
rvm use 2.2.2 --default | |
echo 'gem: --no-ri --no-rdoc' > ~/.gemrc | |
chsh -s /bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment