#!/bin/bash
Encoding=UTF-8

export MAIN_DIALOG='


<window window_position="1"  title="Bienvenue!" width-request="730">
<vbox>
 <notebook 
                    tab-labels="Bienvenue!|A. Choisir les sessions|B. Choisir le lanceur d'\''applications|C. Contrôle Parental|D. Logiciels supplémentaires|E. Réglages divers"
                                 tab-pos="0"
                                      >
<vbox>
<text use-markup="True" justify="3"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' size='"'large'"'><small><b>Dans les onglets suivants, vous allez pouvoir choisir plusieurs paramètres:</b></small></span>"</label></text>
<text use-markup="True" justify="3"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' size='"'medium'"'><small>
<b>A. Installer en plus de la session existante de l'\''administrateur (qui est aussi celle du professeur):</b>

<span color='"'#EEBAB6'"'><b>- L'\''utilisateur mini</b></span>, qui propose un environnement et des applications adaptées aux enfants de 3 à 5 ans.
<span color='"'#9BD425'"'><b>- L'\''utilisateur super</b></span>, qui propose un environnement et des applications adaptées aux enfants de 6 à 7-8 ans.
<span color='"'#5973EE'"'><b>- L'\''utilisateur maxi</b></span>, qui propose un environnement et des applications adaptées aux enfants de 7-8 à 10 ans.

Vous aurez également la possibilité d'\''installer toutes les sessions en un seul clic!

<b>B. Choisir votre lanceur d'\''application préféré:</b>

<b>- Le handymenu:</b> lanceur habituel de PrimTux, les applications sont classées en catégories dans des onglets.
<b>- Le BNE:</b> lanceur alternatif présentant les applications classées en catégories dans des boutons.

Quel que soit le lanceur choisi, les applications installées et les catégories utilisées seront strictement les mêmes par défaut.

<b>C. Choisir d'\''installer ou non le contrôle parental:</b> fortement conseillé en cas d'\''utilisation de PrimTux sur un poste isolé, optionnel si le filtrage est assuré par un serveur.

<b>D. Installer ou non des logiciels éducatifs et outils supplémentaires.</b></small></span>"</label></text>
<vbox homogeneous="true">
      <hbox homogeneous="true" width-request="10">
      <frame>
      <button>
      <action>xdg-open /usr/share/guides-logiciels-primtux/interactive_illustration.html &</action>
      <label>Cliquez ici pour une explication en images</label>
      </button>
      </frame>
      </hbox>

</vbox>
<vbox homogeneous="true">
<frame>
<text use-markup="True" width="900" justify="2"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>PrimTux, c'\''est aussi une association loi 1901.
Pour nous rejoindre ou nous soutenir,</small></span>"</label></text>
      <hbox homogeneous="true" width-request="10">
      <button>
      <action>xdg-open http://collectif.primtux.fr &</action>
      <label>Cliquez ici</label>
      </button>
      </hbox>
      </frame>
</vbox>
</vbox>
<vbox homogeneous="true">
<hbox homogeneous="true">
<text use-markup="True" width="900" justify="2"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Attention, quand vous taperez le mot de passe, il ne s'\''affichera pas, mais il sera bien entré.</small></span>"</label></text>
</hbox>
      <hbox homogeneous="true" width-request="10">
<button>
      <action>/usr/local/bin/primtux/mini &</action>
      <label>Créer la session mini (3-5 ans)</label>
</button>
<pixmap><input file>/usr/share/pixmaps/02.png</input></pixmap>
</hbox>
      <hbox homogeneous="true" width-request="10">
    <button>	
      <action>/usr/local/bin/primtux/super &</action>
      <label>Créer la session super (6-7 ans)</label>
    </button>
          <pixmap><input file>/usr/share/pixmaps/03.png</input></pixmap>
          </hbox>
                <hbox homogeneous="true" width-request="10">
    <button>	
      <action>/usr/local/bin/primtux/maxi &</action>
      <label>Créer la session maxi (8-10 ans)</label>
    </button>
          <pixmap><input file>/usr/share/pixmaps/04.png</input></pixmap>
          </hbox>
                        <hbox homogeneous="true">
    <button>	
      <action>/usr/local/bin/primtux/all &</action>
      <label>Créer toutes les sessions</label>
    </button>
          </hbox>
