How to install sublime on CentOS


To install sublime we will first need to download it from the repository using the wget command:
wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2
Once the archive has been downloaded, we’ll need to execute sudo tar -vxjf sublime_text_3_build_3065_x64.tar.bz2 to unpack its contents in the current directory. If you want to find out more about archiving and compressing files in Linux, read this article:

How to install sublime
I’ll move the directory to /opt because this is where I store all of the software installed. To achieve this result, execute mv sublime_text_3 /opt/.
Now we’ll have to create a symbolic link so we can launch the application much faster:
sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime3
To create a shortcut on the CentOS server if you are using a Unity Desktop environment, you’ll need to create a file in /usr/share/applications/. I’ve created a file named sublime.desktop in which I’ve added the following entries:
[Desktop Entry]
Name=Sublime3
Exec=sublime3
Terminal=false
Icon=/opt/sublime_text_3/Icon/48×48/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
Sublime on CentOS
The shortcut has been added to the applications menu, all that’s left to do now is to start and enjoy sublime:
How to install Sublime on Linux
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s