How to install Sublime text editor 3.1.1 in Ubuntu 18.04

To install Sublime Text Editor 3.1.1 in Ubuntu 18.04

The Sublime Text editor is a lightweight, multi-platform, text editor which is widely used for writing programming and markup languages and it is a feature-rich extension of vim text editor. It does not require any plugins and is considered to be a sophisticated text editor application widely used for CSS3 and HTML5 code. This tutorial explains how to install the Sublime text editor in Ubuntu.

Installation

Let' s first add the key file for Sublime text editor by making use of the following command.

root@linuxhelp1:~# wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
OK

And then, proceed to add the repository which contains sublime text package.

root@linuxhelp1:~# apt-add-repository " deb https://download.sublimetext.com/ apt/stable/" 
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                    
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease                            
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease                          
Get:5 https://download.sublimetext.com apt/stable/ InRelease [2,562 B]               
Get:6 https://download.sublimetext.com apt/stable/ Packages [725 B]
Fetched 3,287 B in 1s (2,419 B/s)
Reading package lists... Done

Now you can proceed to install the sublime text using the following command.

root@linuxhelp1:~# apt-get install sublime-text -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following packages were automatically installed and are no longer required:

  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap
Use ' sudo apt autoremove'  to remove them.

The following NEW packages will be installed:

.
.
Selecting previously unselected package sublime-text.
(Reading database ... 167405 files and directories currently installed.)
Preparing to unpack .../sublime-text_3176_amd64.deb ...
Unpacking sublime-text (3176) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up sublime-text (3176) ...

After installation, you can access the application from the menu.


You can verify the version by navigating to help menu.

With this, the method to install Sublime text editor 3.1.1 in Ubuntu 18.04 comes to an end.

FAQ
Q
How to compile the source code of Sublime text editor from command line?
A
For compile the source code of Sublime text, use the following command as given below,
sudo apt-get install libtool m4 gcc
cd /tmp
wget https://github.com/cherokee/webserver/archive/master.zip /> unzip master.zip
cd webserver-master
./a
Q
Does it have a adobe standards ?
A
No the options are limited while comparing to adobe products, But its better photo editor for linux
Q
What is the Plugins life cycle of sublime text editor?
A
At importing time, plugins may not call any API functions, with the exception of sublime.version(), sublime.platform(), sublime.architecture() and sublime.channel().

If a plugin defines a module level function plugin_loaded(), this will be called when the API is ready to use. Plugins may also define plugin_unloaded(), to get notified just before the plugin is unloaded.
Q
What is Graphical issues in Sublime text editor?
A
Most graphical issues, such as the window appearing black, or flickering when opening menus, can be resolved by running in OpenGL mode. There are two ways to do this:

Run with --opengl on the command line, OR
Select the menu item Preferences/General Preferences, and add the line 'renderer opengl' to the end, then restart.
Q
Can Sublime Text be run from a USB key?
A
Yes. Sublime Text may be installed to any location, however it will read and write your settings to %APPDATA%\Sublime Text. You can change this to use a directory on the USB key, by running Sublime Text with the --data flag, for example:

SublimeText.exe --data "E:\Sublime Text Data"