Setting up Linux is super easy; all you have to do is use your package manager (apt-get, yum, etc) to install the Java 12 JDK and git.
We’ll be assuming you’re using Ubuntu Bionic (18.04) or newer. If you’re using an older version of Ubuntu, you may need to add a third-party PPA to install the latest version of Java.
To install Java 12 and git, enter the following command onto your terminal:
sudo apt-get install oracle-java12-installer git