I am going to show you how to install Sublime Text 2 on Ubuntu 12.X. To get started, head over to www.sublimetext.com and download the latest version. Then open terminal and navigate to the directory you downloaded Sublime Text to and run the following.
Extract the compressed file:
tar xvf Sublime\ Text\ 2.0.1\ x64.tar.bz2
Move the extracted directory to /usr/lib/
sudo mv Sublime\ Text\ 2 /usr/lib/
Create a symbolic link from the Sublime Text executable to /usr/bin/