Skip to content

Instantly share code, notes, and snippets.

@QuanSai
Created May 15, 2014 20:41
Show Gist options
  • Save QuanSai/1af3c686e25d6e6c5fd0 to your computer and use it in GitHub Desktop.
Save QuanSai/1af3c686e25d6e6c5fd0 to your computer and use it in GitHub Desktop.
Test run of core dependencies install run.
#!/bin/bash
#exit upon failure of one of the subprocesses below
set -e
#install dependencies
sudo apt-get update -y -qq
sudo apt-get -y install git
sudo apt-get -y install postgresql
sudo apt-get -y install pgadmin3
sudo apt-get -y install gcc python-dev cifs-utils:i386
sudo apt-get -y install libapache2-mod-wsgi libxml2 libxml2-dev
sudo apt-get -y install libxslt1.1 libxslt1-dev unixodbc unixodbc-dev
sudo apt-get -y install libldap-2.4-2 libldap-dev libsasl2-2 libsasl2-dev
sudo apt-get -y install libjpeg62 libjpeg62-dev zlib1g-dev libfreetype6
sudo apt-get -y install libfreetype6-dev swig
sudo apt-get -y install postgres-xc-client
sudo apt-get -y install postgres-xc
#setup postgres environment
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment