Skip to content

Instantly share code, notes, and snippets.

@luizpicolo
Last active September 7, 2016 15:02
Show Gist options
  • Save luizpicolo/9487513 to your computer and use it in GitHub Desktop.
Save luizpicolo/9487513 to your computer and use it in GitHub Desktop.
Auto Installer
#!/bin/bash
# install zsh
rm -fr .oh-my-zsh/
curl -L http://install.ohmyz.sh > install.sh
sh install.sh
# add final .zshrc
echo 'source ~/.bash_aliases' >> ~/.zshrc
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> >> ~/.zshrc
# Improvements for terminal
sudo apt-get install fish
cp /etc/skel/.bashrc ~/
sudo chmod 644 ~/.bashrc
# Lib
sudo apt-get install libappindicator1
## Java
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer -y
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
## Ubuntu Restrict Extras (MP3, MPEG, entre outros)
sudo apt-get install ubuntu-restricted-extras -y
# VLC Player
sudo apt-get install vlc -y
## Cliente FTP FileZilla
sudo apt-get install filezilla -y
## Suporte ao Git
sudo apt-get install git-core -y
## Instalação Curl
sudo apt-get install curl -y
## Instalação MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get update -y
sudo apt-get install mongodb-10gen -y
# Instalando PHP e MYSQL (Versões mais recentes)
sudo apt-get install php5-cli -y
sudo apt-get install mysql-server -y
sudo apt-get install php5-mysql -y
sudo ln -sf /lib/i386-linux-gnu/libudev.so.1 /lib/i386-linux-gnu/libudev.so.0
sudo apt-get install libmysql-ruby libmysqlclient-dev
# phpmyadmin
cd
cd php/
wget https://github.com/luizpicolo/exemplos/raw/master/phpMyAdmin.tar.gz
tar -vzxf phpMyAdmin.tar.gz
rm phpMyAdmin.tar.gz
## Instalar GIMP
sudo add-apt-repository ppa:otto-kesselgulasch/gimp -y
sudo apt-get update
sudo apt-get install gimp -y
rm -Rf ~/.gimp-2.8
cd
wget https://github.com/luizpicolo/exemplos/raw/master/gimp-2.8.tar.gz
tar -vzxf gimp-2.8.tar.gz
rm gimp-2.8.tar.gz
## Brackets
# sudo add-apt-repository ppa:webupd8team/brackets -y
# sudo apt-get update -y
# sudo apt-get install brackets
## Ubuntu Tweak
sudo add-apt-repository ppa:tualatrix/ppa -y
sudo apt-get update -y
sudo apt-get install ubuntu-tweak -y
## Desabilita mensagem de erro
sudo sed -i 's/enabled=1/enabled=0/' /etc/default/apport && sudo service apport stop
## Sublime Text
sudo add-apt-repository ppa:webupd8team/sublime-text-2 -y
sudo apt-get update -y
sudo apt-get install sublime-text -y
# Coona Packagers
rm -Rf ~/.config/sublime-text-2/
git clone https://github.com/luizpicolo/MySublimeText2SupportFiles.git ~/.config/sublime-text-2/
# PPa Maneger
sudo add-apt-repository ppa:webupd8team/y-ppa-manager -y
sudo apt-get update -y
sudo apt-get install y-ppa-manager -y
# Ruby com RVM
\curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
source ~/.bashrc
rvm install 2.0.0 --autolibs=packages
rvm use 2.0.0
# PostGres
sudo apt-get install postgresql -y
sudo apt-get install libpq-dev -y
sudo apt-get install pgadmin3 -y
# sudo -u postgres psql template1
# \password postgres
sudo /etc/init.d/postgresql restart
sudo update-rc.d postgresql enable
# NodeJS
#
# USE NVM
#
# mkdir -p ~/.nodes && cd ~/.nodes
# curl -O http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz
# tar -xzf node-v0.10.30-linux-x64.tar.gz
# mv node-v0.10.30-linux-x64 0.10.30
# ln -s 0.10.12 current
# rm ~/.nodes/node-v0.10.30-linux-x64.tar.gz
# cd
# echo 'export PATH="~/.nodes/current/bin:$PATH"' >> .bashrc
# source ~/.bashrc
# Chrome
cd /tmp
sudo apt-get install libxss1 -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i google-chrome-stable_current_i386.deb
# Heroku
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# Nautilus OpenTerminal
sudo apt-get install nautilus-open-terminal
# Icones LibraryOffice
cd /usr/share/libreoffice/share/config/
sudo wget http://blog.goranrakic.com/archives/slike/images_flat.zip
sudo mv images_human.zip images_human.zip.bkp
sudo mv images_flat.zip images_human.zip
# Remover Online Pesquisar Lentes
sudo apt-get autoremove unity-lens-shopping -y
sudo apt-get autoremove unity-lens-music -y
sudo apt-get autoremove unity-lens-photos -y
sudo apt-get autoremove unity-lens-gwibber -y
sudo apt-get autoremove unity-lens-video -y
# Alacarte
sudo apt-get install alacarte
# Pin Note
sudo add-apt-repository ppa:umang/indicator-stickynotes -y
sudo apt-get update -y
sudo apt-get install indicator-stickynotes -y
# SyncDriver
sudo add-apt-repository ppa:noobslab/pear-apps -y
sudo apt-get update -y
sudo apt-get install syncdrive -y
# remover seahorse
sudo apt-get remove seahorse
#Even tough Ubuntu Make is available in the official repositories,
# it's recommended to use its PPA so you always have the latest release.
# To add the PPA and install Ubuntu Make, use the following commands:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt update
sudo apt install ubuntu-make
# Install PopCornTime Official
cd /opt/
sudo wget https://ci.popcorntime.sh/job/Popcorn-Time-Desktop/lastSuccessfulBuild/artifact/Release/Popcorn-Time-Linux64.tar.xz
sudo tar -xJf Popcorn-Time-Linux64.tar.xz
sudo rm -f Popcorn-Time-Linux64.tar.xz
sudo mv linux64/ popcorntime/
# Create Symbolic Link
sudo ln -s /opt/popcorntime/Popcorn-Time /usr/bin/popcorntime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment