echo 'UseDNS no # if slow connection' >> /etc/ssh/sshd_config
echo 'PrintMotd yes # if you need motd messages' >> /etc/ssh/sshd_config
From /etc/pam.d/login && /etc/pam.d/sshd delete all strings included
session optional pam_motd.so
Remove components of paid monitoring
sudo apt-get remove landscape-client landscape-common
sudo apt-get autoremove
Update fresh installed cloud
sudo apt-get update && sudo apt-get upgrade
Install utilities
sudo apt-get install mc htop curl git-core localepurge
Install devtools
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
Install postgresql
sudo add-apt-repository ppa:pitti/postgresql && sudo apt-get update
sudo apt-get install postgresql-9.2 postgresql-client-9.2 postgresql-contrib-9.2 postgresql-server-dev-9.2
Check pg port. It must be 5432
sudo netstat -lp | grep postgresql
Connect to pg via psql
sudo su postgres -c psql
Create a new user
create user username with password 'password';
Grant privelegies for it.
alter user username superuser;
Install alternative malloc. Ruby works on 8-10% faster.
sudo apt-get install libtcmalloc-minimal0
echo 'export LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.0.1.0' >> ~/.bash_profile
source ~/.bash_profile
Install rvm & ruby & rails
bash -s < <(curl -s https://raw.github.com/gist/4598302/install-rvm.sh)
Install nginx
sudo apt-get install nginx
Create dir for projects
sudo mkdir -p /srv/ror
sudo chown -R ubuntu:ubuntu /srv/ror/