IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

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

Buy me a coffee?

Buy me a coffee If you find any of the articles or demos helpful, please consider supporting my work here, you'll have my big thanks!

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
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense 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 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 2012 Windows Server

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