</vbox>
<vbox>
<frame>
<text use-markup="True" width="900" justify="2"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Bureau Mini</small></span>"</label></text>
<hbox homogeneous="true">
<vbox>
<button tooltip-text="Le handymenu sera affiché sur la barre latérale, pas le BNE">	
      <input file>/usr/share/pixmaps/handy-mini-48.png</input>
      <action>/usr/local/bin/primtux/handy-mini &</action>
      <label>Handymenu-mini</label>
    </button>
<pixmap>
<input file>/usr/share/pixmaps/mini-off.png</input>
<variable>HMINI</variable>
</pixmap>

 <button tooltip-text="Lance le handymenu au démarrage de session, pas le BNE">
	
      <action>pkexec /usr/local/bin/primtux/mini-on.sh</action>
	<action>refresh:HMINI</action>
	<action>refresh:BNEMINI</action>
      <label>Handymenu mini au démarrage</label>

    </button>
     </vbox>
    <vbox>
<button tooltip-text="Le BNE sera affiché sur la barre latérale, pas le Handymenu">	
      <input file>/usr/share/pixmaps/BNE-linux-mini.png</input>
      <action>/usr/local/bin/primtux/bne-mini &</action>
      <label>BNE-mini</label>
    </button>
    <pixmap>
<input file>/usr/share/pixmaps/bnemini-off.png</input>
<variable>BNEMINI</variable>
</pixmap>

 <button tooltip-text="Lance le BNE au démarrage de session, pas le Handymenu">
	      <action>pkexec /usr/local/bin/primtux/bnemini-on.sh</action>
	<action>refresh:BNEMINI</action>
	<action>refresh:HMINI</action>
      <label>BNE mini au démarrage</label>
    </button>
    </vbox>
</hbox>
 <button>
	      <action>pkexec /usr/local/bin/primtux/mini-off.sh</action>
	<action>refresh:BNEMINI</action>
	<action>refresh:HMINI</action>
      <label>Aucun lanceur au démarrage</label>
    </button>
</frame>
<frame>
<text use-markup="True" width="900" justify="2"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Bureau Super</small></span>"</label></text>
<hbox homogeneous="true">
<vbox>
<button tooltip-text="Le handymenu sera affiché sur la barre latérale, pas le BNE">	
      <input file>/usr/share/pixmaps/handy-super-48.png</input>
      <action>/usr/local/bin/primtux/handy-super &</action>
      <label>Handymenu-super</label>
    </button>
<pixmap>
<input file>/usr/share/pixmaps/super-off.png</input>
<variable>HSUPER</variable>
</pixmap>
 <button tooltip-text="Lance le handymenu au démarrage de session, pas le BNE">
	
      <action>pkexec /usr/local/bin/primtux/super-on.sh</action>
	<action>refresh:HSUPER</action>
	<action>refresh:BNESUPER</action>
      <label>Handymenu super au démarrage</label>
    </button>
     </vbox>
    <vbox>
<button tooltip-text="Le BNE sera affiché sur la barre latérale, pas le Handymenu">	
      <input file>/usr/share/pixmaps/BNE-linux-super.png</input>
      <action>/usr/local/bin/primtux/bne-super &</action>
      <label>BNE-super</label>
    </button>
    <pixmap>
<input file>/usr/share/pixmaps/bnesuper-off.png</input>
<variable>BNESUPER</variable>
</pixmap>

 <button tooltip-text="Lance le BNE au démarrage de session, pas le Handymenu">
	
      <action>pkexec /usr/local/bin/primtux/bnesuper-on.sh</action>
	<action>refresh:BNESUPER</action>
	<action>refresh:HSUPER</action>
      <label>BNE super au démarrage</label>
    </button>
