Skip to content
Snippets Groups Projects
Commit cea9ddf2 authored by Mohamed El Amine Yahiaoui's avatar Mohamed El Amine Yahiaoui
Browse files

Version rendu intermediaire

parent d8e288f7
Branches
No related tags found
No related merge requests found
......@@ -151,6 +151,13 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<li><a href="#installation-préconfigurée"
id="toc-installation-préconfigurée">Installation
préconfigurée</a></li>
<li><a href="#problèmes-rencontrés"
id="toc-problèmes-rencontrés">Problèmes rencontrés</a></li>
<li><a href="#solutions-envisagées"
id="toc-solutions-envisagées">Solutions envisagées</a></li>
<li><a href="#interface-graphique-pour-git"
id="toc-interface-graphique-pour-git">Interface graphique pour
git</a></li>
</ul></li>
</ul></li>
</ul>
......@@ -214,6 +221,16 @@ pré-configuration</a></li>
Ajustement de la pré-configuration</a></li>
</ul></li>
</ul></li>
<li><a href="#problèmes-rencontrés">Problèmes rencontrés</a>
<ul>
<li><a href="#installation-automatique">Installation
automatique</a></li>
</ul></li>
<li><a href="#solutions-envisagées">Solutions envisagées</a>
<ul>
<li><a href="#installation-automatique-1">Installation
automatique</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
......@@ -465,6 +482,29 @@ machine virtuelle</a></p>
<img src="images/recapitulatif-5.png" alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>Fichiers de pré-configuration</p>
<ol type="1">
<li><p>Récupérer l’archive autoinstall_Debian.zip sur Moodle et
décompresser-là dans le répertoire de votre machine virtuelle.</p></li>
<li><p>Remplacer la chaîne @<span class="citation"
data-cites="UUID">@UUID</span>@@ par un identifiant unique universel. Le
plus simple est d’exécuter la commande ci-dessous en étant placé dans le
même répertoire que votre fichier S203-Debian12.viso.</p></li>
</ol>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sed</span> <span class="at">-i</span> <span class="at">-E</span> <span class="st">&quot;s/(--iprt-iso-maker-file-marker-bourne-sh).*$/\1=</span><span class="va">$(</span><span class="fu">cat</span> /proc/sys/kernel/random/uuid<span class="va">)</span><span class="st">/&quot;</span> S203-Debian12.viso</span></code></pre></div>
<ol type="1">
<li>Insérer le fichier S203_Debian12.viso dans le lecteur optique
(cd/dvd) de votre machine virtuelle ;</li>
<li>Démarrer la machine virtuelle et laissez l’installation se
dérouler.</li>
<li>Testez les ajouts invités en vous connectant (user/user, ou
root/root) puis en modifiant la taille de la fenêtre</li>
</ol>
<figure>
<img src="images/connexion-apres-autoinstallation.png" alt="Image" />
<figcaption aria-hidden="true">Image</figcaption>
</figure>
<p>ajouter user à sudo : <code>sh usermod -aG sudo user</code></p>
<h5 id="fichiers-de-pré-configuration">Fichiers de
pré-configuration</h5>
<ol type="1">
......@@ -475,8 +515,8 @@ data-cites="UUID">@UUID</span>@<span class="citation"
data-cites="*">@*</span> par un identifiant universel. Le plus simple
est d’exécuter la commande ci-dessous en étant placé dans le même
répertoire que votre fichier S203-Debian12.viso :</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sed</span> <span class="at">-i</span> <span class="at">-E</span> <span class="st">&quot;s/(--iprt-iso-maker-file-marker-bourne-sh).*$/\1=</span><span class="va">$(</span><span class="fu">cat</span> /proc/sys/kernel/random/uuid<span class="va">)</span><span class="st">/&quot;</span> S203-Debian12.viso</span></code></pre></div></li>
<div class="sourceCode" id="cb2"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sed</span> <span class="at">-i</span> <span class="at">-E</span> <span class="st">&quot;s/(--iprt-iso-maker-file-marker-bourne-sh).*$/\1=</span><span class="va">$(</span><span class="fu">cat</span> /proc/sys/kernel/random/uuid<span class="va">)</span><span class="st">/&quot;</span> S203-Debian12.viso</span></code></pre></div></li>
<li><p>Insérer le fichier <em>S203_Debian12.viso</em> dans le lecteur
optique (cd/dvd) de votre machine virtuelle</p></li>
<li><p>Démarrer la machine virtuelle et laissez l’installation se
......@@ -496,9 +536,16 @@ Ajustement de la pré-configuration</h5>
<ul>
<li><p>Ajouter le droit d’utiliser <strong><em>sudo</em></strong> à
l’utilisateur standard &gt;Dans le fichier <em>preseed-fr.cfg</em>
ajouter sudo à la ligne<br />
<code>d-i passwd/user-default-groups string audio cdrom video sudo</code></p></li>
<li><p>Installer l’environnement <strong><em>MATE</em></strong></p></li>
ajouter sudo à la ligne</p>
<div class="sourceCode" id="cb3"><pre
class="sourceCode cfg"><code class="sourceCode ini"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="dt">d-i passwd/user-default-groups string audio cdrom video sudo</span></span></code></pre></div></li>
<li><p>Installer l’environnement <strong><em>MATE</em></strong>
&gt;Ajouter cette ligne dans le fichier <em>preseed.cfg</em> :</p>
<div class="sourceCode" id="cb4"><pre
class="sourceCode cfg"><code class="sourceCode ini"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co">## Installer environnement MATE</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="dt">/install.amd/vmlinuz vga</span><span class="ot">=</span><span class="st">788 initrd=/install.amd/gtk/initrd.gz desktop=mate-desktop --- quiet</span></span></code></pre></div>
<p><a
href="https://www.debian.org/releases/stable/amd64/apbs02.fr.html">Source</a></p></li>
<li><p>Ajouter les paquets suivants :</p>
<ol type="1">
<li><p><strong><em>sudo</em></strong> : sinon la gestion sudo est
......@@ -509,11 +556,134 @@ semaine prochaine</p></li>
<li><p><strong><em>bash-completion</em></strong> : va vous simplifier
grandement l’écriture des lignes de commande</p></li>
<li><p><strong><em>neofetch</em></strong> : pas très utile</p></li>
</ol></li>
</ol>
<blockquote>
<p>Ajouter la ligne suivant pour installer tous ces paquets :</p>
</blockquote>
<div class="sourceCode" id="cb5"><pre
class="sourceCode cfg"><code class="sourceCode ini"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="dt">d-i pkgsel/include string sudo, git, sqlite3, curl, bash-completion, neofetch</span></span></code></pre></div>
<p><a
href="http://papy-tux.legtux.org/doc1173/index.php">Source</a></p></li>
</ul>
<h3 id="problèmes-rencontrés">Problèmes rencontrés</h3>
<h4 id="installation-automatique">Installation automatique</h4>
<p>Après installation sur ordinateur personnel de l’archive
auto_install.zip sur moodle, et mise en commentaire de la ligne
concernant le proxy dans le fichier preseed.cfg, je n’arrivais pas à
lancer une installation automatique sur mon pc.</p>
<h3 id="solutions-envisagées">Solutions envisagées</h3>
<h4 id="installation-automatique-1">Installation automatique</h4>
<p>Essayer sur un pc de salle de TP.</p>
<h3 id="interface-graphique-pour-git">Interface graphique pour git</h3>
<p>Tout d’abords,installez les paquets gitk et git gui</p>
<ul>
<li>Qu’est-ce que le logiciel gitk ? Comment se lance-t-il ? &gt; gitk
est un navigateur de dépôt graphique, le premier de son genre. Il peut
être considéré comme un encapsuleur graphique pour git log . Il permet
d’explorer et de visualiser l’historique d’un dépôt. Il se lance avec la
commande :</li>
</ul>
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gitk</span></span></code></pre></div>
<ul>
<li>Qu’est-ce que le logiciel git-gui ? Comment se lance-t-il ? &gt;
C’est aussi une interface graphique pour le dépot . Il se lance avec la
commande :</li>
</ul>
<p>Utilisation de git: ´´´sh git config –global user.name “Prénom Nom” ①
git config –global user.email “votre@email” ② git config –global
init.defaultBranch “master” ③ ´´´</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gitk</span></span></code></pre></div>
<h4 id="installons-autre-chose-et-comparons">Installons autre chose et
comparons</h4>
<p>Interface gratuite ungit</p>
<ul>
<li><p>Pourquoi avez-vous choisi ce logiciel ? &gt; Il représente les
dépôts git sous forme d’arbres pour lesquels chaque nœud correspond à un
commit.</p></li>
<li><p>Comment l’avez vous installé ? &gt; avec cette commande d’abords
pour installer nodes js :</p></li>
</ul>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> apt install nodejs npm <span class="at">-y</span></span></code></pre></div>
<blockquote>
<p>puis celle-çi pour installer ungit :</p>
</blockquote>
<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="ex">npm</span> install <span class="at">-g</span> ungit</span></code></pre></div>
<p>Comparaison avec gitk et git gui</p>
<table>
<colgroup>
<col style="width: 18%" />
<col style="width: 26%" />
<col style="width: 27%" />
<col style="width: 28%" />
</colgroup>
<thead>
<tr class="header">
<th>Critère</th>
<th>Gitk</th>
<th>Git GUI</th>
<th>Ungit</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><strong>Type d’outil</strong></td>
<td>Visualisation de l’historique</td>
<td>Interface complète pour Git</td>
<td>Interface web pour Git</td>
</tr>
<tr class="even">
<td><strong>Installation</strong></td>
<td>Inclus avec Git</td>
<td>Inclus avec Git</td>
<td>Nécessite Node.js</td>
</tr>
<tr class="odd">
<td><strong>Interface</strong></td>
<td>Minimaliste, basé sur Tk</td>
<td>Basique, en Tk</td>
<td>Moderne et intuitive (web)</td>
</tr>
<tr class="even">
<td><strong>Utilisation</strong></td>
<td>Explorer les commits et branches</td>
<td>Faire des commits, merges, push/pull</td>
<td>Interface graphique simplifiée pour Git</td>
</tr>
<tr class="odd">
<td><strong>Facilité d’utilisation</strong></td>
<td>Moyenne (assez brut)</td>
<td>Plus simple mais limité</td>
<td>Très accessible</td>
</tr>
<tr class="even">
<td><strong>Support du staging</strong></td>
<td>Non</td>
<td>Oui</td>
<td>Oui</td>
</tr>
<tr class="odd">
<td><strong>Support des merges</strong></td>
<td>Visualisation uniquement</td>
<td>Oui, mais basique</td>
<td>Oui, très visuel</td>
</tr>
<tr class="even">
<td><strong>Personnalisation</strong></td>
<td>Non</td>
<td>Non</td>
<td>Oui, via plugins et options web</td>
</tr>
<tr class="odd">
<td><strong>Multiplateforme</strong></td>
<td>Oui</td>
<td>Oui</td>
<td>Oui (via navigateur)</td>
</tr>
<tr class="even">
<td><strong>Dépendances</strong></td>
<td>Git et Tk</td>
<td>Git et Tk</td>
<td>Node.js et navigateur</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
......
......@@ -21,6 +21,8 @@ sudo apt install pandoc-citeproc
```
#### PDF
```sh
#Erreur trop de sous tableau|parti, pas supporter par Latex. A voir alternative.
pandoc <entre>.md -o <sortie>.pdf
```
#### HTML
......@@ -42,7 +44,6 @@ voici le lien du template open source
pandoc rapport.md -f markdown -o rapport.html --template=easy_template.html --toc --metadata title="SAÉ 2.03: Semaine 06 - GRP A7"
```
#### Convertire en HTML avec un tamplate
Curl
```sh
'https://raw.githubusercontent.com/ryangrose/easy-pandoc-templates/master/copy_templates.sh' | bash
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment