How To Install Sublime Text Editor In GNU/Linux ?

Sublime Text Editor is one of the best cross-platform editor out there for editing source code. It is capable of syntax highlighting for wide range of file extensions like Python, C, C++, Java, HTML, JS, PHP, LaTeX & even Arduino. Sublime Text Editor is not opensource & not an free editor, but in last update the expiry date has been removed by the developers, so you can use Sublime text as there is no enforce time limit for evaluation.

Sublime Text Editor can be installed manually following the steps below :

  •  Now, extract the downloaded Sublime text 2 .tar.bz2 in /home directory by simply right clicking on it.

Sublime_text1

Sublime text 2

  • Now move the extracted folder ‘Sublime Text 2’ to the proper location. Open Terminal/Konsole and type :

The extracted folder will be moved in /opt directory of your system.

Sublime text 3

  • Now, we have to add following command for symbolic link. Open terminal & type :

  • Now, to add application icon in launcher. In terminal type :

(Replace gedit by any other editor like kate, vim or even sublime) and copy the following lines into it & hit on ‘Save’ button.

Login & out & you’ll notice launcher icon of sublime text in Menu.

sublime text 4

 I have tested same .desktop configuration in openSUSE Gnome & it shows up in launcher too, so no need to modify if you’re using other desktop environment. Didn’t tested in KDE though.

Happy coding.

Leave a Reply

Your email address will not be published. Required fields are marked *