#ubuntu 初始化脚本
# ubuntu 12.04 desktop 安装开发环境 脚本# sudo vim /etc/apt/sources.listecho "deb http://mirrors.sohu.com/ubuntu/ precise main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricteddeb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricteddeb http://mirrors.sohu.com/ubuntu/ precise universedeb-src http://mirrors.sohu.com/ubuntu/ precise universedeb http://mirrors.sohu.com/ubuntu/ precise-updates universedeb-src http://mirrors.sohu.com/ubuntu/ precise-updates universedeb http://mirrors.sohu.com/ubuntu/ precise multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise multiversedeb http://mirrors.sohu.com/ubuntu/ precise-updates multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiversedeb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ precise-security main restricteddeb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricteddeb http://mirrors.sohu.com/ubuntu/ precise-security universedeb-src http://mirrors.sohu.com/ubuntu/ precise-security universedeb http://mirrors.sohu.com/ubuntu/ precise-security multiversedeb-src http://mirrors.sohu.com/ubuntu/ precise-security multiversedeb http://extras.ubuntu.com/ubuntu precise maindeb-src http://extras.ubuntu.com/ubuntu precise main" >/tmp/sohu.sources.list# sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
# sudo mv /tmp/sohu.sources.list /etc/apt/sources.list# mongodb
sudo apt-get update
sudo apt-get install ssh
#轻量级 桌面环境 sudo apt-get install lxde
sudo apt-get install lxdesudo apt-get install nginx nodejs npm subversion php5-fpm sshfs php5-cli php5-mysql php5-gd php5-gd php5-xdebug php5-xdebug php5-memcache memcached tree node-fstream node-fstream node-fstream node-mkdirp node-tar npm iotop php5-curl php5-tidy php5-tidy sysstat
将上面的文本内容拷贝到新建立的脚本中,执行即可
ubuntu-install.sh