Configure the new Ubuntu Development Environment update source sudo apt-get update to install the system package sudo apt-get-y install git-core curl zsh exuberant-ctags vim autoconf automake openssl \ www.2cto.com 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 libxml 2 libxml2-dev libxslt1-dev mysql2.gem need libmysqlclient-dev capybara-webkit.gem need libqt4-dev install oh-my-zsh, if you use bash you can skip this step curl-L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash switches to zshchsh-s 'which zsh' www.2cto.com to configure the dotfiles files commonly used in the home directory git clone git: // github.com/wongyouth/dotfiles ~ /. Dotfilescd ~ /. Dotfilesrake install to set the vim file, install common vim plug-in curl https://raw.github.com/wongyouth/vimfiles/master/install.sh | bash install ruby environment management tool rbenvcurl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bashrbenv bootstrap-ubuntu-12-04 install composer install 1.9.3-p194rbenv global 1.9.3-p194 www.2cto.com update gem and install bundler rakeem update -- systemgem install bundler rake updates the shim of rbenv, use the rake and bundle commands to install mysql-serversudo apt-get install mysql-server directly using rbenv rehash to install jdksudo apt-get install default-jdk