Games

How to install Sublime Text on Elementary OS 6.0

Introduction to Sublime Text

Sublime Text is a highly efficient and versatile text editor that is widely embraced by developers and writers for its speed and flexibility. Its features, like multiple selections, split editing, and customizable key bindings, make it a favorite among those who require a powerful coding environment. In this article, we will guide you through the process of installing Sublime Text on Elementary OS 6.0, a user-friendly linux distribution that prides itself on being intuitive and aesthetically pleasing.

Sublime Text is not only easy to use but also adapts to various programming languages and file types, making it an excellent choice for anyone involved in development or content creation. Let’s delve into the steps needed to get Sublime Text up and running on Elementary OS.

System Requirements

Before you begin the installation process, it’s crucial to ensure that your system meets certain requirements:

  • Elementary OS Version: Sublime Text 3 supports Elementary OS 6.0 and later versions.
  • Architecture: The installation process is suitable for both 64-bit and 32-bit versions of the OS.
  • Internet Connection: An active internet connection is required to download the installation files and dependencies.
See also  Survival Of The Fittest on GeForce Now on a Chromebook

Installing Sublime Text

Step 1: Update Your System

Begin by updating your system’s package list and installed packages. This helps to avoid conflicts during installation. Open the Terminal from your applications menu or by using the keyboard shortcut (Ctrl + Alt + T) and run the following commands:

bash
sudo apt update
sudo apt upgrade

This will ensure that your software repositories are current and that you have the latest updates for your existing packages.

Step 2: Install Dependencies

Before proceeding with the installation of Sublime Text, you should install some essential dependencies. Run the following command in the Terminal:

bash
sudo apt install apt-transport-https ca-certificates curl

These packages ensure secure connections while downloading Sublime Text and its dependencies.

Step 3: Add the Sublime Text Repository

To install Sublime Text via the package manager, you’ll need to add its official repository. This allows the system to find and install Sublime Text easily. Enter the following command into the Terminal:

bash
curl -fsSL https://download.sublimetext.info/sublime_key.asc | sudo apt-key add –

This command fetches and adds the GPG key to your system, ensuring the integrity and authenticity of the packages you download.

Next, add the Sublime Text repository by entering this command:

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

This command will create a new source list file that points to the Sublime Text repository.

Step 4: Update Package List Again

After adding the new repository, it’s essential to update your package index once more to include packages from the newly added Sublime Text source. Run:

See also  How to install Energy Web X on a Chromebook

bash
sudo apt update

This command refreshes your package list, allowing you to see the Sublime Text packages available for installation.

Step 5: Install Sublime Text

With everything set up, you can now install Sublime Text. Execute the following command in Terminal:

bash
sudo apt install sublime-text

The installation process will start, and you will see the progress in the Terminal. Once complete, Sublime Text will be available in your applications menu.

Launching Sublime Text

After installation, you can easily launch Sublime Text using one of the following methods:

  1. Using the Terminal: Type subl in the Terminal and press Enter.
  2. From the Applications Menu: Open the application menu and search for “Sublime Text.”

First-Time Setup

When you run Sublime Text for the first time, you’ll be greeted by a clean and intuitive interface. Take a moment to familiarize yourself with some of its key features:

  • Multiple Selections: This allows you to select several instances of a word or block of code to edit simultaneously.
  • Command Palette: Access through Ctrl + Shift + P, this feature provides a quick way to execute commands and navigate through available functionalities.
  • Distraction-Free Mode: Activate this with Ctrl + K, Ctrl + D for a minimalist interface, allowing you to focus on writing without distractions.

Configuring Sublime Text

Installing Package Control

Package Control is an essential tool that allows you to install and manage plugins seamlessly. Follow these steps to install it:

  1. Open Sublime Text.
  2. Access the console by navigating to View > Show Console.
  3. Paste the following command into the console and hit Enter:

python
import urllib.request,os,hashlib; h = ‘e3d1b3c5eb6c7bdf1b6bc7bc37fe94e3’ + ‘f93baed6264d6fc6ec260cf021f868537’; pf = ‘Package Control.sublime-package’; ip = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ip, pf), ‘wb’).write(urllib.request.urlopen(‘http://sublime.wbond.net/‘ + pf.replace(‘ ‘, ‘%20’)).read())

  1. Restart Sublime Text after the installation is complete.
See also  SparkyLinux 4.9 RC

Adding Themes and Color Schemes

Sublime Text supports a variety of themes and color schemes that can enhance your coding experience. To install a theme:

  1. Open the Command Palette (Ctrl + Shift + P).
  2. Type Package Control: Install Package and select it.
  3. Search for a theme or color scheme you prefer and follow the prompts to install it.

Frequently Asked Questions (FAQ)

1. Can I install Sublime Text on other Linux distributions?

Yes, Sublime Text is available for several Linux distributions, including Ubuntu, Fedora, and Arch Linux. The installation process may vary slightly depending on the package manager used by your distribution.

2. How do I uninstall Sublime Text?

To uninstall Sublime Text, open the Terminal and run:

bash
sudo apt remove sublime-text

This command will remove the application while preserving any user settings.

3. Is Sublime Text free to use?

Sublime Text is free to download and use, but it is not free software. Users are encouraged to purchase a license to support development after a trial period.

4. What is a key feature of Sublime Text?

One standout feature of Sublime Text is its powerful “Goto Anything” functionality, which allows you to navigate to files, symbols, or lines in seconds. Simply press Ctrl + P and start typing.

5. Can I customize Sublime Text?

Absolutely! Sublime Text is highly customizable. Users can modify key bindings, create personalized snippets, and even develop plugins to enhance functionality.

Conclusion

Installing and configuring Sublime Text on Elementary OS 6.0 is a straightforward process that opens up a world of possibilities for efficient coding and content creation. Whether you’re a seasoned developer or someone looking to write and edit simple text files, Sublime Text offers a rich experience with numerous features that cater to your needs. With this guide, you should be well-prepared to take full advantage of this powerful text editor. Happy coding!

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.