Install the downloaded file package in Ubuntu

Source: Internet
Author: User

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:



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: 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.