IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact
You are here: Home / How To / How to Install Sublime Text in Linux

How to Install Sublime Text in Linux

Sublime Text 2 This short tutorial is based on the link provided on the bottom of this post with slight modifications. The example is shown with 64-bit version of Linux Mint.

Download Sublime Text

Open your browser and go to Sublime Text and download the file to directory Downloads.

Setup

Open Terminal and type in the following command:

cd ~/Downloads

Then type in this command to extract the file:

tar -jxvf "Sublime Text 2.0.1 x64.tar.bz2"

Once the file is extracted, type the following commands individually:

sudo mv "Sublime Text 2" /opt/sublime/
sudo chown -R root:root /opt/sublime
sudo chmod -R +r /opt/sublime

Create a Sublime Text Executable

Execute the following commands to create a Sublime Text executable in your path:

sudo touch /usr/bin/sublime_text
sudo chmod 777 /usr/bin/sublime_text

Launch Pluma Text Editor by typing ALT+F2 (RUN) and enter this command:

gksu pluma /usr/bin/sublime_text

Copy & paste the code below:

#!/bin/sh
export SUBLIME_HOME="/opt/sublime"
$SUBLIME_HOME/sublime_text "$*"

Pluma Text Editor Sublime Text 2

Save the file and exit.

Next, type in this command:

sudo chmod 755 /usr/bin/sublime_text

Create a Menu Icon

Launch the default text editor (Pluma) again by typing Alt+F2 and type in:

gksu pluma /usr/share/applications/sublime.desktop

Copy & paste the code below:

[Desktop Entry]
Encoding=UTF-8
Name=Sublime Text 2
Comment=Edit text, code and markup
Exec=sublime_text
Icon=/opt/sublime/Icon/256x256/sublime_text.png
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;TextEditor;
StartupNotify=true

Pluma Text Editor Sublime Text Desktop

That’s it. If you go to the Menu, you should see Sublime Text 2 under the Applications, Accessories.
Sublime Text 2 in Linux Mint Applications Menu

Download

Sublime Text

Further Reading

Install Sublime text editor

June 2, 2013 Filed Under: How To Tagged With: Code Editor, Linux, Sublime Text

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to Check Installed .NET Framework Version
  • How to Remove .NET Runtime and SDK on Mac
  • How to Solve Intermittent 403 Error in IIS
  • How to Show Hidden Folders and Files in Mac Finder
  • How to Solve MS Office VBA Compile Error UserAuthentication

Recent Posts

  • How to Check Installed .NET Framework Version
  • How to Remove .NET Runtime and SDK on Mac
  • How to Solve Intermittent 403 Error in IIS
  • How to Show Hidden Folders and Files in Mac Finder
  • How to Solve MS Office VBA Compile Error UserAuthentication
  • RSS

Tags

.NET Access Amazon ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC Office PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows Server

Copyright © 2011-2022 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure