Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Coding Dojo
reactive-programming
Commits
b5f93772
Commit
b5f93772
authored
Jan 22, 2020
by
Julien SADAOUI
Browse files
Update install.sh (AdoptOpenJDK 11 + oh-my-zsh)
parent
abe4764e
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/install.sh
View file @
b5f93772
...
...
@@ -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-19
2.7142
.3
6
/bin/idea.png
Exec=/opt/idea-IC-19
2.7142
.3
6
/bin/idea.sh
Icon=/opt/idea-IC-19
3.6015
.3
9
/bin/idea.png
Exec=/opt/idea-IC-19
3.6015
.3
9
/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-19
2.7142
.3
6
/bin/idea.png
Exec=/opt/idea-IC-19
2.7142
.3
6
/bin/idea.sh coding-dojo/reactive-programming
Icon=/opt/idea-IC-19
3.6015
.3
9
/bin/idea.png
Exec=/opt/idea-IC-19
3.6015
.3
9
/bin/idea.sh coding-dojo/reactive-programming
EOF
cat
>
/home/reactive-programming/Bureau/rxjava-docs.desktop
<<
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment