Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2012 05:08
  • Star 40 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
HOWTO install Sublime Text 2 in Debian Squeeze
# Download Sublime Text 2 from
# If you aren't root, sudo su
tar -xvjf Sublime\ Text\ 2*.tar.bz2
mv Sublime\ Text\ 2/ /opt/sublime-text-2/
ln -s /opt/sublime-text-2 /usr/local/sublime-text-2
ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text
rm Sublime\ Text\ 2*.tar.bz2
# Sublime Text 2 can now be run as normal user with command "sublime_text"
# In GNOME 2, you can add it to the application menu by:
# 1. Right click on the Applications menu
# 2. Select "edit menus"
# 3. Click on "Programming"
# 4. Select "new item"
# - Type: Application
# - Name: Sublime Text 2
# - Command: sublime_text
# - Icon: /opt/sublime-text-2/Icon/48x48/sublime_text.png
Copy link

Copy link

Thank you, it work !

Copy link

imran-uk commented Sep 10, 2017

I've wrote something to automate the installation of Sublime Text 2 on Debian with Gnome 3 - it handles everything: setting the icon, creating install directory, does not require root at all and it even downloads it for you automatically:

I've tested it on Debian Stretch but it should work on any FreeDesktop-compliant desktop not just Gnome 3

I've also made a blog entry on the finishing touch to installation (getting it into menu's etc):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment