source: BOL/script_install/install_ubuntu22_packages.sh @ 4768

Last change on this file since 4768 was 4760, checked in by fhourdin, 2 years ago

Nouvelles versions testees PCs enseignement

  • Property svn:executable set to *
File size: 5.3 KB
Line 
1#!/bin/bash
2
3################################################################
4# Complément d'installation Ubuntu22
5################################################################
6
7base=1
8compilation=1
9hightune=1
10bureautique=1
11latex=1
12graphique=1
13ferret=1
14system=1
15son=0
16acroread=1
17workspace_matrix=0
18
19install="sudo apt install -y"
20sudo apt update
21sudo apt upgrade
22
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#===============================================================================
135if [ $workspace_matrix = 1 ] ; then 
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
156fi
Note: See TracBrowser for help on using the repository browser.