Skip to content

Instantly share code, notes, and snippets.

@makuk66
Last active August 29, 2015 14:06
Show Gist options
  • Save makuk66/92f439ea4a987e3b5e19 to your computer and use it in GitHub Desktop.
Save makuk66/92f439ea4a987e3b5e19 to your computer and use it in GitHub Desktop.
install oracle java7
#!/bin/bash -eux
apt-get install -y git-core curl wget python-yaml build-essential libssl-dev
locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
apt-get -y install python-software-properties software-properties-common
hash -r
add-apt-repository ppa:webupd8team/java
apt-get update && apt-get -y upgrade
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get -y install oracle-java7-installer
update-alternatives --display java
apt-get -y install oracle-java7-set-default && apt-get clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment