Tuesday, August 27, 2013

Sublime Installation on Ubuntu

1. Download the Sublime Text for Linux version from the official website.
2. Extract the .bz2 format file to the location where you must can find.
3. Move the sublime folder to /opt/
sudo mv Sublime\ Text\ 2 /opt/
4. At some point you'd want to be able to call Sublime Text from the Terminal by just typing 'sublime'. To do that, we'll just create a symbolic link in '/usr/bin' like this:
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text/ usr/bin/sublime
5. Create a launcher in Unity. To do this, we create a .desktop file in '/usr/share/applications/sublime.desktop'
Edit the config files below:
sudo sublime /usr/share/applications/sublime.desktop
paste the following content in the file:
[Desktop Entry]
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor

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

OK, you have installed the MOST powerful editor in the world....lol

No comments:

Post a Comment