Skip to content

Instantly share code, notes, and snippets.

@jmkelly
Last active May 10, 2016 10:36
Show Gist options
  • Save jmkelly/73ef556cc9d431665eacff7351be7553 to your computer and use it in GitHub Desktop.
Save jmkelly/73ef556cc9d431665eacff7351be7553 to your computer and use it in GitHub Desktop.
Setup an ubuntu server
#!/bin/bash
#First you update your system
sudo apt-get -y update
#install postgresql-9.5
touch /etc/apt/sources.list.d/pgdg.list
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-9.5 nginx git ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment