Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
vm-environment
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jai le Leu
2016-10-04 22:03:31 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce7e0c482c6c64ff9cc1a2fc98c383c964ec0251
ce7e0c48
1 parent
0f322685
integre java depuis le vagrant up
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
data/jdk-install.sh
vagrant/bootstrap.sh
data/jdk-install.sh
deleted
100755 → 0
View file @
0f32268
#!/usr/bin/env bash
fakeroot -- make-jpkg /vagrant_data/jdk-8u102-linux-x64.tar.gz
<< EOF
EOF
sudo dpkg -i oracle-java8-jdk_8u102_amd64.deb
vagrant/bootstrap.sh
View file @
ce7e0c4
#!/usr/bin/env bash
export
DEBIAN_FRONTEND
=
noninteractive
sudo cp /etc/apt/sources.list sources.list.tmp
sudo sed
's/ main/ main contrib/g'
< sources.list.tmp > /etc/apt/sources.list
sudo rm sources.list.tmp
export
DEBIAN_FRONTEND
=
noninteractive
sudo
echo
"deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
| tee /etc/apt/sources.list.d/webupd8team-java.list
sudo
echo
"deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
| tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo
echo
oracle-java8-installer shared/accepted-oracle-license-v1-1
select
true
| sudo /usr/bin/debconf-set-selections
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install java-package
sudo apt-get -y install libgl1-mesa-glx libgtk2.0-0 libxslt1.1 libxtst6 libxxf86vm1
echo
'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64'
>> .bashrc
sudo apt-get -y install x-window-system
sudo apt-get -y install oracle-java8-installer
sudo apt-get -y install oracle-java8-set-default
sudo apt-get -y install maven
cp .bashrc .bashrc_1
sed
's/#alias/alias/g'
< .bashrc_1 > .bashrc_2
sed
's/#force_color_prompt/force_color_prompt/g'
< .bashrc_2 > .bashrc
rm .bashrc_
*
echo
'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle'
>> .bashrc
...
...
Please
register
or
login
to post a comment