</vbox>
</hbox>
 <button>
	      <action>pkexec /usr/local/bin/primtux/super-off.sh</action>
	<action>refresh:BNESUPER</action>
	<action>refresh:HSUPER</action>
      <label>Aucun lanceur au démarrage</label>
    </button>
</frame>
<frame>
<text use-markup="True" width="900" justify="2"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Bureau Maxi</small></span>"</label></text>
<hbox homogeneous="true">
<vbox>
<button tooltip-text="Le handymenu sera affiché sur la barre latérale, pas le BNE">	
      <input file>/usr/share/pixmaps/handy-maxi-48.png</input>
      <action>/usr/local/bin/primtux/handy-maxi &</action>
      <label>Handymenu-maxi</label>
    </button>
<pixmap>
<input file>/usr/share/pixmaps/maxi-off.png</input>
<variable>HMAXI</variable>
</pixmap>

 <button tooltip-text="Lance le handymenu au démarrage de session, pas le BNE">
	
      <action>pkexec /usr/local/bin/primtux/maxi-on.sh</action>
	<action>refresh:HMAXI</action>
	<action>refresh:BNEMAXI</action>
      <label>Handymenu maxi au démarrage</label>

    </button>
     </vbox>
    <vbox>
<button tooltip-text="Le BNE sera affiché sur la barre latérale, pas le Handymenu">	
      <input file>/usr/share/pixmaps/BNE-linux-maxi.png</input>
      <action>/usr/local/bin/primtux/bne-maxi &</action>
      <label>BNE-maxi</label>
    </button>
    <pixmap>
<input file>/usr/share/pixmaps/bnemaxi-off.png</input>
<variable>BNEMAXI</variable>
</pixmap>

 <button tooltip-text="Lance le BNE au démarrage de session, pas le Handymenu">
	
      <action>pkexec /usr/local/bin/primtux/bnemaxi-on.sh</action>
	<action>refresh:BNEMAXI</action>
	<action>refresh:HMAXI</action>
      <label>BNE maxi au démarrage</label>

    </button>
    </vbox>
</hbox>
 <button>
	      <action>pkexec /usr/local/bin/primtux/maxi-off.sh</action>
	<action>refresh:BNEMAXI</action>
	<action>refresh:HMAXI</action>
      <label>Aucun lanceur au démarrage</label>
    </button>
</frame>
</vbox>
<vbox homogeneous="true">
<frame>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Le contrôle parental est celui de marsat, configuré pour PrimTux:

- Il filtre de manière transparente tous les navigateurs.
- Il permet de définir des plages horaires de connexion à internet.
- Il filtre le https.

Il n'\''est pas nécessaire de l'\''installer si:
- Vous disposez d'\''un proxy académique.
- Votre salle informatique dispose d'\''un serveur filtrant.

Son installation est vivement recommandée si:
- PrimTux est installé sur un poste isolé connecté à Internet.

DANS CE DERNIER CAS:</small></span>"</label></text>
<vbox homogeneous="true">
<vbox>
      <button>
      <action>nm-applet &</action>
      <label>1 - CONNECTEZ-VOUS À INTERNET</label>
      </button>
           <button>
      <action>/usr/bin/ct &</action>
      <label>2 - INSTALLEZ LE CONTRÔLE PARENTAL</label>
      </button>
</vbox>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>AIDE À LA CONFIGURATION:

- Pour bloquer google, il faut:
Entrer google.fr et google.com dans la blacklist.
Désactiver la safesearch.

