# Le 13.8.2019. Script d'installation automatique d'un certain nombre de logiciels.
# Pour KDE KUbuntu 18.04
# pour l'exécuter, taper : 
# sudo sh ./apt_1804_get_kde.sh

echo ==================================================================
echo "Adjonction de dépots."
echo "c.f. : https://doc.ubuntu-fr.org/avidemux"
echo "Repository pour : SimpleScreenRecorder ; FreeCAD ; AviDemux2.6"
echo ==================================================================
add-apt-repository -y ppa:rebuntu16/avidemux+unofficial
add-apt-repository -y ppa:maarten-baert/simplescreenrecorder
add-apt-repository -y ppa:freecad-maintainers/freecad-stable
add-apt-repository -y ppa:rebuntu16/avidemux+unofficial
### A mettre plus haut si utilisé add-apt-repository ppa:nilarimogard/webupd8

echo ==================================================================
echo "Début des mise à jour."
echo ==================================================================
apt-get update
# dpkg --configure -a
echo ==================================================================
echo "Mise à jour, faites."
echo ==================================================================

echo ==================================================================
echo "suppléments restreint kubuntu  à faire depuis la logitèque Ubuntu"
echo ==================================================================
# apt-get -y install kubuntu-restricted-extras
# apt-get -y install kubuntu-restricted-addons

#echo ==================================================================
echo "gparted,  pour gérer les partitions disques"
#echo "partitionmanager,  pour gérer les partitions disques KDE"
#echo ==================================================================
apt-get -y install gparted 
#apt-get -y install partitionmanager   pas utile, car en fait moins que gparted

echo ==================================================================
echo "pas pour KDE : gnome-disk-utility, ne vient pas dans le menu."
echo "A rajouter manuellement \"Disques\" dans \"Système\" à l aide de"
echo "\"Menu principal\"  du Gestionnaire de paramètres."
echo ==================================================================
apt-get -y install gnome-disk-utility

echo ==================================================================
echo "synaptic,  pour installer de nouveau paquets, "
echo "C'est un complément à la \"Logitèque Ubuntu\""
echo ==================================================================
apt-get -y install synaptic

echo ==================================================================
echo "kdesudo,  permet de lancer des applications graphique en mode superutilisateur"
echo "sous gnome et xfce, on utilise : gksu"
echo "EXISTE PLUS"
echo ==================================================================
#apt-get -y install kdesudo

echo ==================================================================
echo "gnome-commander, gedit, leafpad et geany" 
echo "gestionnaire de fichiers et éditeur de textes"
echo ==================================================================
apt-get -y install gnome-commander
apt-get -y install gedit
apt-get -y install leafpad
apt-get -y install geany

echo ==================================================================
echo "Krusader, gestionnaire de fichiers de KDE"
echo ==================================================================
apt-get -y install krusader

echo ==================================================================
echo "Midnight Commander"
echo ==================================================================
apt-get -y install mc

echo ==================================================================
echo "Version française de Thunderbird"
echo ==================================================================
apt-get -y install thunderbird-locale-fr

echo ==================================================================
echo "filezilla, pour transférer des fichiers par FTP sur Internet."
echo ==================================================================
apt-get -y install filezilla

echo ==================================================================
echo "wine, pour exécuter des applications Windows sous linux."
echo ==================================================================
apt-get -y install wine-stable

echo ==================================================================
echo "vlc,  pour visualiser des vidéos"
echo ==================================================================
apt-get -y install vlc

echo ==================================================================
echo "alacarte = \"menu principal\",  pour éditer les menus"
echo ==================================================================
apt-get -y install alacarte

echo ==================================================================
echo "cups-pdf, pour imprimer dans un fichier PDF"
echo ==================================================================
apt-get -y install cups-pdf

echo ==================================================================
echo "shutter, pour des capture d écran"
echo ==================================================================
apt-get -y install shutter

echo ==================================================================
echo "kgrab, pour des capture d écran sous KDE"
echo "EXISTE PLUS"
echo ==================================================================
#apt-get -y install kgrab

echo ==================================================================
echo "lame,  pour gérer le mp3"
echo ==================================================================
apt-get -y install lame

echo ==================================================================
echo "audacity, éditeur de sons"
echo ==================================================================
apt-get -y install audacity

echo ==================================================================
echo "hplip et hplib-gui,  pour gérer les imprimantes HP"
echo ==================================================================
apt-get -y install hplip
apt-get -y install hplip-gui

echo ==================================================================
echo "mirage, un gestionnaire pour visualiser des images"
echo "Fonctionne en Python 2 par défaut."
echo ==================================================================
apt-get -y install mirage

