Created
March 25, 2014 09:54
-
-
Save quipu/9758358 to your computer and use it in GitHub Desktop.
Vagrant setup shell script for NodeJS, Express, MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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