Index: BOL/script_install/Install_PC_Ubuntu22_Howto
===================================================================
--- BOL/script_install/Install_PC_Ubuntu22_Howto	(revision 4752)
+++ BOL/script_install/Install_PC_Ubuntu22_Howto	(revision 4760)
@@ -11,5 +11,5 @@
 ==================================
 lancer le script
-http://lmdz.lmd.jussieu.fr/pub/env/install_ubuntu22_packages.sh
+http://lmdz.lmd.jussieu.fr/pub/script_install/install_ubuntu22_packages.sh
 qui va installer tous les pacquets nécessaires et aussi pas mal de
 bureautique et paquets graphiques.
Index: BOL/script_install/install_ubuntu22_packages.sh
===================================================================
--- BOL/script_install/install_ubuntu22_packages.sh	(revision 4752)
+++ BOL/script_install/install_ubuntu22_packages.sh	(revision 4760)
@@ -5,4 +5,14 @@
 ################################################################
 
+base=1
+compilation=1
+hightune=1
+bureautique=1
+latex=1
+graphique=1
+ferret=1
+system=1
+son=0
+acroread=1
 workspace_matrix=0
 
@@ -11,108 +21,136 @@
 sudo apt upgrade
 
-# Base :
-# ======
-$install locate
-$install ncftp vim nfs-common
-# keychain semble Ãªtre devenu obsolÃ¨te.
-# ksh et csh inutile ?
-
-# Pour compilation dont LMDZ
-# ==========================
-$install cdo nco netcdf-bin libnetcdf-dev ncview   # netcdf
-$install gfortran g++ libblas-dev subversion git   # fortran et svn
-$install openmpi-common libopenmpi-dev openmpi-bin # openmpi
-$install make cmake
-
-
-# Pour HitghTune
-# ==============
-$install r-base
-$install pip
-$install python3-pip
-
-# bureautique
-# ===========
-$install xournal
-$install unoconv # conversion associee a libreoffice
-$install dos2unix
-$install qpdfview # un visualiseur remplissant mieux les pdf
-$install pdftk # Autre package de concatenation de pdf
-$install chromium-browser
-
-# LaTeX dont pdfjam
-# =================
-$install texlive-base texlive-latex-extra texlive-lang-french latexdiff  texlive-publishers
-$install latexmk texlive-science
-$install latex2html
-$install texlive-extra-utils texlive-font-utils # pdfjam
-
-# graphique / video
-# =================
-$install xfig grads imagemagick gv grace           # graphique
-$install ferret-vis
-$install inkscape gimp                             # dessin
-$install gifsicle
-$install ffmpeg
-$install winff  # autre convertisseur video
-
-# Finalisation de l'installation de ferret-vis
-# ============================================
-# Active le bon environnement pour ferret
-# Attention, pour que ca fonctionne completement (notamment le trace
-# des frontieres) il manque des données.
-# Pour le moment, on va chercher ces données dans le répertoire de
-# l'installation conda. On a donc une double installation
-sed -i'' -e '/ferret-vis/d' ~/.bashrc
-cat <<eod>> ~/.bashrc
-. /usr/share/ferret-vis/bin/ferret_paths # ferret-vis
-alias ferret=ferret_c
-export FER_DATA=". \$FER_DATA /home/util1/miniconda3/pkgs/ferret_datasets-7.4-1/share/fer_dsets/data" # ferret-vis
-eod
-
-
-
-
-# Outils systeme / collaboratifs
-# ==============================
-$install traceroute # aide systeme
-$install synaptic gdebi                            # install paquets
-$install tmate
-
-# Son
-#=====
-# $install audacity
-
-# Acroread
-# ========
-sudo dpkg --add-architecture i386
-$install libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
-$install libatk-adaptor:i386 libgdk-pixbuf2.0-0:i386
-wget -O /tmp/adobe.deb ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
-sudo dpkg -i /tmp/adobe.deb
-
-
+#===============================================================================
+if [ $base = 1 ] ; then
+    # Base :
+    # ======
+    $install locate
+    $install ncftp vim nfs-common
+    # keychain semble etre devenu obsolete.
+    # ksh et csh inutile ?
+    for file in /home/*/.bashrc ; do
+        cat >> $file <<........eod
+        alias rm='rm -i'
+        alias cp='cp -i'
+        alias mv='mv -i'
+........eod
+    done
+fi
+#===============================================================================
+if [ $compilation = 1 ] ; then
+    # Pour compilation dont LMDZ
+    # ==========================
+    $install cdo nco netcdf-bin libnetcdf-dev libnetcdff-dev ncview   # netcdf
+    $install gfortran g++ libblas-dev subversion git git-lfs   # fortran et svn
+    $install openmpi-common libopenmpi-dev openmpi-bin # openmpi
+    $install make cmake
+fi
+#===============================================================================
+if [ $hightune = 1 ] ; then
+    # Pour HitghTune
+    # ==============
+    $install r-base
+    $install pip
+    $install python3-pip
+fi
+#===============================================================================
+if [ $bureautique = 1 ] ; then
+    # bureautique
+    # ===========
+    $install xournal
+    $install unoconv # conversion associee a libreoffice
+    $install dos2unix
+    $install qpdfview # un visualiseur remplissant mieux les pdf
+    $install pdftk # Autre package de concatenation de pdf
+    $install chromium-browser
+    $install pandoc # markdown
+fi
+#===============================================================================
+if [ $latex = 1 ] ; then
+    # LaTeX dont pdfjam
+    # =================
+    $install texlive-base texlive-latex-extra texlive-lang-french latexdiff  texlive-publishers
+    $install latexmk texlive-science
+    $install latex2html
+    $install texlive-extra-utils texlive-font-utils # pdfjam
+fi
+#===============================================================================
+if [ $graphique = 1 ] ; then
+    # graphique / video
+    # =================
+    $install xfig grads imagemagick gv grace           # graphique
+    $install inkscape gimp                             # dessin
+    $install gifsicle
+    $install ffmpeg
+    $install winff  # autre convertisseur video
+fi
+#===============================================================================
+if [ $ferret = 1 ] ; then
+    $install ferret-vis ferret-datasets
+    # Finalisation de l'installation de ferret-vis
+    # ============================================
+    # Active le bon environnement pour ferret
+    # Attention, pour que ca fonctionne completement (notamment le trace
+    # des frontieres) il manque des données.
+    # Pour le moment, on va chercher ces données dans le répertoire de
+    # l'installation conda. On a donc une double installation
+    for file in /home/*/.bashrc ; do
+        sed -i'' -e '/ferret-vis/d' $file
+        cat <<........eod>> $file
+        . /usr/share/ferret-vis/bin/ferret_paths # ferret-vis
+        alias ferret=ferret_c
+        export FER_DATA=". \$FER_DATA"
+........eod
+    done
+    cd /usr/share/ferret-vis
+    wget http://www.lmd.jussieu.fr/~lmdz/data_ferret.tar
+    tar xvf data_ferret.tar
+    \rm -f data_ferret.tar
+fi
+#===============================================================================
+if [ $system = 1 ] ; then
+    # Outils systeme / collaboratifs
+    # ==============================
+    $install traceroute # aide systeme
+    $install synaptic gdebi                            # install paquets
+    $install tmate
+fi
+#===============================================================================
+if [ $son = 1 ] ; then
+    # Son
+    #=====
+    $install audacity
+fi
+#===============================================================================
+if [ $acroread = 1 ] ; then
+    # Acroread
+    # ========
+    sudo dpkg --add-architecture i386
+    $install libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
+    $install libatk-adaptor:i386 libgdk-pixbuf2.0-0:i386
+    wget -O /tmp/adobe.deb ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
+    sudo dpkg -i /tmp/adobe.deb
+fi
+#===============================================================================
 if [ $workspace_matrix = 1 ] ; then 
