Created
September 24, 2012 12:51
-
-
Save stevepop/3775802 to your computer and use it in GitHub Desktop.
Setup of Dev Environment for Ubuntu VM on Windows host
This file contains 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 | |
cat "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:nginx/stable -y | |
add-apt-repository ppa:ondrej/php5 -y | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install -y php5-cli php5-fpm php-apc php5-mysql php5-mcrypt php5-curl php5-xdebug mysql-server-5.5 git zsh nginx-full nfs-common | |
#make a mount point for host fs | |
mkdir /mnt/hostnfs | |
#this bit assumes certain network setup and username and code locations | |
cat "192.168.56.1:/projects /mnt/hostnfs nfs soft,intr,rsize=8192,wsize=8192 0 0" >> /etc/fstab | |
#replace the fpm config with ours | |
curl https://raw.github.com/gist/3674885/fpm-www.conf > /etc/php5/fpm/pool.d/www.conf | |
#replace php.ini with ours | |
curl https://raw.github.com/gist/3674885/fpm-php.ini > /etc/php5/fpm/php.ini | |
curl https://raw.github.com/gist/3674885/cli-php.ini > /etc/php5/cli/php.ini | |
shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment