Skip to content

Instantly share code, notes, and snippets.

@Arfey
Created April 22, 2016 15:18
Show Gist options
  • Save Arfey/77d9b6c7d0028d37ce20ec9ed3966078 to your computer and use it in GitHub Desktop.
Save Arfey/77d9b6c7d0028d37ce20ec9ed3966078 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# default update
sudo apt-get update
# locals
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
# time to UTC
sudo unlink /etc/localtime
sudo ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
# default setups
sudo apt-get -y install g++ gcc python-software-properties build-essential git curl python-dev libpq-dev libbz2-dev libncurses5-dev libreadline6-dev libsqlite3-dev libgdbm-dev liblzma-dev tk8.6-dev libssl-dev python3-setuptools python3-dev
# add postgres
sudo apt-get -y install postgresql postgresql-contrib
# add redis
sudo add-apt-repository ppa:chris-lea/redis-server
# update
sudo apt-get -y update
# install redis
sudo apt-get -y install redis-server
# python virtualenv
sudo apt-get -y install python-virtualenv
# Make virtual env
#cd ~
#virtualenv --python=python3.4 env
#cd coupon
#source /home/vagrant/env/bin/activate
#pip install -r requirements.txt
# Set Coupon Environment
sudo cat >> /home/vagrant/.bashrc <<- EOM
#Coupon Environment
export COUPON_ENVIRONMENT=local
EOM
. /home/vagrant/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment