Install Sublime in Ubuntu

Sublime is a fantastic editor for everyone who writes code. It has replaced my favorite code editor, TextMate

Installing in Windows and Mac is pretty easy. Installation on linux is simple, but not easy for those not familure with the terminal. Here is how to go about doing it.

Ubuntu:

wpid-ubuntu-2012-01-13-00-371.png

First Open a terminal on your ubuntu machine. Its under applications if you are running a version prior to 11.04. If you are using the unify interface (11.04 and newer unify is default). Click on the Ubuntu icon in the top left and search for Terminal.

        

Type in this command. What it does is add the private sublime repository to your repository database. For those who may not know, a repository is like an app store. It contains a collection of thousands of apps. Ubuntu ships with the Official repository with the big names in linux software. Webupd8team is not in the official repo so we are adding it here.

Be careful entering commands if you have never done it before. We need to run this command as root which is the super user. Root can do a lot more damage than the standard user. Don’t worry though, just enter these commands then close the terminal when you are done.

<code>

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

</code>

Wait for it to finish then update repositories with the update command.

<code>

        sudo apt-get update

</code>

Now install sublime

<code>

        

        sudo apt-get install sublime-text-2

</code>

Sublime will now appear under Programming

wpid-backtrack52-2012-01-13-00-372.png

Backtrack:

wpid-backtrack-2012-01-13-00-371.jpg

You will need to do one extra step to install Sublime on backtrack.

You must first install the python apt repo. If you don’t, you will get an error when trying to add the repository.

To prevent this run this line before adding the repository.

<code>

apt-get install python-software-properties

</code>

wpid-vmwarefusion2-2012-01-13-00-371.png

Now you can go ahead and add the repository

<code>

add-apt-repository pap:webupda8team/sublime-text-2

</code>

wpid-vmwarefusion1-2012-01-13-00-371.png

To install; type in this command. Make sure to update your repos first.

<code>

apt-get update

apt-get install sublime-text-2

</code>

Sublime will now appear under Programming

wpid-backtrack52-2012-01-13-00-373.png

You could additionally start sublime from the terminal by entering the name of the program.

<code>

        sublime

</code>

wpid-1____vmwarefusion1-2012-01-13-00-371.png

Advertisements

About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

4 Responses to Install Sublime in Ubuntu

  1. Lauren says:

    Thanks! I just reformatted to Ubuntu and tried a few other ways to install sublime, this worked flawlessly.

  2. Lars says:

    Thanks for this description! The package seems to be renamed, now write instead of sudo apt-get install sublime-text-2 the shorter sudo apt-get install sublime-text

  3. Pingback: Confluence: Quality Assurance

Leave a Reply

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

WordPress.com Logo

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

%d bloggers like this: