13 Oct 2017

How to install Sublime Text 2 or 3 on ubuntu ?

No matter which method you choose, you first need to install Java. It’s recommended to install Oracle Java, because it has a performance edge over OpenJDK. Run the following commands in terminal to install it from PPA.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install java-common oracle-java8-installer
During the installation process you will need to accept the Oracle License agreement. Once installed we need to set Java environment variables such as
JAVA_HOME on Ubuntu 16.04/17.04.
sudo apt-get install oracle-java8-set-default
source /etc/profile
The above two commands will set the correct Java environment variables.

Install via the Package Manager(apt-get):
Simply add to your packages:
For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
For Sublime-Text-3:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Run Sublime-Text on terminal
subl

No comments:

Post a Comment