Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active August 29, 2015 14:16
Show Gist options
  • Save jansanchez/20007d271bfef7109aa7 to your computer and use it in GitHub Desktop.
Save jansanchez/20007d271bfef7109aa7 to your computer and use it in GitHub Desktop.
How to install JDK on Ubuntu Linux

## How to install JDK on Ubuntu Linux

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

The number "8" is variable, according to version of Java.

sudo apt-get install oracle-java8-installer

If you have multiple java installed on your system, you can select with:

sudo update-alternatives --config java

Install libstdc, libgcc1, zlib1g:i386 and libncurses5 for Android

sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

## How to install KVM in Ubuntu Linux

sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
sudo adduser name libvirtd
virsh -c qemu:///system list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment