Install docker ubuntu

 sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status docker Eksekusi tanpa sudo sudo usermod -aG docker ${USER} su - ${USER} groups sudo usermod -aG docker username

Install Java (JDK21) dan Setting Environment Variable pada Ubuntu 22.04



Masuk ke directory /tmp

$ cd /tmp

Download jdk21

$ wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb

Install package jdk20

$ sudo apt-get -qqy install ./jdk-21_linux-x64_bin.deb

 Kemudian setting environment variable,

$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21.0.4-oracle-x64/bin/java 1919

$ sudo nano /etc/environment

Tambahkan baris :

JAVA_HOME="/usr/lib/jvm/jdk-21.0.4-oracle-x64/bin/java"

Lihat hasil setting :

$ source /etc/environment

$ echo $JAVA_HOME

Comments

Popular posts from this blog

Install Maven pada Ubuntu 22.04

Install SSL

Install docker ubuntu