Last active
August 29, 2015 14:00
-
-
Save yuchan/11079998 to your computer and use it in GitHub Desktop.
For Ubuntu 12.04 LTS.
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
#! /bin/bash | |
# Ubuntu Provisioning Script | |
# basic packages | |
sudo apt-get update | |
sudo apt-get install -y openssh-server git language-pack-ja libssl-dev libsqlite3-dev build-essential nginx python-software-properties memcached | |
# install mysql | |
# warning: change the password 'root' to something else. | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get install -y mysql-server | |
# hhvm | |
# who knows why I don't use standard php? | |
sudo add-apt-repository ppa:mapnik/boost | |
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - | |
echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list | |
# add emacs24 | |
sudo add-apt-repository ppa:cassou/emacs | |
#add docker | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y hhvm | |
sudo apt-get install -y lxc-docker | |
sudo apt-get install -y emacs24 emacs24-el emacs24-common-non-dfsg | |
sudo /usr/share/hhvm/install_fastcgi.sh | |
sudo /etc/init.d/nginx restart | |
sudo /etc/init.d/hhvm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment