Skip to content

Instantly share code, notes, and snippets.

@riyadhalnur
Last active June 9, 2016 18:42
Show Gist options
  • Save riyadhalnur/c61f25c9bcfdec85e795bbf71642dfcc to your computer and use it in GitHub Desktop.
Save riyadhalnur/c61f25c9bcfdec85e795bbf71642dfcc to your computer and use it in GitHub Desktop.
Digital Ocean User-Data Script Ubuntu - Installs NodeJS, NginX and other essentials
#!/bin/bash
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
deb http://nginx.org/packages/ubuntu/ trusty nginx > /etc/apt/sources.list
deb-src http://nginx.org/packages/ubuntu/ trusty nginx > /etc/apt/sources.list
apt-get update
apt-get upgrade -y
apt-get install -y nginx nodejs build-essential ntp ufw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment