主要的安裝過程ubuntu
一、在官方下載相應的版本(個人是Ubuntu64位系統)獲得.tar.bz2文件,而後解壓:app
tar xf Sublime\ Text\ 2\ Build\ 2181\ x64.tar.bz2
二、減壓後獲得Sublime Text 2文件夾,不用什麼編譯make了,其實它就能夠運行了,而後直接把它移動端/usr/lib/下面去:ui
sudo mv Sublime\ Text\ 2 /usr/lib/
三、在終端中,添加sublime快捷命令:spa
sudo ln -s /usr/lib/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
四、如今咱們能夠在終端中輸入:sublime打開sublime了,下面咱們添加一個圖標吧(/usr/share/applications):code
sudo sublime /usr/share/applications/sublime.desktop
加入如下內容:blog
1 [Desktop Entry] 2 Version=1.0 3 Name=Sublime Text 2 4 # Only KDE 4 seems to use GenericName, so we reuse the KDE strings. 5 # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. 6 GenericName=Text Editor 8 Exec=sublime 9 Terminal=false 10 Icon=/usr/lib/Sublime Text 2/Icon/48x48/sublime_text.png 11 Type=Application 12 Categories=TextEditor;IDE;Development 13 X-Ayatana-Desktop-Shortcuts=NewWindow 15 [NewWindow Shortcut Group] 16 Name=New Window 17 Exec=sublime -n 18 TargetEnvironment=Unity
如今能夠在全部程序裏面找到,sublime text 2了,能夠拖動到sublime桌面或者其餘地方get
1.將sublime_text文件複製一份並重命名爲sublime_text.bak作一個備份string
-----BEGIN LICENSE----- hiwanz Unlimited User License EA7E-26838 5B320641E6E11F5C6E16553C438A6839 72BA70FE439203367920D70E7DEB0E92 436D756177BBE49EFC9FBBB3420DB9D3 6AA8307E845B6AB8AF99D81734EEA961 02402C853F1FFF9854D94799D1317F37 1DAB52730F6CADDE701BF3BE03C34EF2 85E053D2B5E16502F4B009DE413591DE 0840D6E2CBF0A3049E2FAD940A53FF67 -----END LICENSE-----