Games

How to install Sublime Text on Linux Mint 21

Introduction

Sublime Text is a sophisticated and powerful text editor beloved by developers and writers for its speed, efficiency, and flexibility. If you’re using Linux Mint 21, installing Sublime Text can greatly enhance your coding experience. In this comprehensive guide, we will walk you through the entire process of downloading, installing, and setting up Sublime Text on your Linux Mint 21 system.

Why Choose Sublime Text?

Before diving into the installation process, it’s essential to understand what makes Sublime Text stand out in the vast array of text editors available today. Here are a few key features:

  • Speed: Sublime Text is ultra-fast, allowing you to open large files in seconds.
  • Customizability: With a wide array of plugins and themes, Sublime Text can be tailored to meet your specific needs.
  • Cross-Platform Compatibility: It works seamlessly across various operating systems, including Windows, macOS, and various Linux distributions.
  • Multiple Selections: You can make multiple edits simultaneously, which can significantly speed up your coding workflow.
  • Elegant Interface: Its clean and simple user interface reduces distractions while you work.
See also  How to install Dofus on a Chromebook in 2021

With these features in mind, let’s explore how to install Sublime Text on Linux Mint 21.

Preparing for Installation

System Requirements

Before installing Sublime Text, ensure that your system meets the following requirements:

  • Operating System: Linux Mint 21
  • Architecture: 64-bit recommended, but Sublime Text does support some 32-bit systems as well.

Updating Your System

It’s always a good idea to start with an updated system. Open your terminal and run the following commands:

bash
sudo apt update
sudo apt upgrade

These commands will fetch the latest packages and update your existing installations, ensuring you have all the necessary dependencies for a smooth installation.

Installing Sublime Text

Method 1: Using the Official Repository

One of the easiest ways to install Sublime Text on Linux Mint 21 is through its official repository.

Step 1: Add the Sublime Text Repository

  1. Open your terminal.

  2. Run the following command to add the Sublime Text repository’s GPG key, which ensures the authenticity of the packages:

    bash
    wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add –

  3. Next, add the Sublime Text repository to your system’s sources list. Use the following command:

    bash
    echo “deb https://download.sublimetext.com/ stable sublime-text main” | sudo tee /etc/apt/sources.list.d/sublime-text.list

Step 2: Install Sublime Text

Now that the repository is added, you can install Sublime Text easily with:

bash
sudo apt update
sudo apt install sublime-text

This command will download and install Sublime Text along with any dependencies it requires.

Method 2: Using the .deb Package

If you prefer, you can also download the .deb installation package directly.

Step 1: Download the Package

  1. Visit the Sublime Text Download Page.
  2. Under the “Linux” section, find the appropriate .deb package for your distribution.
See also  How to install Godot 4.3.0 on a Chromebook

You can also use the terminal to download directly:

bash
wget https://download.sublimetext.com/sublime-text_build_amd64.deb

Replace <version> with the specific version number you wish to download.

Step 2: Install the Package

Once downloaded, run the following command to install:

bash
sudo dpkg -i sublime-text_build-_amd64.deb

Step 3: Fix Any Dependency Issues

In some cases, you may encounter dependency issues. If that happens, execute:

bash
sudo apt-get install -f

This command will attempt to fix any broken dependencies and complete the installation process for Sublime Text.

Launching Sublime Text

After installation, you can launch Sublime Text in various ways:

  • Via Terminal: Open your terminal and type subl.
  • Through Menu: Navigate to your applications menu and look for Sublime Text.

Customizing Sublime Text

Installing Packages and Themes

Sublime Text supports a variety of plugins that can enhance its functionality. To install package control—an essential tool for managing packages—follow these steps:

  1. Open Sublime Text.
  2. Press Ctrl + Shift + P to open the Command Palette.
  3. Type “Install Package Control” and follow the prompts.

Once package control is installed, you can add new packages and themes by again opening the Command Palette (Ctrl + Shift + P), selecting “Package Control: Install Package,” and searching for your desired package.

Recommended Packages

  1. Emmet: Increases your productivity in HTML/CSS.
  2. SublimeLinter: Provides instant feedback on errors in your code.
  3. GitGutter: Displays version control diff indicators in the gutter.

Personalizing Your Workspace

Enhance your coding experience by customizing the interface. Here are some tips:

  • Change themes: Go to Preferences > Color Scheme and select from various options.
  • Adjust font size and style: Navigate to Preferences > Settings, then modify the font settings.
  • Set your preferences for key bindings and snippets to optimize your workflow.
See also  How to install Natron on Zorin OS 17

Troubleshooting Common Installation Issues

Installation Fails

If the installation fails due to dependency issues or an incorrectly added repository, ensure you closely follow the steps mentioned when adding the repository or downloading the .deb file. Running sudo apt update before installation often resolves these problems.

Application Doesn’t Launch

If Sublime Text doesn’t launch after installation, try running it from the terminal to see if there are any error messages that can guide troubleshooting.

Conclusion

Installing Sublime Text on Linux Mint 21 is a straightforward process that can significantly increase your productivity as a developer or writer. By utilizing its powerful features and customizing it to fit your workflow, you’ll likely find that coding or writing becomes a much more enjoyable task.

FAQ

1. Is Sublime Text free to use?

Sublime Text offers an unlimited trial period but will occasionally prompt you to purchase a license. For continued use, it’s recommended to buy a license for full access to features and updates.

2. Can I install Sublime Text on a 32-bit system?

While Sublime Text primarily supports 64-bit systems, a legacy 32-bit version may be available. However, performance and compatibility are better on 64-bit systems.

3. How do I remove Sublime Text?

To uninstall Sublime Text from your system, simply run the following command:

bash
sudo apt remove sublime-text

4. Is Sublime Text suitable for beginners?

Yes, while Sublime Text is a professional-grade editor, its user-friendly interface and extensive documentation make it accessible for beginners.

5. Can I use Sublime Text for languages other than programming?

Absolutely! Sublime Text can be used for any text-based task, including writing documentation, creating notes, and more. Its versatility extends beyond just coding.

6. What should I do if Sublime Text is running slowly?

If Sublime Text feels sluggish, consider disabling unused plugins or setting files with a large line count to be opened in a read-only mode.

About the author

Jeffrey Collins

Jeffrey Collins

Jeffery Collins is a Microsoft Office specialist with over 15 years of experience in teaching, training, and business consulting. He has guided thousands of students and professionals in mastering Office applications such as Excel, Word, PowerPoint, and Outlook. From advanced Excel functions and VBA automation to professional Word formatting, data-driven PowerPoint presentations, and efficient email management in Outlook, Jeffery is passionate about making Office tools practical and accessible. On Softwers, he shares step-by-step guides, troubleshooting tips, and expert insights to help users unlock the full potential of Microsoft Office.