Changeset 4760 for BOL


Ignore:
Timestamp:
Dec 6, 2023, 12:30:56 PM (6 months ago)
Author:
fhourdin
Message:

Nouvelles versions testees PCs enseignement

Location:
BOL/script_install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/Install_PC_Ubuntu22_Howto

    r4405 r4760  
    1111==================================
    1212lancer le script
    13 http://lmdz.lmd.jussieu.fr/pub/env/install_ubuntu22_packages.sh
     13http://lmdz.lmd.jussieu.fr/pub/script_install/install_ubuntu22_packages.sh
    1414qui va installer tous les pacquets nécessaires et aussi pas mal de
    1515bureautique et paquets graphiques.
  • BOL/script_install/install_ubuntu22_packages.sh

    r4405 r4760  
    55################################################################
    66
     7base=1
     8compilation=1
     9hightune=1
     10bureautique=1
     11latex=1
     12graphique=1
     13ferret=1
     14system=1
     15son=0
     16acroread=1
    717workspace_matrix=0
    818
     
    1121sudo apt upgrade
    1222
    13 # Base :
    14 # ======
    15 $install locate
    16 $install ncftp vim nfs-common
    17 # keychain semble être devenu obsolète.
    18 # ksh et csh inutile ?
    19 
    20 # Pour compilation dont LMDZ
    21 # ==========================
    22 $install cdo nco netcdf-bin libnetcdf-dev ncview   # netcdf
    23 $install gfortran g++ libblas-dev subversion git   # fortran et svn
    24 $install openmpi-common libopenmpi-dev openmpi-bin # openmpi
    25 $install make cmake
    26 
    27 
    28 # Pour HitghTune
    29 # ==============
    30 $install r-base
    31 $install pip
    32 $install python3-pip
    33 
    34 # bureautique
    35 # ===========
    36 $install xournal
    37 $install unoconv # conversion associee a libreoffice
    38 $install dos2unix
    39 $install qpdfview # un visualiseur remplissant mieux les pdf
    40 $install pdftk # Autre package de concatenation de pdf
    41 $install chromium-browser
    42 
    43 # LaTeX dont pdfjam
    44 # =================
    45 $install texlive-base texlive-latex-extra texlive-lang-french latexdiff  texlive-publishers
    46 $install latexmk texlive-science
    47 $install latex2html
    48 $install texlive-extra-utils texlive-font-utils # pdfjam
    49 
    50 # graphique / video
    51 # =================
    52 $install xfig grads imagemagick gv grace           # graphique
    53 $install ferret-vis
    54 $install inkscape gimp                             # dessin
    55 $install gifsicle
    56 $install ffmpeg
    57 $install winff  # autre convertisseur video
    58 
    59 # Finalisation de l'installation de ferret-vis
    60 # ============================================
    61 # Active le bon environnement pour ferret
    62 # Attention, pour que ca fonctionne completement (notamment le trace
    63 # des frontieres) il manque des données.
    64 # Pour le moment, on va chercher ces données dans le répertoire de
    65 # l'installation conda. On a donc une double installation
    66 sed -i'' -e '/ferret-vis/d' ~/.bashrc
    67 cat <<eod>> ~/.bashrc
    68 . /usr/share/ferret-vis/bin/ferret_paths # ferret-vis
    69 alias ferret=ferret_c
    70 export FER_DATA=". \$FER_DATA /home/util1/miniconda3/pkgs/ferret_datasets-7.4-1/share/fer_dsets/data" # ferret-vis
    71 eod
    72 
    73 
    74 
    75 
    76 # Outils systeme / collaboratifs
    77 # ==============================
    78 $install traceroute # aide systeme
    79 $install synaptic gdebi                            # install paquets
    80 $install tmate
    81 
    82 # Son
    83 #=====
    84 # $install audacity
    85 
    86 # Acroread
    87 # ========
    88 sudo dpkg --add-architecture i386
    89 $install libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
    90 $install libatk-adaptor:i386 libgdk-pixbuf2.0-0:i386
    91 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
    92 sudo dpkg -i /tmp/adobe.deb
    93 
    94 
     23#===============================================================================
     24if [ $base = 1 ] ; then
     25    # Base :
     26    # ======
     27    $install locate
     28    $install ncftp vim nfs-common
     29    # keychain semble etre devenu obsolete.
     30    # ksh et csh inutile ?
     31    for file in /home/*/.bashrc ; do
     32        cat >> $file <<........eod
     33        alias rm='rm -i'
     34        alias cp='cp -i'
     35        alias mv='mv -i'
     36........eod
     37    done
     38fi
     39#===============================================================================
     40if [ $compilation = 1 ] ; then
     41    # Pour compilation dont LMDZ
     42    # ==========================
     43    $install cdo nco netcdf-bin libnetcdf-dev libnetcdff-dev ncview   # netcdf
     44    $install gfortran g++ libblas-dev subversion git git-lfs   # fortran et svn
     45    $install openmpi-common libopenmpi-dev openmpi-bin # openmpi
     46    $install make cmake
     47fi
     48#===============================================================================
     49if [ $hightune = 1 ] ; then
     50    # Pour HitghTune
     51    # ==============
     52    $install r-base
     53    $install pip
     54    $install python3-pip
     55fi
     56#===============================================================================
     57if [ $bureautique = 1 ] ; then
     58    # bureautique
     59    # ===========
     60    $install xournal
     61    $install unoconv # conversion associee a libreoffice
     62    $install dos2unix
     63    $install qpdfview # un visualiseur remplissant mieux les pdf
     64    $install pdftk # Autre package de concatenation de pdf
     65    $install chromium-browser
     66    $install pandoc # markdown
     67fi
     68#===============================================================================
     69if [ $latex = 1 ] ; then
     70    # LaTeX dont pdfjam
     71    # =================
     72    $install texlive-base texlive-latex-extra texlive-lang-french latexdiff  texlive-publishers
     73    $install latexmk texlive-science
     74    $install latex2html
     75    $install texlive-extra-utils texlive-font-utils # pdfjam
     76fi
     77#===============================================================================
     78if [ $graphique = 1 ] ; then
     79    # graphique / video
     80    # =================
     81    $install xfig grads imagemagick gv grace           # graphique
     82    $install inkscape gimp                             # dessin
     83    $install gifsicle
     84    $install ffmpeg
     85    $install winff  # autre convertisseur video
     86fi
     87#===============================================================================
     88if [ $ferret = 1 ] ; then
     89    $install ferret-vis ferret-datasets
     90    # Finalisation de l'installation de ferret-vis
     91    # ============================================
     92    # Active le bon environnement pour ferret
     93    # Attention, pour que ca fonctionne completement (notamment le trace
     94    # des frontieres) il manque des données.
     95    # Pour le moment, on va chercher ces données dans le répertoire de
     96    # l'installation conda. On a donc une double installation
     97    for file in /home/*/.bashrc ; do
     98        sed -i'' -e '/ferret-vis/d' $file
     99        cat <<........eod>> $file
     100        . /usr/share/ferret-vis/bin/ferret_paths # ferret-vis
     101        alias ferret=ferret_c
     102        export FER_DATA=". \$FER_DATA"
     103........eod
     104    done
     105    cd /usr/share/ferret-vis
     106    wget http://www.lmd.jussieu.fr/~lmdz/data_ferret.tar
     107    tar xvf data_ferret.tar
     108    \rm -f data_ferret.tar
     109fi
     110#===============================================================================
     111if [ $system = 1 ] ; then
     112    # Outils systeme / collaboratifs
     113    # ==============================
     114    $install traceroute # aide systeme
     115    $install synaptic gdebi                            # install paquets
     116    $install tmate
     117fi
     118#===============================================================================
     119if [ $son = 1 ] ; then
     120    # Son
     121    #=====
     122    $install audacity
     123fi
     124#===============================================================================
     125if [ $acroread = 1 ] ; then
     126    # Acroread
     127    # ========
     128    sudo dpkg --add-architecture i386
     129    $install libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
     130    $install libatk-adaptor:i386 libgdk-pixbuf2.0-0:i386
     131    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
     132    sudo dpkg -i /tmp/adobe.deb
     133fi
     134#===============================================================================
    95135if [ $workspace_matrix = 1 ] ; then
    96 
    97 # Firefox
    98 # =======
    99 # Reinstallation d’une version de firefox pour permettre le multigrille
    100 # https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
    101 sudo snap remove firefox
    102 sudo apt remove firefox
    103 sudo add-apt-repository ppa:mozillateam/ppa
    104 sudo cat <<eod> /tmp/mozillateamppa
    105 Package: firefox*
    106 Pin: release o=LP-PPA-mozillateam
    107 Pin-Priority: 501
    108 eod
    109 sudo cp /tmp/mozillateamppa /etc/apt/preferences.d/
    110 sudo apt install -y chrome-gnome-shell
    111 sudo apt install -y firefox
    112 
    113 echo Run firefox https://extensions.gnome.org/extension/1485/workspace-matrix/
    114 echo first clicks in the top frame, install gnome extension, or so.
    115 echo then reload browser
    116 echo then click on the OFF button
    117 
     136    # Firefox
     137    # =======
     138    # Reinstallation d’une version de firefox pour permettre le multigrille
     139    # https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
     140    sudo snap remove firefox
     141    sudo apt remove firefox
     142    sudo add-apt-repository ppa:mozillateam/ppa
     143    sudo cat <<....eod> /tmp/mozillateamppa
     144    Package: firefox*
     145    Pin: release o=LP-PPA-mozillateam
     146    Pin-Priority: 501
     147....eod
     148    sudo cp /tmp/mozillateamppa /etc/apt/preferences.d/
     149    sudo apt install -y chrome-gnome-shell
     150    sudo apt install -y firefox
     151   
     152    echo Run firefox https://extensions.gnome.org/extension/1485/workspace-matrix/
     153    echo first clicks in the top frame, install gnome extension, or so.
     154    echo then reload browser
     155    echo then click on the OFF button
    118156fi
Note: See TracChangeset for help on using the changeset viewer.