Last active
August 29, 2015 14:06
-
-
Save makuk66/92f439ea4a987e3b5e19 to your computer and use it in GitHub Desktop.
install oracle java7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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