Wind turbines on the mountain

Sublime Text Icon via https://dribbble.com/shots/3811091-Sublime-Text-3-Icon

TL:DR— Sublime Text is a proprietary text and code editor which is very popular among developers due to a simple, fast and distraction free interface, an ability to open all the files in a folder, support for third party plugins through a package control system, extensive language syntax highlighting, and a clickable minimap view of an entire file. Sublime Text runs on macOS, Linux, and Windows. Sublime Text is one of the best text editors around. Its licence keys can be shared across platforms. If you use lots of different operating systems it is beneficial to have the same editor.

Modern Chromebooks have Linux so it just works, right?

Not quite! Version 4 continues to provide support for Linux, and is downloadable from the makers website, Sublime HQ. Modern Chromebooks have a Linux subsystem, so it is possible to install Sublime text. It is a very manual process though.

Just take me to the link

Sublime Text (Web Site)  Sublime Text 4 announcement

Installation on a Chromebook

Launch a terminal on your Chromebook, and check your system is supported. Type uname -m and you are looking for x86_64. Ok, so now download the x86_64 tarball from the Sublime website. Once downloaded in Chrome OS the file is available to Linux. You just have to find it! It is hidden away in /mnt/chromeos/MyFiles/Downloads/. Once you know that, it is straightforward to extract it and move it to a suitable location, and set up the command line.

$ ls /mnt/chromeos/MyFiles/Downloads/sublime_text_build_4107_x64.tar.xz 
/mnt/chromeos/MyFiles/Downloads/sublime_text_build_4107_x64.tar.xz
$ tar xvf /mnt/chromeos/MyFiles/Downloads/sublime_text_build_4107_x64.tar.xz 

Once extracted, move the application to your desired location. Create two symbolic links, one for the command line subl and the other for the desktop launcher information file.

$ sudo mv sublime_text/ /opt/
$ sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
$ sudo ln -s /opt/sublime_text/sublime_text.desktop /usr/share/applications/sublime_text.desktop

Main editing screen

Sublime is now available from the Chrome OS launcher

Sublime Text main screen screenshot with an example html file loaded for editing - on a Chromebook
Sublime Text main screen screenshot with an example html file loaded for editing - on a Chromebook

Changing the launcher icon

I used sublime to edit its own configuration file for the chrome os desktop, to apply an icon I found online to make it look nicer than the Linux icon that it displayed by default.

$ /opt/sublime_text/sublime_text.desktop
  

Edit the line starting with Icon=  to contain the path to the desired icon file.

Sublime Text chrome os launcher desktop file open for editing
Sublime Text chrome os launcher desktop file open for editing

Recommended

Sublime Text seems to work just fine on Linux on a Chromebook. You have to spend a little time setting it up, and recognising that folders shared between Chrome OS and Linux are in special locations, but once you know where they are Sublime Text is quite usable and of course if you use it already you will feel right at home.


See also

The official documentation for Sublime Text.
Hat tip to The unofficial documentation for Sublime Text. where the Linux tarball instructions were helpful to me.