Skip to content

Instantly share code, notes, and snippets.

@Kerrick
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
Save Kerrick/2716568 to your computer and use it in GitHub Desktop.
HOWTO install Sublime Text 2 in Debian Squeeze
# Download Sublime Text 2 from http://www.sublimetext.com/2
# 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
@embs
Copy link

embs commented Sep 5, 2012

Nice done!

@embs
Copy link

embs commented Sep 5, 2012

@tavo962
Copy link

tavo962 commented Jan 26, 2013

thanks

@quadotak
Copy link

merci!

@simonewebdesign
Copy link

Thank you

@Sarchis
Copy link

Sarchis commented Jun 4, 2013

Thanks!

@elberths
Copy link

elberths commented Jun 9, 2013

wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2

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

@iulianpw
Copy link

Thanks a lot!!!

@francolaiuppa
Copy link

If you're on Debian Wheezy (or any Linux that uses Gnome > 3.4) you can open the "Main Menu" app and add a link to the Sublime Text Application.
You can find the icon in the "Icon" folder
Hope it helps somebody!

@vanclist
Copy link

Спасибо!

@zohnyc
Copy link

zohnyc commented Nov 6, 2013

Thank you ! : D

@madeirander
Copy link

Simple tip, but very usefull. Thanks :)

@aj07mm
Copy link

aj07mm commented Jun 19, 2014

nice help, thks!

Copy link

ghost commented Sep 16, 2014

Thank you :)

@SunDi3yansyah
Copy link

how to crack sublimetext/3 on arsitecture i386

@sbigeard
Copy link

It's ok just with this version 3 (13/11/2016).
You should adapt with your newest version.
I've choiced to execute Sublime Text with "st3" command.

Go to https://www.sublimetext.com/3
Here, i download "sublime_text_3_build_3126_x64.tar.bz2" in /home/Téléchargements (Be carreful with folders, i'm french ;-) )
https://download.sublimetext.com/sublime_text_3_build_3126_x64.tar.bz
Don't forget : Tab completion is an extremely helpful feature in nearly any command-line environment !

cd /home/$USERNAME/Téléchargements/ in french (or cd /home/$USERNAME/Downloads/ in english)
tar -xvjf sublime_text_3_build_3126_x64.tar.bz2
sudo mv sublime_text_3 /opt/
sudo ln -s /opt/sublime_text_3 /usr/local/sublime_text_3
sudo ln -s /usr/local/sublime_text_3/sublime_text /usr/local/bin/st3
sudo rm sublime_text_3_build_3126_x64.tar.bz2

Now, try "st3" command
Enjoy !

@sbigeard
Copy link

@damnnnnnn
Copy link

Thank you, it work !

@imran-uk
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:

https://github.com/imran-uk/install-sublime-text-2

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): https://ejectdisc.org/2017/09/06/sublime-text-2-on-debian-linux/

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