更新源
sudo apt-get update
安装系统包
sudo apt-get -y install git-core curl zsh exuberant-ctags vim autoconf automake openssl \
build-essential libc6-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev \
mysql-server libmysqlclient-dev libsqlite3-0 libsqlite3-dev sqlite3 \
ncurses-dev libtool bison libxslt1-dev libxml2-dev libqt4-dev
nokogiri.gem need libxml2 libxml2-dev libxslt1-dev mysql2.gem need libmysqlclient-dev capybara-webkit.gem need libqt4-dev
安装oh-my-zsh,如果你使用bash可以跳过此步骤
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
切换到zsh
chsh -s `which zsh`
配置主目录里面常用的dotfiles文件
git clone git://github.com/wongyouth/dotfiles ~/.dotfiles
cd ~/.dotfiles
rake install
设置vim文件,安装常用的vim插件
curl https://raw.github.com/wongyouth/vimfiles/master/install.sh | bash
安装ruby环境管理工具rbenv
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
rbenv bootstrap-ubuntu-12-04
安装ruby1.9
rbenv install 1.9.3-p194
rbenv global 1.9.3-p194
更新gem 并安装 bundler rake
gem update --system
gem install bundler rake
更新rbenv的shim,使rake, bundle命令可以直接使用
rbenv rehash
安装mysql-server
sudo apt-get install mysql-server
安装jdk
sudo apt-get install default-jdk