System introduction:
64-bit ubuntu 12.04 LTS
I. Command Installation
sudo add-apt-repository ppa:webupd8team/sublime-text-2sudo apt-get updatesudo apt-get install sublime-text-2
Ii. Installation Package
1. Download: http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
2. decompress: tar jxvf Sublime \ Text \ 2.0.2 \ x64.tar.bz2-C/usr/local/sublime
Decompress the package and rename it as sublime.
3. Move sublime to the installation directory:/usr/lib
Sudo mv sublime // usr/lib
4. create shortcuts
You can use the command to open sublime
Ln-s/usr/lib/sublime/sublime_text/usr/bin/sublime
In this way, you can use sublime in the command line to open the editor.
5. Create a starter
Sudo sublime/usr/share/applications/sublime. desktop
Paste the following content:
[Desktop Entry]Version=1.0Name=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 13.04-20130413.GenericName=Text EditorExec=sublimeTerminal=falseIcon=/usr/lib/sublime/Icon/48x48/sublime_text.pngType=ApplicationCategories=TextEditor;IDE;DevelopmentX-Ayatana-Desktop-Shortcuts=NewWindow[NewWindow Shortcut Group]Name=New WindowExec=sublime -nTargetEnvironment=Unity
OK
Reference: http://blog.csdn.net/chszs/article/details/8912532