- Pour lire les vidéos, ne pas cocher le filtrage des vidéos.</small></span>"</label></text>
</vbox>
</frame>
</vbox>
<vbox>
<frame>
<vbox homogeneous="true">
<text><label>Ces logiciels sont disponibles sous différentes licences non-libres (freewares windows, autorisation de diffusion pour un usage non-commercial).</label></text>
<button>
<action>leafpad /usr/local/bin/primtux/licences &</action>
<label>Cliquez ici pour en savoir plus</label>
</button>
</vbox>
</frame>
<frame>
<button>
      <label>Installer les logiciels maternelle (mini). Téléchargement: 1,3 Go.</label>	
<action>/usr/local/bin/primtux/installe-logiciels mini &</action>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels super &</action>
      <label>Installer les logiciels 6-7 ans (super): 2,2 Go.</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels maxi &</action>
      <label>Installer les logiciels 8-10 ans (maxi): 2,3 Go.</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels outils &</action>	
      <label>Installer les outils non-libres (flash, polices...): 200 Mo</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels all &</action>
      <label>Installer tous les logiciels éducatifs non-libres: 2,8 Go</label>
    </button>
</frame>
</vbox>
<vbox homogeneous="true">
<frame>
<vbox homogeneous="true">
<vbox>
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>RÉGLAGES</small></span>"</label></text>
<button>	
      <input file>/usr/share/pixmaps/preferences-desktop-locale-symbolic.png</input>
      <action>fskbsetting &</action>
      <label>Choix du clavier</label>
    </button>
<button>	
      <input file>/usr/share/pixmaps/accueil-wine.png</input>
      <action>pkexec /usr/local/bin/primtux/primtux-wine.sh &</action>
      <label>Rétablir les associations de fichiers</label>
    </button>
</vbox>
<vbox>
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>SUPPORT TECHNIQUE</small></span>"</label></text>
 <button>
	      <input file>/usr/share/pixmaps/application-info.png</input>
      <action>xdg-open http://wiki.primtux.fr/doku.php/presentation_du_systeme &</action>
      <label>Wiki</label>
      </button>
<button>
<input file>/usr/share/pixmaps/kopete.png</input>	
      <action>xdg-open http://forum.primtux.fr &</action>
      <label>Forum</label>
    </button>
</vbox>
</vbox>
</frame>
<frame>
<vbox>
<hbox homogeneous="true">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>CHANGER LES MOTS DE PASSE</small></span>"</label></text>
</hbox>
<hbox homogeneous="true">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>(conseillé pour des raisons de sécurité, choisissez le même mot de passe pour root et administrateur)</small></span>"</label></text>
</hbox>
<hbox homogeneous="true">
<pixmap>
<input file>/usr/share/pixmaps/user-password.png</input>
</pixmap>
</hbox>
</vbox>
<vbox homogeneous="true">
<button>
<action>roxterm -e "sudo passwd root" &</action>
<label>Changer le mot de passe root (super utilisateur)</label>
</button>
<button>
<action>roxterm -e "sudo passwd administrateur" &</action>
<label>Changer le mot de passe de la session administrateur</label>
</button>
</vbox>
</frame>
</vbox>
</notebook>
<hbox>
<pixmap><input file>/home/administrateur/.primtux/checkbox-on.png</input>
<variable>ACCUEIL-ON</variable>
</pixmap>
<button>
	<action>/usr/local/bin/primtux/accueil-on</action>
<action>cp -f /home/administrateur/.primtux/accueil/checkbox-on.png /home/administrateur/.primtux/checkbox-on.png</action>
<action type="refresh">ACCUEIL-ON</action>
      <label>Afficher l'\''accueil au démarrage</label>
    </button>
<button>
	<action>/usr/local/bin/primtux/accueil-off</action>
<action>cp -f /home/administrateur/.primtux/accueil/checkbox-off.png /home/administrateur/.primtux/checkbox-on.png</action>
<action type="refresh">ACCUEIL-ON</action>
      <label>Ne pas afficher l'\''accueil au démarrage</label>
    </button>
</hbox>
</vbox>
</window>
 '
 gtkdialog --program MAIN_DIALOG

