Install Sublime Text Manually in Ubuntu / Debian

Download Sublime Text 2 or Sublime Text 3 for Ubuntu 64 bit and put it somewhere useful (E.g, the Home folder)

Open a terminal. Create a symbolic link to Sublime Text.

sudo ln -s ~/Sublime\ Text\ 2/sublime_text /usr/local/bin/subl

Edit sublime_text.desktop as explained at Ed Moore’s website and change the icon path to something cool like this one by Dan Pererra. I ended up having to convert the PSD version to PNG in Pixelmator due to the original format being ICNS for OS X. Then I moved it into the Icon directory within the parent Sublime Text folder.

 sudo gedit sublime_text.desktop

Then add

Icon=/home/lance/Sublime Text 2/Icon/256x256/sublimetext-icon-dperrera.png

In a terminal navigate to the folder with Sublime Text files.

cd ~/Sublime\ Text\ 2/

Then type

sudo mv sublime.desktop /usr/share/applications


Afterwards, I dragged the icon to the Docky dock. One limitation of not installing through a PPA is file type integration; I haven’t figured out how to associate Sublime Text with text files to open automatically when pressed.

The result of my efforts


Leave a Reply

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

You are commenting using your 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