#!/bin/bash # Aide à l'installation clear sortie=false menu=$(cat <<-'EOF' clear #---------------------------------------# # Menu pour install UNBEE # #---------------------------------------# (0) - UBUNTU MAJ système & install par défaut (1) - X UBUNTU MAJ système & install par défaut (2) - L UBUNTU MAJ système & install par défaut (3) - Divers applis suppl (4) - Cacher l'utilisateur UNBEE (5) - Applications Asso (6) - Installer quelques jeux (7) - Programmation (9) - (10) - force upgrade 20.04 à 22.04 (etape 1) (11) - force upgrade nettoyage système (*) - Quitter <<<<<<<< réponse ? ---------------------- EOF ) incontournables () { # sudo cp -f files/sources.list.2004 /etc/apt/sources.list sudo sed -i.bak '/^# deb .*partner/ s/^# //' /etc/apt/sources.list # Decrease the swap use sudo cp -f files/sysctl.conf /etc/sysctl.conf sudo mkdir /usr/share/avatar sudo cp files/avatar/*.* /usr/share/avatar # install app sudo apt install -y synaptic libreoffice shotwell inkscape gimp glabels cheese easytag gnome-software sudo apt install -y hardinfo numlockx audacity fonts-aenigma vlc openclipart ntfs-3g plank xournal pdfmod sudo apt install -y gimp-data-extras chromium-browser openshot-qt sweethome3d dia sudo apt install -y scribus freeplane basket k3b feedreader radiotray sweethome3d-furniture-editor sudo apt install -y kazam onboard gstreamer1.0-libav rhythmbox vorbis-tools sudo apt install -y build-essential x264 x265 flac opus-tools lame mkvtoolnix mkvtoolnix-gui oggvideotools sudo apt install -y kde-l10n-fr language-pack-fr ginmp-help-fr verbiste verbiste-gnome sudo apt install -y libreoffice-l10n-fr thunderbird-locale-fr firefox-locale-fr chromium-browser-l10n sudo apt install -y language-pack-gnome-fr language-pack-gnome-fr-base language-pack-kde-fr mc gnome-system-monitor # Désactiver la fonction Apport - OPTIONS dans les appli autre sudo sed -i 's/enabled=1/enabled=0/' /etc/default/apport sudo systemctl disable apport.service systemctl mask apport.service mkdir ~/.config/autostart sudo apt install -y snapd gnome-software-plugin-snap filezilla youtube-dl sudo apt install -y flatpak gnome-software-plugin-flatpak pdfshuffler ffmpeg sudo apt install -y libfuse2 # appli Appimage : cf launch appimage sudo apt install -y neofetch stacer menulibre } # ****************************************************** # **************** Menu principal ********************** # ****************************************************** while [ !$sortie ] do echo "$menu"; read reponse case $reponse in # **************** 0000000000000 ********************** 0) # UBUNTU - MAJ & install applis par défaut sudo apt update && sudo apt upgrade -y sudo apt full-upgrade -y sudo cp files/bckgrd/*.* /usr/share/backgrounds sudo apt install -y ubuntu-restricted-addons ubuntu-restricted-extras sudo apt install -y nautilus-script-audio-convert easytag-nautilus nautilus-emblems sudo apt install -y nautilus-image-converter gnome-tweak-tool clamtk-gnome sudo apt install -y gnote incontournables ;; # **************** 11111111111111111 ********************** 1) # XUBUNTU - MAJ & install applis par défaut # modif du fichier sources.list avec les partenaires sudo apt update && sudo apt upgrade -y sudo cp files/bckgrd/*.jpg /usr/share/xfce4/backdrops sudo cp files/.face ~/ xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image -s "/usr/share/xfce4/backdrops/fond-ecran-orange.jpg" sudo apt install -y xubuntu-restricted-addons ubuntu-restricted-extras incontournables echo "[Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=Plank Exec=/usr/bin/plank RunHook=0 Terminal=false Hidden=false" >> ~/.config/autostart/plank.desktop chmod a+x ~/.config/autostart/plank.desktop ;; # **************** 22222222222222222222 ********************** 2) # L UBUNTU - MAJ & install applis par défaut language-selector-gnome sudo apt update && sudo apt upgrade -y sudo apt install -y plank lubuntu-restricted-addons ubuntu-restricted-extras incontournables ;; # **************** 333333333333333 ********************** 3) # Divers applis source bash/incontournable.sh sudo apt install calibre ;; # **************** 444444444444444 ********************** 4) # Personnalisation station école # source bash/ecole.sh ;; 5) # Jeux # source bash/association.sh ;; 6) # # source bash/admin.sh ;; 7) # programmation #mBlock apt install libgconf-2-4 -y dpkg -i applis/mBlock*.deb ; apt install -fy sudo apt install -y kturtle scratch bluegriffon wget www.ac-grenoble.fr/maths/scratch/scratch.zip mkdir /var/www/html sudo chmod -RC +766 /var/www/html unzip scratch.zip -d /var/www/html/scratch3/ echo "[Desktop Entry] Version=1.0 Terminal=false Exec=firefox /var/www/html/scratch3/index.html Type=Application Icon=/var/www/html/scratch3/static/favicon.ico StartupNotify=false Name=Scratch3 NoDisplay=true">> ~/Bureau/Scratch3.desktop chmod +x ~/Bureau/Scratch3.desktop firefox /var/www/html/scratch3/index.html rm scratch.zip ;; 9) # sudo apt install -y junior-games-text junior-games-sim;; 10) # force upgrade 20.04 à 22.04 sudo sed -i 's/=never/=lts/g' /etc/update-manager/release-upgrades sudo sed -i 's/=normal/=lts/g' /etc/update-manager/release-upgrades cat /etc/lsb-release sudo apt update && sudo apt upgrade -y sudo apt --purge autoremove -y sudo apt install update-manager-core -y # required for upgrade if [ ! -d ~/.config/autostart ] then mkdir ~/.config/autostart fi cp files/maj.sh ~/.config/autostart echo "[Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=MAJ Exec=sh -c $HOME/.config/autostart/maj.sh Terminal=true" >> ~/.config/autostart/MAJ.desktop chmod a+x ~/.config/autostart/MAJ.desktop chmod a+x ~/.config/autostart/maj.sh sudo reboot ;; 11) # Nettoyage système sudo apt-get -y clean sudo apt-get -y autoclean sudo apt-get -y remove sudo apt-get -y autoremove sudo apt purge ubuntu-web-launchers ;; *) # QUIT neofetch break exit 1 ;; esac done