Commit b5f93772 authored by Julien SADAOUI's avatar Julien SADAOUI
Browse files

Update install.sh (AdoptOpenJDK 11 + oh-my-zsh)

parent abe4764e
......@@ -14,19 +14,29 @@ adduser reactive-programming sudo
# Install Git
apt-get install -y git
# Install Java 11
apt-get install -y openjdk-11-jdk
# install Java 11
wget -q -O - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt-get update
sudo apt-get install -y adoptopenjdk-11-hotspot
sudo update-java-alternatives -s adoptopenjdk-11-hotspot-amd64
# Install zsh
apt-get install -y zsh
# install oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git /home/reactive-programming/.oh-my-zsh
cp /home/reactive-programming/.oh-my-zsh/templates/zshrc.zsh-template /home/reactive-programming/.zshrc
chsh -s /bin/zsh reactive-programming
echo 'SHELL=/bin/zsh' >> /etc/environment
# CODING DOJO
mkdir install_tools
cd install_tools
# Install IntelliJ
wget https://download.jetbrains.com/idea/ideaIC-2019.2.4.tar.gz
tar -xzvf ideaIC-2019.2.4.tar.gz -C /opt
wget https://download.jetbrains.com/idea/ideaIC-2019.3.2.tar.gz
tar -xzvf ideaIC-2019.3.2.tar.gz -C /opt
# Clone project
su - reactive-programming -c "cd coding-dojo && git clone https://gitlab.ippon.fr/coding-dojo/reactive-programming.git"
......@@ -36,8 +46,8 @@ cat > /usr/share/applications/intellij.desktop <<EOF
Type=Application
Terminal=false
Name=Intellij
Icon=/opt/idea-IC-192.7142.36/bin/idea.png
Exec=/opt/idea-IC-192.7142.36/bin/idea.sh
Icon=/opt/idea-IC-193.6015.39/bin/idea.png
Exec=/opt/idea-IC-193.6015.39/bin/idea.sh
EOF
cat > /usr/share/applications/reactive-programming.desktop <<EOF
......@@ -45,8 +55,8 @@ cat > /usr/share/applications/reactive-programming.desktop <<EOF
Type=Application
Terminal=false
Name=Reactive Programming
Icon=/opt/idea-IC-192.7142.36/bin/idea.png
Exec=/opt/idea-IC-192.7142.36/bin/idea.sh coding-dojo/reactive-programming
Icon=/opt/idea-IC-193.6015.39/bin/idea.png
Exec=/opt/idea-IC-193.6015.39/bin/idea.sh coding-dojo/reactive-programming
EOF
cat > /home/reactive-programming/Bureau/rxjava-docs.desktop <<EOF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment