基本来说在全新的 ubuntu 上用以下的脚本就能安装完所需的东西
Before this
可以的话首先更新下系统
1 2
| sudo apt-get update sudo apt-get upgrade
|
安装git(该PPA为最新版本)
1 2 3 4
| sudo apt-get install python-software-properties -y sudo apt-add-repository ppa:git-core/ppa -y sudo apt-get update sudo apt-get install git -y
|
安装node.js(该PPA为最新版本)
1 2 3 4
| sudo apt-get install python-software-properties -y sudo add-apt-repository ppa:chris-lea/node.js -y sudo apt-get update sudo apt-get install nodejs -y
|
安装MongoDB(该PPA为最新版本)
1 2 3 4
| echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee -a /etc/apt/sources.list.d/10gen.list sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo apt-get update sudo apt-get install mongodb-10gen -y
|
安装rvm
1 2 3 4 5 6 7 8 9
| sudo apt-get install curl -y curl -L https://get.rvm.io | sudo bash -s stable source /etc/profile.d/rvm.sh
sudo gpasswd -a `whoami` rvm sudo apt-get update sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion rvmsudo rvm install ruby rvm use 1.9.3 --default
|
安装Oracle Java 8(该PPA为最新版本)
1 2 3 4 5 6 7 8 9 10
| sudo apt-get purge openjdk* sudo rm /var/lib/dpkg/info/oracle-java8-installer* sudo apt-get purge oracle-java8-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java -y sudo apt-get update sudo apt-get install oracle-java8-installer -y
|