Run this using the following:
curl -L https://raw.github.com/gist/3737938/{FILENAME}.sh | sudo bash -s| #!/bin/bash | |
| 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 nginx-full | |
| shutdown -r now |
| #!/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:/Users/user/code /mnt/hostnfs nfs soft,intr,rsize=8192,wsize=8192 0 0" > /etc/fstab | |
| shutdown -r now |