Games

How to install Sublime Text on Linux Mint 20.1

Introduction to Sublime Text on Linux Mint 20.1

Sublime Text is a popular text editor used by developers, writers, and anyone who works extensively with code or plain text. Highly regarded for its speed, versatility, and rich set of features, Sublime Text continues to be the go-to editor for many users. If you’re using Linux Mint 20.1, this guide will walk you through installing Sublime Text efficiently, ensuring you can harness its powerful capabilities for your projects.

Why Choose Sublime Text?

Lightweight Performance

One of the most compelling reasons to choose Sublime Text is its lightweight nature. Unlike some more resource-intensive editors, Sublime loads quickly and runs smoothly, even on machines with limited resources. Its minimal interface helps users focus on writing, which can significantly improve productivity.

Rich Feature Set

Sublime Text offers a multitude of features, including:

  • Syntax Highlighting: Supports various programming languages to improve readability and reduce errors.
  • Multiple Selections: Allows users to edit multiple lines or occurrences simultaneously, saving valuable time.
  • Command Palette: Provides quick access to various functions and settings, enhancing user experience.
  • Customizability: Users can tweak the editor to fit their workflow through preferences and plugins.
See also  Linux Mint 19.1 XFCE Beta

Cross-Platform Compatibility

Sublime Text is available on Windows, Mac, and Linux, making it an excellent choice for users who might switch between operating systems.

Prerequisites for Installation

Before diving into the installation process, ensure that your system meets the following requirements:

  1. Linux Mint 20.1: This guide specifically caters to this version, although the steps may also apply to other versions with slight modifications.
  2. Terminal Access: Familiarity with the terminal is beneficial, as installation involves simple command-line inputs.

Steps to Install Sublime Text on Linux Mint 20.1

Step 1: Update Your Package List

Before installing any new software, it’s essential to make sure your package list is up to date. This ensures you have access to the latest available software and updates. Open your terminal (you can do this by pressing Ctrl + Alt + T) and run the following command:

bash
sudo apt update

This command refreshes your local package index, enabling your system to recognize the most recent software packages.

Step 2: Install Dependencies

For the smooth installation of Sublime Text, you need to install some supporting packages. These packages ensure that your system can manage the installation correctly. Execute the following command in your terminal:

bash
sudo apt install apt-transport-https curl

Step 3: Add the Sublime Text GPG Key

Sublime Text is distributed through an official repository that requires a GPG key for secure verification during installation. To add the GPG key, run the following command:

bash
curl -fsSL https://download.sublimetext.com/sublimehq-pkg-GPG-key.pub | sudo gpg –dearmor -o /usr/share/keyrings/sublimehq-archive.gpg

This command fetches the GPG key and securely stores it on your system, ensuring that package integrity is maintained during installation.

See also  How to install Google Earth Pro on Kubuntu 24.04

Step 4: Add the Sublime Text Repository

Next, you’ll need to add the official Sublime Text repository to your system sources. This can be done by executing:

bash
echo “deb [signed-by=/usr/share/keyrings/sublimehq-archive.gpg] https://download.sublimetext.com/ apt/stable main” | sudo tee /etc/apt/sources.list.d/sublime-text.list

This command creates a new source list entry for Sublime Text, enabling you to install and receive updates easily.

Step 5: Update the Package List Again

Since you’ve added a new repository, it’s a good practice to update your package list again so that your system can recognize Sublime Text:

bash
sudo apt update

Step 6: Install Sublime Text

Finally, you’re ready to install Sublime Text. Run the following command to complete the installation process:

bash
sudo apt install sublime-text

After a few moments, the installation should complete. You can start Sublime Text by searching for it in your applications menu.

Launching Sublime Text

Once installed, you can launch Sublime Text by either:

  1. Searching for it in the applications menu and clicking on it.
  2. Typing the following command into the terminal:

bash
subl

This command will initiate Sublime Text, providing you with a clean and user-friendly interface designed for coding and text editing.

Customizing Sublime Text

Themes and Color Schemes

Sublime Text allows users to customize its appearance extensively. You can change themes and color schemes to suit your preferences. To do this, navigate to Preferences > Color Scheme or Preferences > Theme.

Installing Packages with Package Control

One of the powerful features of Sublime Text is the ability to extend its functionality through plugins. To manage additional packages easily, you should install Package Control. Follow these steps:

  1. Open the console by selecting View > Show Console or by pressing `Ctrl + “ (backtick).
  2. Paste the following code into the console:
See also  HP Chromebook 14 (G5) - 14-ca070nr

python
import urllib.request,os,hashlib; h = ‘2e3451e86e47b995f9c774c0ff5c70ff’ + ‘4f4768273f67d4af38a8af7a6223c0aec’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), ‘wb’).write(urllib.request.urlopen(‘http://sublime.wbond.net/‘ + pf.replace(‘ ‘, ‘%20’)).read()); print(‘Please restart Sublime Text to finish installation.’)

  1. Press Enter, and after a brief moment, the Package Control plugin should install. Restart Sublime Text to complete the setup.

After this, you can easily install other packages by navigating to Preferences > Package Control.

Conclusion

Installing Sublime Text on Linux Mint 20.1 is a straightforward process that can greatly enhance your coding and writing experience. With its extensive customizability and rich feature set, Sublime Text proves itself to be a valuable tool for both novice and experienced users. Now that you have installed it, take some time to explore its features, customize it according to your preferences, and enjoy the seamless work environment it offers.

Frequently Asked Questions

1. Is Sublime Text free to use?

Yes, Sublime Text is free to download and evaluate. However, it is technically a paid product, and users are encouraged to purchase a license if they continue using it after the evaluation period.

2. What programming languages does Sublime Text support?

Sublime Text provides syntax highlighting and code completion for a wide variety of programming languages, including Python, JavaScript, HTML, CSS, C++, and many others. Through plugins, you can also add support for additional languages.

3. Can I use Sublime Text for web development?

Absolutely! Sublime Text is an excellent choice for web development because of its support for HTML, CSS, and JavaScript. Its flexibility allows developers to install packages that enhance the development process.

4. How can I revert to a previous version of Sublime Text?

You can manually download the desired version from the official Sublime Text website and install it. However, this may require removing the current installation first. Always ensure to back up your settings before doing this.

5. Is there a community for Sublime Text users?

Yes, Sublime Text has an active community primarily found on forums, GitHub, and various online platforms. You can find a plethora of resources, plugins, and discussions to help enhance your editing experience.

6. Are there any alternatives to Sublime Text?

There are several alternatives to Sublime Text, including Visual Studio Code, Atom, and Notepad++. Each has its strengths and weaknesses, so the best choice depends on your personal preferences and requirements.

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.