Skip to content

Instantly share code, notes, and snippets.

@quipu
Created March 25, 2014 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quipu/9758358 to your computer and use it in GitHub Desktop.
Save quipu/9758358 to your computer and use it in GitHub Desktop.
Vagrant setup shell script for NodeJS, Express, MySQL
#!/usr/bin/env bash
echo "--- Good morning, master. Let's get to work. Installing now. ---"
echo "--- Updating packages list ---"
sudo apt-get update
echo "--- MySQL time ---"
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
echo "--- Installing base packages ---"
sudo apt-get install -y vim curl python-software-properties
# echo "--- We want the bleeding edge of PHP, right master? ---"
# sudo add-apt-repository -y ppa:ondrej/php5
# echo "--- Updating packages list ---"
# sudo apt-get update
echo "--- Installing MySQL ---"
sudo apt-get install -y mysql-server-5.5 php5-mysql
echo "--- Installing Git ---"
sudo apt-get install -y git-core curl wget
echo "--- Installing Node ---"
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
echo "--- Installing Express ---"
sudo npm install -g express
echo "--- ALL DONE!!! ---"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment