Created
December 12, 2013 16:11
-
-
Save fasthold/7930544 to your computer and use it in GitHub Desktop.
用于digital ocean的vps初始安装
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 用于digital ocean的vps | |
# System related | |
sudo apt-get update | |
sudo apt-get -y install build-essential ssh curl software-properties-common python-software-properties python g++ make | |
# Editor | |
sudo apt-get -y install vim | |
# VCS | |
sudo apt-get -y install subversion git | |
# LAMP | |
sudo apt-get -y install apache2 | |
sudo apt-get -y install php5 php5-cli php5-gd php5-curl php5-xmlrpc libmcrypt-dev mcrypt php5-mcrypt libgd-tools libapache2-mod-php5 php5-imagick | |
# xdebug is only needed in development environmentm | |
#sudo apt-get -y install php5-xdebug | |
# Enable apache modules | |
sudo a2enmod rewrite | |
sudo a2enmod proxy | |
sudo a2enmod proxy_http | |
sudo a2enmod proxy_balancer | |
sudo apache2ctl restart | |
# Apps | |
sudo apt-get -y install imagemagick | |
# Install Composer | |
mkdir ~/installations | |
cd ~/installations | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
# Node.js and Fish shell | |
sudo add-apt-repository -y ppa:chris-lea/node.js | |
sudo apt-add-repository -y ppa:fish-shell/release-2 | |
sudo apt-get update | |
sudo apt-get -y install nodejs | |
sudo apt-get -y install fish | |
# vim spf13 | |
sh <(curl https://j.mp/spf13-vim3 -L) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment