Add AdoptOpenJDK16 and OnlyOffice installers

This commit is contained in:
Mylloon 2021-11-09 22:41:27 +01:00
parent be2e69a1e8
commit e658dd6f14
3 changed files with 37 additions and 0 deletions

View file

@ -85,6 +85,16 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
sudo apt update && sudo apt install texlive-full -y
```
- Installe Java (AdoptOpenJDK)
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installJava.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
- Installe OnlyOffice
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installOnlyOffice.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
- Rajouter les raccourcis clavier
- Pour ouvrir l'explorateur de fichiers : `nautilus`
- Pour ouvrir l'application de capture d'écran : `flameshot gui`

21
installJava.sh Normal file
View file

@ -0,0 +1,21 @@
# On récupère la dernière version d'Obsidian
wget -q https://api.github.com/repos/ibmruntimes/semeru16-binaries/releases
echo "Retrieve the last package..."
grep 'browser_download_url": *"' releases | awk '{ print substr ($0, 34 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' | sed 's/\"//' | grep 'open-jdk_x64_linux' | grep -zoP '.*gz\n' | sed -n '1p' > url
rm releases
# On télécharge le paquet
wget -q --show-progress -i url -O java.tar.gz
rm url
tar xvzf java.tar.gz
rm java.tar.gz
mv jdk* jdk-16
sudo mv jdk-16 /usr/share
export PATH=/usr/share/jdk-16/bin:$PATH
if [ -x /usr/bin/fish ] ; then
fish -c 'fish_add_path /usr/share/jdk-16/bin'
fi
# On le supprime
cd ..
rm -rf jdk-16
echo "AdoptOpenJDK 16 is now installed at /usr/share/jdk-16"

6
installOnlyoffice.sh Normal file
View file

@ -0,0 +1,6 @@
# On télécharge le paquet
wget -q --show-progress https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb -O onlyoffice.deb
# On l'installe
sudo apt install ./onlyoffice.deb -y
# On le supprime
rm onlyoffice.deb