Ubuntu under Install sublime Text 2

Source: Internet
Author: User
Tags sublime text






Ubuntu under Install sublime Text 2






Sublime is an excellent editor, both in Linux and in the Windows system. The installation process is documented here.



1. Download Sublime Text 2.0.2.tar.bz2 to the website;



2. After extracting, copy to your own software directory:



TAR-XJVF sublime\ text\ 2.0.2.tar.bz2



sudo mv sublime\ text\ 2/usr/local/lib/



3. Create a symbolic link so that the command appears in the path (the program name can be set by itself here is sublime):



sudo ln-s/usr/local/lib/sublime\ text\ 2/sublime_text/usr/bin/sublime



4. Next create a desktop item so that sublime can be placed on the desktop icon:



Under/usr/share/applications/path, create the file Sublime.txt and enter the following:





[Desktop Entry]
Name=SublimeText 2
GenericName=Text Editor
Exec=sublime

Terminal=false
Icon=/usr/local/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






5. Do not forget that the file should have Execute permissions:



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



6. You can then Copy the icon to Desktop.














Ubuntu under Install sublime Text 2


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.