How do I install Sublime Text 2 in Ubuntu 12.04?

Sublime Text 2 is a fantabulous editor. I have recently switched over to it and I am very satisfied. There are numerous articles out on the Internet that will allow one to find out the steps that explain how to install Sublime Text 2 in a Ubuntu machine. I am writing this article as a note to myself so that I can quickly glance over the steps in future.

# Download Sublime Compressed BZip package from # BUnzip the package. Example: root@labs:~$ bunzip "Sublime Text 2 x64.tar.bz2" # BUnzip would have unzipped the Sublime package into a .tar archive. Untar it. root@labs:~$ tar -xvf "Sublime Text 2 x64.tar" # The net result would be a folder named "Sublime Text 2 x64". Lets copy it to /opt. root@labs:~$ sudo mv "Sublime Text 2 x64" /opt # Lets add a link to the executable - "Sublime Text 2 x64/sublime_text" in /usr/bin for easier access. root@labs:~$ ln -s "/opt/Sublime Text 2 x64/sublime_text" /usr/bin/sublime # Lets create a icon in the Unity Dashboard for convenience.

# Reference: # Fire up a text editor. I am using vim here. But, any text editor would do. root@labs:~$ sudo vim /usr/share/applications/sublime.desktop # Add the below content to /usr/share/applications/sublime.desktop and save it. [Desktop Entry] Version=1.0 Name=Sublime Text 2 Exec=sublime Terminal=false Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png Type=Application Categories=TextEditor;IDE;Development X-Ayatana-Desktop-Shortcuts=NewWindow [NewWindow Shortcut Group] Name=New Window Exec=sublime -n TargetEnvironment=Unity # All done.


About these ads

3 thoughts on “How do I install Sublime Text 2 in Ubuntu 12.04?

  1. Pingback: How do I install Eclipse Juno in Ubuntu 12.04? | A Quest for Technical Expertise

Leave a Reply

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

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