echo ==================================================================
echo "PAS POUR KDE : gpicview, pour visualiser des images"
echo ==================================================================
# apt-get -y install gpicview

echo ==================================================================
echo "PAS POUR KDE : xpdf, pour traiter des fichiers .pdf"
echo ==================================================================
#apt-get -y install xpdf

echo ==================================================================
echo "Quelques jeux et divertissements"
echo ==================================================================

echo ==================================================================
echo "stellarium, un planétarium"
echo ==================================================================
apt-get -y install stellarium

echo ==================================================================
echo "celestia, pour voyager dans notre galaxy et la découvrire"
echo "N'est plus disponible sous forme de paquet."
echo "c.f. : https://doc.ubuntu-fr.org/celestia"
echo "La version Windows 1.6.1 32 bits fonctionne sous WINE"
echo ==================================================================
# apt-get -y install celestia

echo ==================================================================
echo "Maxima et l'interface wxMaxima, calcul formel comme mathematica et maple"
echo ==================================================================
apt-get -y install wxmaxima
apt-get -y install maxima
#apt-get -y install maxima  ## est-ce utile, si wxmaxima est installé ?

echo ==================================================================
echo childsplay, divers jeux pour enfants
echo ==================================================================
apt-get -y install childsplay

echo ==================================================================
echo "kgeography et ktouch, d'autres jeux."
echo ==================================================================
apt-get -y install kgeography
apt-get -y install ktouch

echo ==================================================================
echo "gperiodic, kalzium, deux tables périodique des éléments"
echo ==================================================================
apt-get -y install gperiodic
apt-get -y install kalzium

echo ==================================================================
echo "gnomine, le jeu de démineur sous linux"
echo ==================================================================
#apt-get -y install gnomine   EXISTE PLUS
apt-get -y install gnome-mines

echo ==================================================================
echo "Installation de libreoffice"
echo ==================================================================
#add-apt-repository -y ppa:libreoffice/libreoffice-4-2
#apt-get update
#apt-get -y install libreoffice
# pour installer l'interface en français.
apt-get -y install libreoffice-l10n-fr 
# pour installer l'aide localement, sans devoir accéder au Web.
apt-get -y install libreoffice-help-fr
# pour installer le solveur.
apt-get -y install libreoffice-nlpsolver

echo ==================================================================
echo "Installation de Java icedtea-plugin et default-jre"
echo ==================================================================
apt-get -y install icedtea-plugin
apt-get -y install default-jre
# c.f. : http://doc.ubuntu-fr.org/java
# pour la version propriétaire, c.f. : 
# http://doc.ubuntu-fr.org/java#installation_de_la_version_proprietaire

echo ==================================================================
echo "Installation de Verbiste"
echo ==================================================================
apt-get -y install verbiste
apt-get -y install verbiste-gnome

echo ==================================================================
echo "k3b, pour KDE comme brasero et xfburn, pour graver des CD et DVD"
echo ==================================================================
apt-get -y install k3b

echo ==================================================================
echo "pour installer un environnement de developpement C++"
echo "build-essential  pour le compilateur"
echo "codeblocks  pour l'environnement"
echo ==================================================================
apt-get -y install build-essential codeblocks

echo ==================================================================
echo "xosview, information sur l'activité des processeurs, des mémoires et de l'internet"
echo ==================================================================
apt-get -y install xosview

echo ==================================================================
echo "kinfocenter, information sur le système, la mémoire, etc."
echo ==================================================================
apt-get -y install kinfocenter

echo ==================================================================
echo "SimpleScreenRecorder, enregistrement de l'écran"
echo ==================================================================
apt-get -y install simplescreenrecorder
# Si vous voulez enregistrer des applications OpenGL 32 bits sur un système 64 bits :
##apt-get -y install simplescreenrecorder-lib:i386

echo ==================================================================
echo "Vokoscreen, pour enregistrer l'écran"
echo ==================================================================
apt-get -y install vokoscreen

echo ==================================================================
echo "avidemux, un éditeur vidéos"
echo ==================================================================
apt-get -y install avidemux2.7-qt5

echo ==================================================================
echo "Terminal de xfce"
echo ==================================================================
apt-get -y install xfce4-terminal

echo ==================================================================
echo "Arduino"
echo ==================================================================
apt-get -y install arduino

echo ==================================================================
echo "HandBrake, éditeur vidéo"
echo ==================================================================
apt-get -y install handbrake

