Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example bash script provisioner for Ubuntu 14.04.1 (x64)
sudo locale-gen en_GB.UTF-8
sudo addgroup vagrant www-data
# Set timezone (UTC)
echo "Etc/UTC" | sudo tee /etc/timezone && sudo dpkg-reconfigure --frontend noninteractive tzdata
# Update system
sudo apt-get update
sudo apt-get -y dist-upgrade
# Essential tools
sudo apt-get -y install build-essential curl git htop multitail mosh python-software-properties tmux vim
# Nginx
apt-get install nginx
mkdir -p /var/www/makethempay.co.uk/html
chown -R www-data:www-data /var/www/makethempay.co.uk/html/
chmod 755 /var/www
touch /var/www/makethempay.co.uk/html/index.html
vim /var/www/makethempay.co.uk/html/index.html
sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/makethempay.co.uk
sudo ln -s /etc/nginx/sites-available/makethempay.co.uk /etc/nginx/sites-enabled/makethempay.co.uk
sudo rm /etc/nginx/sites-enabled/default
service nginx restart
# MySQL
apt-get install mysql-server-5.6
# PHP
sudo apt-get install php5-fpm php5-mysql
# Node.js
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get -y install nodejs
sudo npm install pm2 -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.