Skip to content

Instantly share code, notes, and snippets.

@humrochagf
Forked from ravishi/ubuntu-post-install.sh
Last active March 25, 2016 04:25
Show Gist options
  • Save humrochagf/5939870 to your computer and use it in GitHub Desktop.
Save humrochagf/5939870 to your computer and use it in GitHub Desktop.
#!/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