Install Sublime Text 2 Editor in Linux / Ubuntu

You may download Sublime text Sublime Text 2 .

1 . Unzip the file n paste it in  /usr/lib/>

now open terminal

2 . To call Sublime Text from the Terminal by just typing ‘sublime’ , just create a symbolic link in “/usr/bin”  By typing this in Terminal.

sudo ln -s /usr/lib/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

3.To create a launcher in Unity. To do this, we’re going to create a .desktop file in “/usr/share/applications”:

sudo sublime /usr/share/applications/sublime.desktop

And paste the following content in file :

[Desktop Entry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu’s language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor

Exec=sublime
Terminal=false
Icon=/usr/lib/Sublime Text 2/Icon/48×48/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

4.To open all files with Sublime Text 2.
The easiest way to do that is to open up the file
associations list

sudo sublime /usr/share/applications/defaults.list

Now You can open Sublime editor from

applications->programming->sublime text 2