echo ==================================================================
echo "SciLab, cousin de MatLab, simulation scientifique"
echo ==================================================================
apt-get -y install scilab

echo ==================================================================
echo "Table de caractères, c.f. https://doc.ubuntu-fr.org/gucharmap"
echo ==================================================================
apt-get -y install gucharmap

echo ==================================================================
echo "Virtualbox, virtualisation"
echo ==================================================================
apt-get -y install virtualbox

echo ==================================================================
echo "Chromium-browser ,  une version open source de Chrome."
echo ==================================================================
apt-get -y install chromium-browser

echo ==================================================================
echo "Blender"
echo ==================================================================
apt-get -y install blender
apt-get -y install blender-data

echo ==================================================================
echo "Installation de FreeCAD, conception en 3D"
echo ==================================================================
apt-get -y install freecad

echo ==================================================================
echo "Installation de 'net-tools' pour 'ifconfig', 'arp', 'netstat', rarp', 'nameif' et 'route'"
echo ==================================================================
apt-get -y install net-tools

echo ==================================================================
echo "Installation de 'arp-scan'"
echo ==================================================================
apt-get -y install arp-scan

echo ==================================================================
echo "Installation de aseba, pour Thymio"
echo ==================================================================
apt-get -y install aseba

echo ==================================================================
echo "Lazarus, pour free pascal"
echo ==================================================================
apt-get -y install lazarus

echo ==================================================================
echo "IDLE-Python3.6"
echo ==================================================================
#apt-get -y install idle.python3.6
apt-get -y install idle

echo ==================================================================
echo "Python 3"
echo ==================================================================
apt-get -y install python3

echo ==================================================================
echo "Python3-pip, installateur de librairies Python"
echo ==================================================================
apt-get -y install python3-pip

echo ==================================================================
echo "python3-pygame, une librairie pour des jeux en Python"
echo ==================================================================
apt-get -y install python3-pygame

echo ==================================================================
echo "timidity, pour manipuler des fichiers .midi"
echo ==================================================================
apt-get -y install timidity

echo ==================================================================
echo "spyder3, IDE de développement Python"
echo ==================================================================
apt-get -y install spyder3

echo ==================================================================
echo "Installation de paquets du dossier : Disks"
echo "##########################################"
echo ==================================================================
echo .

echo ==================================================================
echo "geogebra, géométrie interactive, à voir quelle version est installée ?"
echo ==================================================================
#apt-get -y install geogebra  Install la version 4, trop ancienne.
dpkg -i $HOME/Disks/zkde/Geogebra/geogebra-classic_6.0.471.0-201805301433_amd64.deb

echo ==================================================================
echo "skype-ubuntu-precise_4.3.0.37-1_i386.deb"
echo ==================================================================
dpkg -i $HOME/Disks/zkde/Skype/skype*.deb

echo ==================================================================
echo "Google earth"
echo "Est intégré à Google Chrome"
echo "N'EXISTE PLUS"
echo ==================================================================
#apt-get -y install google-earth-stable

echo ==================================================================
echo "Google chrome"
echo "Pose des problème d'installation"
echo "Mais fini par fonctionner"
echo "paquet .deb est installé"
echo ==================================================================
#apt-get -y install google-chrome-stable

echo ==================================================================
echo "google-chrome-stable_current_amd64.deb"
echo ==================================================================
dpkg -i $HOME/Disks/zkde/Google_chrome/google-chrome-stable_current_amd64.deb

echo ==================================================================
echo "opera-stable_53.0.2907.68_amd64.deb, un autre navigateur intéressant"
echo ==================================================================
dpkg -i $HOME/Disks/zkde/Opera/opera*.deb

echo ==================================================================
echo "Pour réparer d'éventuelles installation ratées"
echo ==================================================================
apt --fix-broken install


echo ==================================================================
echo "a) Installer LibreOffice/grammalect.oxt pour la grammaire"
echo "b) Configurer Firefox, pour la page d'accueil"
echo "c) Configurer Firefox, pour les onglets"
echo "d) Configurer Firefox, pour ouvrir dans le dernier tab"
echo "e) Configurer Firefox, pour pour ouvrir un .pdf dans evince"
echo "f) Définir quelques marques de page par défaut."
echo "g) Ajouter Firebug à Firefox."
#echo "h) On peut aussi ajouter Tiny JavaScript Debugger"
echo "°) On peut aussi ajouter Addblocks. "
echo " "
echo ==================================================================

echo ==================================================================
echo "A CONTINUER EN TAPANT : sh ./apt_1804_tar_kde.sh  en mode utilisateur normal."
echo ==================================================================

