Skip to content

Instantly share code, notes, and snippets.

@strangnet
Last active December 15, 2015 17:20
Show Gist options
  • Save strangnet/5295902 to your computer and use it in GitHub Desktop.
Save strangnet/5295902 to your computer and use it in GitHub Desktop.
Setup of VPS, Ubuntu 12.04
locale-gen en_US en_US.UTF-8 sv_SE.UTF-8
dpkg-reconfigure locales
apt-get update
apt-get upgrade
apt-get install curl git-core python-software-properties
#nginx
add-apt-repository ppa:nginx/stable
apt-get update
apt-get install nginx
service nginx start
#node.js
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs
#php-fpm 5.4
add-apt-repository ppa:ondrej/php5
apt-get update
apt-get install php5-fpm
#ruby
curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
# add rbenv to ~/.bashrc
rbenv bootstrap-ubuntu-12-04
rbenv install 2.0.0-p0
rbenv global 2.0.0-p0
gem install bundler --no-ri --no-rdoc
rbenv rehash
#postgres
add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main'
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
apt-get update
apt-get install postgresql libpq-dev
sudo -u postgres psql
# \password
# \q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment