Update and upgrade packages

$ sudo apt-get update
$ sudo apt-get dist-upgrade

get a list of packages installed

dpkg --get-selections | grep -v deinstall

Basic packages

$ sudo apt-get install git unzip wget curl build-essential linux-headers-$(uname -r)

Service

$ service ssh restart
$ service sshd restart

Apache HTTP Server & PHP & MySQL Server

Install

$ apt-get install apache2 php5 php5-cgi libapache2-mod-php5 php5-mcrypt php5-curl php5-gd php5-imagick libssh2-php phpmyadmin php5-mysql mysql-server

Uninstall

$ apt-get autoremove apache2 php5 php5-cgi libapache2-mod-php5 php5-mysql mysql-server

Apache

Configuration

$ sudo nano /etc/apache2/apache2.conf
$ sudo nano /etc/apache2/ports.conf

Enable / disable site

$ sudo a2ensite "ychong"
$ sudo a2dissite "000-default"
$ sudo a2dissite "default-ssl"

Enable / disable module

$ sudo a2enmod "rewrite"
$ sudo a2enmod "ssl"
$ sudo a2dismod "proxy"

PHP

Enable / disable module

$ sudo php5enmod mcrypt

Memcache & Memcached

$ sudo apt-get install memcached php5-memcache php5-memcached

phpmyadmin

Install via package

$ sudo apt-get install phpmyadmin
$ sudo /usr/sbin/pma-configure
$ sudo /usr/sbin/pma-secure

JDK

https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps

Ruby Gems

$ sudo apt-get install rubygems
$ sudo gem install rubygems-update
$ sudo gem update rubygems

LESS CSS

$ sudo gem install less