-
-
Save humrochagf/5939870 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
#!/bin/bash | |
## | |
## Essential stuff | |
## | |
sudo apt-get update && sudo apt-get dist-upgrade -y | |
sudo apt-get install -y build-essential aria2 git mercurial fonts-inconsolata myspell-pt-br unzip unrar p7zip-full | |
## | |
## Some cleaning | |
## | |
sudo apt-get remove -y unity-lens-shopping | |
## | |
## Python | |
## | |
sudo apt-get build-dep -y python-imaging python-lxml python-mysqldb python-psycopg2 | |
sudo apt-get install -y python python-dev python3 python3-dev ipython virtualenvwrapper | |
## | |
## Setup the Solarized Dark theme for gnome-terminal | |
## | |
gtcbin="/tmp/gnome-terminal-colors-$$/solarize" | |
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git "$(dirname $gtcbin)" | |
eval "$gtcbin dark" | |
## | |
## Setup Prezto | |
## | |
sudo apt-get install -y git zsh | |
git clone --recursive https://github.com/ravishi/prezto.git "$HOME/.zprezto" | |
shopt -s extglob | |
for rcfile in $HOME/.zprezto/runcoms/!(README.md); do | |
ln -s "$rcfile" "$HOME/.$(basename $rcfile)" | |
done | |
# XXX since we are using sudo for everything else, this is better than the | |
# usual chsh, which would request another password right in the middle of | |
# the script execution | |
sudo usermod -s /bin/zsh "$(whoami)" | |
## | |
## Setup VIM | |
## | |
sudo apt-get install -y vim-gnome python | |
git clone --recursive https://github.com/humrochagf/dotvim "$HOME/.vim" | |
cd "$HOME/.vim" | |
git clone http://github.com/gmarik/vundle.git bundle/vundle | |
# symlink vimrc | |
ln -s "$HOME/.vim/vimrc" "$HOME/.vimrc" | |
# powerline fancy symbols | |
mkdir -p "$HOME/.fonts/" "$HOME/.config/fontconfig/conf.d/" | |
wget -P "$HOME/.fonts/" https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf | |
fc-cache -vf "$HOME/.fonts" | |
wget -P "$HOME/.config/fontconfig/conf.d/" https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf | |
## | |
## Google Chrome | |
## | |
sudo su -c 'echo "# Google software repository | |
deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo apt-get update -y | |
sudo apt-get install -y google-chrome-beta | |
## | |
## VLC as the default video player | |
## | |
sudo apt-get install -y vlc | |
sudo apt-get remove -y --purge totem | |
## | |
## XMonad | |
## | |
sudo apt-get install -y xmonad libghc-xmonad-contrib-dev gnome-session-fallback | |
if [ ! -d "$HOME/.xmonad" ]; then | |
mkdir "$HOME/.xmonad" | |
fi | |
wget -O "$HOME/.xmonad/xmonad.hs" https://gist.github.com/ravishi/4154309/raw/xmonad.hs | |
## | |
## Misc configuration | |
## | |
# Turn off apport | |
sudo su -c 'echo "enabled=0" > /etc/default/apport' | |
# vim: set tw=0: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment