They offer different flash templates with latest features.

Forgot password
Written by:
Score: 30
votes: 32
Format: Article

 Install Sublime text editor

What is Sublime Text?

Sublime Text is a sophisticated text editor for code, html and prose. The program was originally desighned as a feature-rich extension of Vim. It's the best editor for HTML5 and CSS3 developers (It doesn't need extra plugins like other text editors).



About this tutorial

This tutorial will explain how to install Sublime Text and how to make it a native application.



Installation process

First Method


Open a terminal with Ctrl+Alt+T and type:

sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo apt-get update


Optional: remove any installed Sublime Text packages:

sudo apt-get --purge remove sublime-text*


Now to install Sublime Text, type the following:

sudo apt-get install sublime-text



Second Method


First you need to download Sublime for 32bit or 64bit system.


Once you download the file locate it and extract it. I assume that the downloaded file is located in /home/DownloadsOpen a terminal with Ctrl+Alt+T and type 

cd ~/Downloads (With this command we change the default directory "/" to "/Downloads") and then type


For 32bit version

tar -jxvf Sublime\ Text\ 2\ 2.0.1.tar.bz2 to extract the file.


For 64bit version

tar -jxvf Sublime\ Text\ 2\ 2.0.1\ x64.tar.bz2 to extract the file.



Once you extract the file type the following commands invidually:

sudo mv Sublime\ Text\ 2 sublime

sudo mv sublime /opt/

cd /opt

sudo chown -R root:root sublime

sudo chmod -R +r sublime



Now we need to create a Sublime Text executable in your path. To do this execute the following commands:


sudo touch /usr/bin/sublime_text

sudo chmod 775 /usr/bin/sublime_text



Now press Alt+F2 and type:

gksu gedit /usr/bin/sublime_text



and copy paste the below code:


#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export SUBLIME_HOME="/opt/sublime"

$SUBLIME_HOME/sublime_text "$*"


and save the file.



Next , to create a menu icon press Alt+F2 and type:

gksu gedit /usr/share/applications/sublime.desktop



and copy paste the below code:


[Desktop Entry]
Name=Sublime Text
Sublime Text 2



and finally save the file.


Finally to launch Sublime Text for the first time

Menu Accessories Sublime Text




Tags: sublime text editor html5 html css css3
Created: 3 years ago.
Last edited: 2 years ago.
Reviewed: 3 years ago.
Read 0 times.

5 months ago

Great instruction ever seen.
Note that you should choose icon of 48x48 size. I have tried larger size but the icon is not shown.
1 year ago

Great tutorial! Works fine.  
1 year ago

Works like a charm!!! Thanks!!  
2 years ago


No, it won't update automatically.
2 years ago

The manual method works well... Will I be able to get it to update automatically?  
2 years ago

Ok, I'm pretty sure I answered my own question:

Failed to fetch 404 Not Found

Visiting the parent URL, /sublime-text-2, it's pretty clear there is no mention of Debian here. I'm new to Mint but have always liked Debian... Did I make the wrong distro choice in this case?
2 years ago

Hello. I am trying to make this work by method one, on the 64 bit debian edition. I follow the instructions but the package does not show up in an apt-cache search sublime. Has anyone tried this with Debian edition? I would much prefer to use the package manager method if possible. Thanks.  
2 years ago


Thanks for the hint!
I fixed the artcle.
2 years ago

There is some nice bug in command-line argument in file /usr/bin/sublime_text
If you'll try to open file with spaces like the default 'Untitled Document' sublime will open 2 tabs - one for 'Untitled' and another one for 'Document'.
To fix this, just place $* in quotes:
$SUBLIME_HOME/sublime_text "$*"
Now it will work as proper.
2 years ago

Works in Linux Mint 14 Cinnamon... Thanks!  
2 years ago

hi! i'm new here! i tried every steps above but when i clicked the sublime on my linuxmint 13 menu, it doesn't work. nothing happened. please help me. i really want this sublime for my project. thanks!!  
2 years ago

Here is the sequel that no one asked for if you want to learn how to set a default syntax for Sublime Text 2:

(shameless self promotion)
3 years ago

thanks for this!
Now I can use my portable programs in more comfortable way.
3 years ago

Great tutorial!  
3 years ago

Nice tutorial! Sublime is very helpful for HTML5 and CSS development.  

Other tutorials from efthialex