Skip to content

Instantly share code, notes, and snippets.

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/
chown -R www-data:www-data /var/www/
chmod 755 /var/www
touch /var/www/
vim /var/www/
sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/
sudo rm /etc/nginx/sites-enabled/default
service nginx restart
apt-get install mysql-server-5.6
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.