-
-# Firefox
-# =======
-# Reinstallation d’une version de firefox pour permettre le multigrille
-# https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
-sudo snap remove firefox
-sudo apt remove firefox
-sudo add-apt-repository ppa:mozillateam/ppa
-sudo cat <<eod> /tmp/mozillateamppa
-Package: firefox*
-Pin: release o=LP-PPA-mozillateam
-Pin-Priority: 501
-eod
-sudo cp /tmp/mozillateamppa /etc/apt/preferences.d/
-sudo apt install -y chrome-gnome-shell
-sudo apt install -y firefox
-
-echo Run firefox https://extensions.gnome.org/extension/1485/workspace-matrix/
-echo first clicks in the top frame, install gnome extension, or so.
-echo then reload browser
-echo then click on the OFF button
-
+    # Firefox
+    # =======
+    # Reinstallation d’une version de firefox pour permettre le multigrille
+    # https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
+    sudo snap remove firefox
+    sudo apt remove firefox
+    sudo add-apt-repository ppa:mozillateam/ppa
+    sudo cat <<....eod> /tmp/mozillateamppa
+    Package: firefox*
+    Pin: release o=LP-PPA-mozillateam
+    Pin-Priority: 501
+....eod
+    sudo cp /tmp/mozillateamppa /etc/apt/preferences.d/
+    sudo apt install -y chrome-gnome-shell
+    sudo apt install -y firefox
+    
+    echo Run firefox https://extensions.gnome.org/extension/1485/workspace-matrix/
+    echo first clicks in the top frame, install gnome extension, or so.
+    echo then reload browser
+    echo then click on the OFF button
 fi
