Pretty cool! Didn't realise this, but Sublime Text 3 is available for Linux as well! Today I took a few minutes to download/install it and to even make it use some of the GUI themes for better coding experience.
All of these steps are taken from the Sublime Text 3 website.
Step 1: Activate Sublime Text 3 repo
First, we install the key to trust Sublime Text 3 repo:
greys@xps:~ $ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - [sudo] password for greys: OK
Now we ensure apt-get will support https protocol for working with repos:
greys@xps:~ $ sudo apt-get install apt-transport-https
We update apt sources with the repo URL:
greys@xps~ $ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
Step 2: Install Sublime Text 3
We refresh apt package info:
$ sudo apt-get update
and install the packages:
greys@xps:~/proj/unixtutorial/examples $ sudo apt-get install sublime-text Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: dkms libgsoap-2.8.75 libvncserver1 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed sublime-text 0 to upgrade, 1 to newly install, 0 to remove and 73 not to upgrade. Need to get 9,835 kB of archives. After this operation, 34.8 MB of additional disk space will be used. Get:1 https://download.sublimetext.com apt/stable/ sublime-text 3211 [9,835 kB] Fetched 9,835 kB in 8s (1,189 kB/s) Selecting previously unselected package sublime-text. (Reading database … 271734 files and directories currently installed.) Preparing to unpack …/sublime-text_3211_amd64.deb … Unpacking sublime-text (3211) … Setting up sublime-text (3211) … Processing triggers for desktop-file-utils (0.24-1ubuntu1) … Processing triggers for mime-support (3.63ubuntu1) … Processing triggers for hicolor-icon-theme (0.17-2) … Processing triggers for gnome-menus (3.32.0-1ubuntu1) …
That's it! Sublime Text 3 is now installed and can be started using the subl command:
My primary environment is macOS, but it's comforting to know that I can fall back on Dell XPS laptop with Ubuntu to edit some Ansible playbooks in a similar way.
Leave a Reply