安装完Ubuntu 14.04后需要做的事项,请记下
更新
sudo aptitude update
sudo aptitude full-upgrade
添加apt存储库
增加Git/Oracle JDK/Docker的存储库
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository ppa:webupd8team/java
wget -qO- https://get.docker.com/ | sh
sudo aptitude update
添加Cassandra和MongoDB的存储库(可选)
关于8C718D3B5072E1F5,替换为aptitude update的值。
sudo sh -c "echo deb http://www.apache.org/dist/cassandra/debian 20x main > /etc/apt/sources.list.d/cassandra.list"
sudo sh -c "echo deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen > /etc/apt/sources.list.d/mongodb.list"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
gpg --keyserver pgp.mit.edu --recv-keys 8C718D3B5072E1F5
gpg --export --armor 8C718D3B5072E1F5 | sudo apt-key add -
sudo aptitude update
各种安装选项
sudo apt-get -y install lxc-docker git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev clamav oracle-java8-set-default
安装Ruby等软件
git clone https://github.com/riywo/anyenv ~/.anyenv
echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(anyenv init -)"' >> ~/.profile
exec $SHELL -l
mkdir -p $(anyenv root)/plugins
git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update
git clone https://github.com/znz/anyenv-git.git $(anyenv root)/plugins/anyenv-git
anyenv install rbenv
anyenv install pyenv
exec $SHELL -l
rbenv install 2.2.2
rbenv global 2.2.2
git clone git://github.com/jf/rbenv-gemset.git $(anyenv root)/envs/rbenv/plugins/rbenv-gemset
git clone https://github.com/sstephenson/rbenv-gem-rehash.git $(anyenv root)/envs/rbenv/plugins/rbenv-gem-rehash
gem update --system
gem install bundler
GVM安装
curl -s get.gvmtool.net | bash