Last active
November 17, 2015 01:55
-
-
Save fbazzarella/bf4769cce0362a041e69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' | |
add-apt-repository -y ppa:rwky/redis | |
apt-get update | |
apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev zlib1g-dev | |
apt-get install -y libreadline6-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
apt-get install -y libcurl4-openssl-dev qt5-default libqt5webkit5-dev | |
apt-get install -y redis-server nodejs-legacy npm openjdk-7-jre imagemagick | |
apt-get install -y postgresql-9.4 postgresql-contrib-9.4 libpq-dev | |
sed -i "s/peer/trust/" /etc/postgresql/9.4/main/pg_hba.conf | |
service postgresql restart | |
psql -U postgres -c "alter user postgres with password 'postgres';" | |
wget -O- https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz | tar -zxf - | |
cd ruby-2.2.3 | |
./configure | |
make | |
make install | |
cd .. | |
rm -rf ruby-2.2.3* | |
gem install bundler --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment