Outils pour utilisateurs

Outils du site


ubuntu:2404:script

#!/bin/bash #### Script d'install####

# 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) - Linux MINT (3) - Applis étendues (4) - Jeux cartes et réflexion (5) - (6) - (7) - Programmation (9) - Jeux enfants (10) - (11) - MAJ et nettoyage système (*) - Quitter

«««« réponse ?


EOF )

incontournables () {

 sudo apt update && sudo apt upgrade -y	
 # 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	
 sudo apt install -y synaptic libreoffice shotwell inkscape gimp glabels cheese 
 sudo apt install -y hardinfo numlockx fonts-aenigma vlc openclipart ntfs-3g plank xournal pdfmod
 sudo apt install -y gimp-data-extras chromium-browser  k3b
 sudo apt install -y kazam  pdfmod debian-goodies gstreamer1.0-libav rhythmbox
 sudo apt install -y build-essential x264 x265 flac opus-tools vorbis-tools lame mkvtoolnix mkvtoolnix-gui oggvideotools
 sudo apt install -y kde-l10n-fr language-pack-fr ginmp-help-fr verbiste verbiste-gnome  pdfshuffler ffmpeg
 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
# Désactiver la fonction Apport
 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 screenfetch stacer -y

 echo vm.swappiness=5 | sudo tee /etc/sysctl.d/99-swappiness.conf
 echo vm.vfs_cache_pressure=50 | sudo tee -a /etc/sysctl.d/99-swappiness.conf
 sudo sysctl -p /etc/sysctl.d/99-swappiness.conf
 sudo service procps restart
 sudo swapoff -av
 sudo swapon -av
}

ubuntu () {

sudo apt install -y snapd gnome-software-plugin-snap filezilla youtube-dl  
sudo apt install -y flatpak gnome-software-plugin-flatpak

}

# ******************************************************
# **************** Menu principal **********************
# ******************************************************

while [ !$sortie ]

do
   echo "$menu";
   read reponse
   case $reponse in
    # **************** 0000000000000 **********************
 0) # UBUNTU - MAJ & install applis par défaut 
      incontournables
ubuntu
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 gnome-tweak-tool
      sudo apt install -y calibre easytag gnome-software


   ;;
   # **************** 11111111111111111 **********************
1) # XUBUNTU - MAJ & install applis par défaut 
      incontournables
ubuntu
sudo apt update && sudo apt upgrade -y
sudo cp files/bckgrd/*.*  /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) incontournables
    sudo bash -c 'cat > /etc/lightdm/lightdm.conf <<EOF
     [Seat:*]
        greeter-show-manual-login=true
        greeter-allow-guest=false
        allow-guests=false
       EOF'
   ;;
    # **************** 333333333333333 **********************
 3) # Divers applis 
    sudo apt install -y calibre easytag audacity openshot-qt sweethome3d dia scribus 
    sudo apt install -y iptux onboard  freeplane
    sudo apt install -y openshot  basket k3b cheese feedreader radiotray
   ;;
 
    # **************** 444444444444444 **********************
 4) # 
   ;;
 5) # Jeux


   ;;
 6) #  
   
  ;;
 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) 
  ;;

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

ubuntu/2404/script.txt · Dernière modification : 2025/11/08 07:54 de sbestel