CentOS is mostly used as a server, but for various reasons I am now using CentOS to do the development machine, so of course to install the development of magical sublime textle.
Note: The installation directory varies from person to person, and my installation directory is/opt/sublime_text_3.
First, the establishment of software installation directory (I generally install the software in the OPT directory)
# mkdir/opt# Cd/opt
Second, download the software
Http://www.sublimetext.com/3
Note Be sure to lower the ubuntu/tarball bag.
can also be downloaded by command
wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2
If the link address is invalid, please go to the official website to get the latest.
Third, unpack the package
Tar jxvf sublime_text_3_build_3059_x64.tar.bz2
Four, direct operation under the command line
# Cd/opt/sublime_text_3# /sublime_text
V. Create a desktop shortcut
Copying files
# Cp/opt/sublime_text_3/sublime_text.desktop/usr/share/applications
Change the configuration file
#Vim/usr/share/applications/sublime_text.desktopmy configuration is as follows [Desktop entry]version=1.0Type=ApplicationName=Sublime Textgenericname=Text editorcomment=sophisticated Text Editor forcode, markup and proseExec =/opt/sublime_text_3/sublime_text% FTerminal=falseMimeType=text/Plain; Icon =/opt/sublime_text_3/icon/48x48/sublime- text.pngCategories=texteditor;development; Startupnotify=trueActions=window;document; [Desktop Action Window] Name=New WindowExec =/opt/sublime_text_3/sublime_text- nonlyshowin=Unity; [Desktop Action Document] Name=New FileExec =/opt/sublime_text/sublime_text_3-- command new_fileonlyshowin=unity;
Six, open the software
Applications > Programming > Sublime Text "Right-click" Add this launcher to the desktop (or in software search, type Sublime to appear, then right-click to add to Favorites)
Note : The location of the profile marked red corresponds to the Software installation directory, which needs to be changed to your own installation directory.
Linux issue-centos installation Sublime Text 3