Skip to content

Instantly share code, notes, and snippets.

@rogerwschmidt
Last active September 20, 2016 21:45
Show Gist options
  • Save rogerwschmidt/f81e4137f364fae5468d4c7e76a4d10a to your computer and use it in GitHub Desktop.
Save rogerwschmidt/f81e4137f364fae5468d4c7e76a4d10a to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get update
apt-get upgrade
apt-get -y install nginx
apt-get -y install git
curl -sL https://deb.nodesource.com/setup_6.x -o ~/nodesource_setup.sh
bash ~/nodesource_setup.sh
apt-get -y install nodejs
apt-get -y install build-essential
apt-get -y install libssl-dev
npm install -g nodemon
#curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o ~/install_nvm.sh
#bash install_nvm.sh
#source ~/.bashrc
#nvm install 6.3.1
#nvm use 6.3.1
cd /var/www
rmdir -rf /var/www/html
mkdir node
cd node git clone git:// .
git clone git://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment