By default, all files are downloaded ~ /Downloads folder.
Press CTRL + ALT + T to open the command.
1. decompress the downloaded package, for example:
Tar-xvf sublime \ Text \ 2.0.2.tar.bz2
2. Move the extracted file to the/usr/local/lib/directory:
MV sublime \ Text \ 2/usr/local/lib/
3. Create a shortcut (similar to the shortcut in windows, which is actually a link). In this way, sublime text can be opened anywhere in terminal as you like:
Sudo ln-S/usr/local/lib/sublime \ Text \ 2/sublime_text/usr/bin/sublime
4. Add an icon to dash home in Ubuntu:
All programs in the default dash menu of ubuntu are stored in/usr/share/applications/
// Enter the applications directory
$ CD/usr/share/applications/
// Create and edit the sublime. desktop file
$ Sudo sublime/usr/share/applications/sublime. Desktop
Enter the content in the sublime. desktop file, and then save and close the file:
[Desktop Entry]Name=SublimeText 2GenericName=Text EditorExec=sublTerminal=falseIcon=/usr/local/lib/Sublime Text 2/Icon/48x48/sublime_text.pngType=ApplicationCategories=TextEditor;IDE;DevelopmentX-Ayatana-Desktop-Shortcuts=NewWindow[NewWindow Shortcut Group]Name=New WindowExec=subl -nTargetEnvironment=Unity
5. Complete the installation. press Alt + F2 to open dash home. Search for sublime to find the installed sublime text 2, for example: