Skip to content

Instantly share code, notes, and snippets.

@likethesky
Created October 3, 2012 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save likethesky/3829964 to your computer and use it in GitHub Desktop.
Save likethesky/3829964 to your computer and use it in GitHub Desktop.
Setup fresh Sublime Text 2 on Ubuntu / Linux

Ubuntu / Linux install of Sublime Text

This will install and setup sublime (in /opt) and make it available via the 's' link (kept in /usr/local/bin)

Just type s on command line to open Sublime Text from then on!

First, (from a browser in your target Linux OS) go here: http://sublimetext.com (<-- click this link) and THEN right-click the <Download for Linux> button, and choose: Copy Link Location ... so you have the latest/greatest for your Linux OS.

Now in a terminal (ctrl-alt T, in Ubuntu), execute the following:

cd /opt

sudo wget double_click_this_text_and_paste_link_here

Then 'tab complete' the below pressing tab after the 'S' to get path to Sublime Text, then create your link to 's'... voila!

sudo tar vxjf S

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

May have to tab-complete the last line above, if it isn't named 'Sublime Text 2' anymore...

Be sure to include full path to original file you're linking, i.e. /opt/... (even though you're already in /opt, the path has to be absolute)

Example

For instance, for the 64-bit version (installing on Ubuntu 12.04.1 amd64), I did:

cd /opt

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

sudo tar vxjf Sublime\ Text\ 2.0.1\ x64.tar.bz2

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

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