Skip to content

Instantly share code, notes, and snippets.

@stevepop
Forked from sandfox/README.md
Last active October 10, 2015 19:17
Show Gist options
  • Save stevepop/3737938 to your computer and use it in GitHub Desktop.
Save stevepop/3737938 to your computer and use it in GitHub Desktop.
Launch scripts for various servers

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment