Daily Ubuntu / Linux news and application reviews.

ads

Sublime Text 2

Sublime Text 2 is a pretty neat text editor which will remind you of TextMate. It runs on Linux, Windows and Mac OSX and while it's not free, you can evaluate it for an unlimited period of time. Check out our Sublime Text 2 review for more info.

Sublime Text 2 is updated quite often so I wanted to create an Ubuntu PPA for a while now but I couldn't find out what license it uses. I've emailed the Sublime Text 2 developer and got no reply so I decided to package it like Adobe Flash: the .deb will download Sublime Text 2 from its website so the .deb doesn't come with the actual files.

While Sublime Text 2 automatically checks for updates and prompts you to download the latest version, I like getting the updates through a PPA. Further more, using this PPA, Sublime Text 2 will get a proper .desktop file so you can right click files to open in Sublime Text 2 as well as showing up properly in the Unity launcher. You can also open files from the command line (run "sublime-text-2 /path/to/file" or "subl /path/to/file").

This is the first version of the Sublime Text 2 packaging so there might be bugs. The deb doesn't check if the download was successful; also, it will probably fail to install behind a proxy. Use it at your own risk!


Add the PPA and install Sublime Text 2 in Ubuntu


Before installing, please note that initially, Sublime Text 2 used "~/.Sublime Text 2" for the configuration files while the latest versions use "~/.config/sublime-text-2". Because of a bug with having 2 configuration folders, the deb will remove "~/.Sublime Text 2" so if you have some configuration files you want to keep in there, move them to "~/.config/sublime-text-2".

Add our Sublime Text 2 Ubuntu PPA using the following commands:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update

Then, install Sublime Text 2 stable build:
sudo apt-get install sublime-text

Or, to install Sublime Text 2 development build, use the following command:
sudo apt-get install sublime-text-dev

I've set up the PPA for personal use but of course, anyone can use it. If you find any bugs, please report them in the comments below.

For what's new in the latest Sublime Text 2 builds, check out its homepage.


Update: initially, there were only Sublime Text 2 development builds in the PPA, but you can now choose to install either the stable or the latest development build.

Also see: GMate: Get TextMate Features And Styles In Gedit
«
Next
Newer Post
»
Previous
Older Post
-->