Jai le Leu

integre java depuis le vagrant up

1 -#!/usr/bin/env bash
2 -fakeroot -- make-jpkg /vagrant_data/jdk-8u102-linux-x64.tar.gz << EOF
3 -
4 -
5 -EOF
6 -sudo dpkg -i oracle-java8-jdk_8u102_amd64.deb
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 +export DEBIAN_FRONTEND=noninteractive
3 +
2 sudo cp /etc/apt/sources.list sources.list.tmp 4 sudo cp /etc/apt/sources.list sources.list.tmp
3 sudo sed 's/ main/ main contrib/g' < sources.list.tmp > /etc/apt/sources.list 5 sudo sed 's/ main/ main contrib/g' < sources.list.tmp > /etc/apt/sources.list
4 sudo rm sources.list.tmp 6 sudo rm sources.list.tmp
5 -export DEBIAN_FRONTEND=noninteractive 7 +
8 +sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
9 +sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
10 +sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
11 +
12 +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
13 +
6 sudo apt-get update 14 sudo apt-get update
7 sudo apt-get -y upgrade 15 sudo apt-get -y upgrade
8 -sudo apt-get -y install java-package 16 +
9 -sudo apt-get -y install libgl1-mesa-glx libgtk2.0-0 libxslt1.1 libxtst6 libxxf86vm1 17 +sudo apt-get -y install oracle-java8-installer
10 -echo 'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64' >> .bashrc 18 +sudo apt-get -y install oracle-java8-set-default
11 -sudo apt-get -y install x-window-system
12 sudo apt-get -y install maven 19 sudo apt-get -y install maven
20 +
21 +cp .bashrc .bashrc_1
22 +sed 's/#alias/alias/g' < .bashrc_1 > .bashrc_2
23 +sed 's/#force_color_prompt/force_color_prompt/g' < .bashrc_2 > .bashrc
24 +rm .bashrc_*
25 +
26 +echo 'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle' >> .bashrc
27 +
28 +
......