1. Download sublime text 2: http://www.sublimetext.com/2 on the official website. My Ubuntu is 64-bit 12.10, And I select 64-bit Linux.
2.download the tar.bz2 compressed file and decompress it. (Download file: sublime text 2.0.1 x64.tar.bz2)
Sudo tar xf sublime \ Text \ 2.0.1 \ x64.tar.bz2
3. Move the extracted file to the/opt/folder.
Sudo MV sublime \ Text \ 2/opt/
4. Add the sublime command to the terminal to start sublime text 2
Sudo ln-S/opt/sublime \ Text \ 2/sublime_text/usr/binsublime
5. Add to the desktop dock startup bar
Sudo sublime/usr/share/applications/sublime. Desktop
Add the following content:
[Desktop Entry]
Version=1.0
Name=Sublime Text 2
GenericName=Text Editor
Exec=sublime
Terminal=false
Icon=/usr/lib/Sublime Text 2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n
TargetEnvironment=Unity
ReferenceArticle: Http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/