831 lines
112 KiB
HTML
831 lines
112 KiB
HTML
<!DOCTYPE html><html lang="fr">
|
||
<head>
|
||
<title>2 Installations‣ Compilation de commandes utiles régulièrement, ou pas</title>
|
||
<!--Generated on Tue Nov 24 18:44:33 2020 by LaTeXML (version 0.8.3) http://dlmf.nist.gov/LaTeXML/.-->
|
||
<!--Document created on .-->
|
||
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
|
||
<link rel="stylesheet" href="ltx-article.css" type="text/css">
|
||
<link rel="stylesheet" href="ltx-listings.css" type="text/css">
|
||
<link rel="up" href="./" title="Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="start" href="./" title="Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="prev" href="S1.html" title="1 Commandes usuelles ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="next" href="S3.html" title="3 Manjaro - Arch Linux ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S1.html" title="1 Commandes usuelles ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S3.html" title="3 Manjaro - Arch Linux ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S4.html" title="4 Awesome WM et la customisation avancée ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S5.html" title="5 Yunohost, Brique Internet et autres serveur-like tips ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S6.html" title="6 Sauvegardes ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S7.html" title="7 Logiciels ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S8.html" title="8 Développement Web ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S9.html" title="9 Internet ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S10.html" title="10 Vie privée ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S11.html" title="11 Bugs divers ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S12.html" title="12 Divers ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S13.html" title="13 Windows ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S14.html" title="14 Réparation ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
<link rel="section" href="S15.html" title="15 Annexes - Scripts ‣ Compilation de commandes utiles régulièrement, ou pas">
|
||
</head>
|
||
<body>
|
||
<div class="ltx_page_main">
|
||
<header class="ltx_page_header">
|
||
<div>
|
||
<a href="./" title="Compilation de commandes utiles régulièrement, ou pas" class="ltx_ref" rel="up"><span class="ltx_text ltx_ref_title">Compilation de commandes utiles régulièrement, ou pas<span class="ltx_text"> </span></span></a><a href="S1.html" title="1 Commandes usuelles ‣ Compilation de commandes utiles régulièrement, ou pas" class="ltx_ref" rel="prev"><span class="ltx_text ltx_ref_title"><span class="ltx_tag ltx_tag_ref">1 </span>Commandes usuelles</span></a><a href="S3.html" title="3 Manjaro - Arch Linux ‣ Compilation de commandes utiles régulièrement, ou pas" class="ltx_ref" rel="next"><span class="ltx_text ltx_ref_title"><span class="ltx_tag ltx_tag_ref">3 </span>Manjaro - Arch Linux</span></a>
|
||
</div></header>
|
||
<div class="ltx_page_content">
|
||
<section class="ltx_section ltx_authors_1line" lang="fr">
|
||
<h1 class="ltx_title ltx_title_section">
|
||
<span class="ltx_tag ltx_tag_section">2 </span>Installations</h1>
|
||
<div class="ltx_date ltx_role_creation"></div>
|
||
|
||
<section id="SS1" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.1 </span>Système</h2>
|
||
|
||
<section id="SS1.SSS1" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.1 </span>Créer une clé USB Bootable</h3>
|
||
|
||
<div id="SS1.SSS1.p1" class="ltx_para">
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_bold">Attention, cette commande nécessite de savoir précisément l’identification de votre clé usb, sinon vous risquez de perdre toutes vos données en formattant votre disque dur.
|
||
<br class="ltx_break"></span>Pour plus d’informations : <a href="https://doc.ubuntu-fr.org/live_usb#en_ligne_de_commandes" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://doc.ubuntu-fr.org/live_usb#en_ligne_de_commandes</a>
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBkZCBicz00TSBzdGF0dXM9cHJvZ3Jlc3MgaWY9dm90cmUuaXNvIG9mPS9kZXYvc2RYICYmIHN5bmM=">⬇</a></div>
|
||
<div id="lstnumberx4" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dd</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">bs</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=4</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">M</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">status</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">progress</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">if</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">votre</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">iso</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">of</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdX</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">&&</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sync</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section id="SS1.SSS2" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.2 </span>Créer une clé USB live avec plusieurs ISOs</h3>
|
||
|
||
<div id="SS1.SSS2.p1" class="ltx_para">
|
||
<p class="ltx_p">Il est également possible d’utiliser plusieurs images dans une seule clé. Pour cela on peut installer <span class="ltx_text ltx_font_typewriter">multibootusb</span> (<a href="http://multibootusb.org/page_download/" title="" class="ltx_ref ltx_url ltx_font_typewriter">http://multibootusb.org/page_download/</a>). Pour l’installer :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBkcGtnIC1pIHB5dGhvbjMtbXVsdGlib290dXNiXzkuMi4wLTFfYWxsLmRlYg==">⬇</a></div>
|
||
<div id="lstnumberx5" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dpkg</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">i</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">python3</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">multibootusb_9</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.2.0-1</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">_all</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">deb</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Si vous rencontrez des problèmes de dépendances non satisfaites, relevez les noms de ces paquets, installez les puis répétez la commande ci-dessus.
|
||
<br class="ltx_break">Exécutez ensuite le programme avec <span class="ltx_text ltx_font_typewriter">sudo multibootusb</span>.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS1.SSS3" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.3 </span>Vérification d’ISO</h3>
|
||
|
||
<div id="SS1.SSS3.p1" class="ltx_para ltx_noindent">
|
||
<p class="ltx_p">La vérification d’iso consiste à vérifier l’authenticité et l’intégrité des images téléchargées. La méthode exacte sera spécifique à chaque .iso car les fichiers et signatures ne seront pas la même, cette partie présentera donc des commandes usuelles mais ne permet pas de réaliser toutes les étapes sans regarder la documentation spécifique à la vérification souhaitée.
|
||
<br class="ltx_break"><span class="ltx_text ltx_font_smallcaps">Tentative d’explication :</span> l’authenticité permet de vérifier que le fichier téléchargé a bien été créé par la personne qui dit l’avoir signée. L’intégrité permet de vérifier que le fichier n’a pas été modifié par une personne tiers. Ces méthodes <span class="ltx_text ltx_font_bold">ne peut pas prouver que le fichier n’est pas malicieux</span>, on doit donc choisir de nous-même si l’on fait confiance aux personnes qui ont créé ces fichiers.
|
||
Tout d’abord, télécharger dans le même fichier le .iso (ou autre format, mais le fichier de l’image logiciel) et les fichiers de signature SHA256sum.txt et SHA256sum.txt.gpg (de même, les extensions de fichier peuvent varier).
|
||
<br class="ltx_break">Il faut ensuite générer le SHA256sum de l’iso téléchargé afin de le comparer au fichier téléchargé.
|
||
Générer le SHA256sum :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c2hhMjU2c3VtIC1iICouaXNv">⬇</a></div>
|
||
<div id="lstnumberx6" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sha256sum</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">b</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">*.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">iso</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Il faut ensuite comparer la signature obtenue à celle contenue dans SHA256sum.txt. Une méthode permet de le faire à partir d’une ligne de commande :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c2hhMjU2c3VtIC0taWdub3JlLW1pc3NpbmcgLWMgc2hhMjU2c3VtLnR4dA==">⬇</a></div>
|
||
<div id="lstnumberx7" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sha256sum</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">ignore</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">missing</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">c</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sha256sum</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">txt</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_bold">Vérification d’authenticité
|
||
<br class="ltx_break"></span></p>
|
||
</div>
|
||
<div id="SS1.SSS3.p2" class="ltx_para">
|
||
<p class="ltx_p">Pour vérifier l’authenticité de SHA256sum.txt il faut vérifier la signature de SHA256sum.txt.gpg.
|
||
<br class="ltx_break">Il faut tout d’abord importer la clé de signature du système d’exploitation, pour <span class="ltx_text ltx_emph ltx_font_italic">Debian</span> :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,Z3BnIC0ta2V5c2VydmVyIGtleXJpbmcuZGViaWFuLm9yZyAtLXJlY3Yta2V5cyAweERFQURCRUVGCmdwZyAtLXZlcmlmeSBzaGEyNTZzdW0udHh0LmdwZyBzaGEyNTZzdW0udHh0">⬇</a></div>
|
||
<div id="lstnumberx8" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">gpg</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keyserver</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keyring</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">debian</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">org</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">recv</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keys</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">0</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xDEADBEEF</span>
|
||
</div>
|
||
<div id="lstnumberx9" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">gpg</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">verify</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sha256sum</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">txt</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">gpg</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sha256sum</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">txt</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section id="SS1.SSS4" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.4 </span>Retirer le bip du clavier</h3>
|
||
|
||
<div id="SS1.SSS4.p1" class="ltx_para">
|
||
<p class="ltx_p">Il arrive qu’après une nouvelle installation le clavier <span class="ltx_text ltx_emph ltx_font_italic">bip</span> en cas d’entrée vide.
|
||
Pour l’enlever :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,ZWNobyAiYmxhY2tsaXN0IHBjc3BrciIgfCBzdWRvIHRlZSAvZXRjL21vZHByb2JlLmQvbm9iZWVwLmNvbmY=">⬇</a></div>
|
||
<div id="lstnumberx10" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"blacklist<span class="ltx_text ltx_lst_space"> </span>pcspkr"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">tee</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">etc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">modprobe</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">d</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">nobeep</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">conf</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Le bruit aura disparu après un redémarrage.</p>
|
||
</div>
|
||
</section>
|
||
<section id="SS1.SSS5" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.5 </span>Tâches exécutées à un moment (heure, date, jour) précis</h3>
|
||
|
||
<div id="SS1.SSS5.p1" class="ltx_para">
|
||
<p class="ltx_p">Le programme <span class="ltx_text ltx_font_typewriter">cron</span> sert à ce genre de tâches.
|
||
<br class="ltx_break">Il faut modifier le fichier <span class="ltx_text ltx_font_typewriter">/etc/crontab</span>, selon ce format :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,TU0gSEggREQgT08gV1cgY29tbWFuZA==">⬇</a></div>
|
||
<div id="lstnumberx11" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">MM</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">HH</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">DD</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">OO</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">WW</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">command</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">MM: Minute, 0-59
|
||
HH: 24-hour hour
|
||
DD: Day of month
|
||
OO: Month
|
||
WW: Day of Week (Sunday is 0, Monday is 1)
|
||
Par exemple :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,MzAgMjMgKiAqICogcm9vdCBzaHV0ZG93biAtaCBub3c=">⬇</a></div>
|
||
<div id="lstnumberx12" class="ltx_listingline">
|
||
<span class="ltx_text ltx_font_typewriter" style="font-size:90%;">30</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">23</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">*</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">*</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">*</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">root</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">shutdown</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">h</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">now</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Cela fera que l’ordinateur s’éteindra tous les jours à 23h30.</p>
|
||
</div>
|
||
</section>
|
||
<section id="SS1.SSS6" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.1.6 </span>Faire apparaître GRUB au démarrage</h3>
|
||
|
||
<div id="SS1.SSS6.p1" class="ltx_para">
|
||
<p class="ltx_p">Après une nouvelle installation de Manjaro, je n’avais pas accès à GRUB au démarrage et je ne pouvais pas changer de noyau. Cela était dû au fait que GRUB était configuré comme caché. On peut le modifier dans son fichier de configuration : <span class="ltx_text ltx_font_typewriter">/etc/default/grub</span>.
|
||
Il suffit de changer</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,R1JVQl9USU1FT1VUX1NUWUxFPSJoaWRkZW4i">⬇</a></div>
|
||
<div id="lstnumberx13" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">GRUB_TIMEOUT_STYLE</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"hidden"</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">en</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,R1JVQl9USU1FT1VUX1NUWUxFPSJtZW51Ig==">⬇</a></div>
|
||
<div id="lstnumberx14" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">GRUB_TIMEOUT_STYLE</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"menu"</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Il est aussi possible de changer le temps d’affichage de GRUB avec la variable <span class="ltx_text ltx_font_typewriter">GRUB_TIMEOUT</span>.
|
||
<br class="ltx_break">Pour que les changements soient pris en compte :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyB1cGRhdGUtZ3J1Yg==">⬇</a></div>
|
||
<div id="lstnumberx15" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">update</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grub</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
<section id="SS2" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.2 </span>Terminal</h2>
|
||
|
||
<section id="SS2.SSS1" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.2.1 </span>Changer de shell - Zsh</h3>
|
||
|
||
<div id="SS2.SSS1.p1" class="ltx_para">
|
||
<p class="ltx_p">Le shell par défaut des principales distributions Linux est <span class="ltx_text ltx_emph ltx_font_italic">bash</span>, un autre shell populaire offrant de nombreuses fonctionnalités est <span class="ltx_text ltx_emph ltx_font_italic">zsh</span> et son extension populaire <span class="ltx_text ltx_font_typewriter">oh-my-zsh</span>.
|
||
Pour l’utiliser il faut d’abord l’installer :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBhcHQgaW5zdGFsbCB6c2g=">⬇</a></div>
|
||
<div id="lstnumberx16" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">apt</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">install</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">zsh</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">pour Arch Linux ou Manjaro :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBwYWNtYW4gLVMgenNo">⬇</a></div>
|
||
<div id="lstnumberx17" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">pacman</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">S</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">zsh</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On peut vérifier qu’il est bien installé avec :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,enNoIC0tdmVyc2lvbg==">⬇</a></div>
|
||
<div id="lstnumberx18" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">zsh</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">version</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pour changer de shell par défaut et pour passer à zsh :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,Y2hzaCAtcyAkKHdoaWNoIHpzaCk=">⬇</a></div>
|
||
<div id="lstnumberx19" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">chsh</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">s</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">$</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">(</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">which</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">zsh</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">)</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Il faut ensuite se déconnecter pour mettre à jour le changement.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS2.SSS1.p2" class="ltx_para ltx_noindent">
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_bold">Installer oh-my-zsh</span></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c2ggLWMgIiQoY3VybCAtZnNTTCBodHRwczovL3Jhdy5naXRodWIuY29tL29obXl6c2gvb2hteXpzaC9tYXN0ZXIvdG9vbHMvaW5zdGFsbC5zaCki">⬇</a></div>
|
||
<div id="lstnumberx20" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sh</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">c</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"$(curl<span class="ltx_text ltx_lst_space"> </span>-fsSL<span class="ltx_text ltx_lst_space"> </span>https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Wiki : <a href="https://github.com/ohmyzsh/ohmyzsh/wiki" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://github.com/ohmyzsh/ohmyzsh/wiki</a>
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS2.SSS1.p3" class="ltx_para ltx_noindent">
|
||
<p class="ltx_p">Il est maintenant possible de configurer à nos souhaits ce shell via le fichier <span class="ltx_text ltx_font_typewriter">.zshrc</span>.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS2.SSS1.p4" class="ltx_para">
|
||
<p class="ltx_p">Deux vidéos intéressantes pour comprendre les fonctionnalités disponibles et comment les utiliser :
|
||
<br class="ltx_break"><a href="https://www.youtube.com/watch?v=4KBuPCeF9Gc" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://www.youtube.com/watch?v=4KBuPCeF9Gc</a>
|
||
<br class="ltx_break"><a href="https://www.youtube.com/watch?v=soAwUq2cQHQ" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://www.youtube.com/watch?v=soAwUq2cQHQ</a></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS2.SSS2" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.2.2 </span>Ajouter des plugins facilement dans Vim</h3>
|
||
|
||
<div id="SS2.SSS2.p1" class="ltx_para">
|
||
<p class="ltx_p"><a href="https://github.com/VundleVim/Vundle.vim" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://github.com/VundleVim/Vundle.vim</a></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS2.SSS3" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.2.3 </span>Colorer les codes couleurs html/rgb etc</h3>
|
||
|
||
<div id="SS2.SSS3.p1" class="ltx_para">
|
||
<p class="ltx_p">Un plugin pour surligner de la couleur correspondante les codes couleurs dans Vim :
|
||
<br class="ltx_break"><a href="https://github.com/gko/vim-coloresque" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://github.com/gko/vim-coloresque</a></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS2.SSS4" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.2.4 </span>Copier des liens symboliques en ligne de commande</h3>
|
||
|
||
<div id="SS2.SSS4.p1" class="ltx_para">
|
||
<p class="ltx_p">Documentation : <a href="https://www.lostsaloon.com/technology/how-to-copy-symbolic-links-in-linux/" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://www.lostsaloon.com/technology/how-to-copy-symbolic-links-in-linux/</a></p>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
<section id="SS3" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.3 </span>Disques chiffrés</h2>
|
||
|
||
<section id="SS3.SSS1" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.3.1 </span>Créer un disque chiffré</h3>
|
||
|
||
<div id="SS3.SSS1.p1" class="ltx_para">
|
||
<p class="ltx_p">Voir ici : <a href="https://blog.tinned-software.net/create-a-luks-encrypted-partition-on-linux-mint/" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://blog.tinned-software.net/create-a-luks-encrypted-partition-on-linux-mint/</a></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS3.SSS2" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.3.2 </span>Monter un disque chiffré en ligne de commande</h3>
|
||
|
||
<div id="SS3.SSS2.p1" class="ltx_para">
|
||
<p class="ltx_p">Monter un disque chiffré ne requiert pas les mêmes commandes que pour un disque normal, mais c’est finalement assez simple.
|
||
<br class="ltx_break">Tout d’abord vous devez bien entendu avoir <span class="ltx_text ltx_font_typewriter">cryptsetup</span> d’installé sur votre système.
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBhcHQgaW5zdGFsbCBjcnlwdHNldHVw">⬇</a></div>
|
||
<div id="lstnumberx21" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">apt</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">install</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptsetup</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Ensuite on aura ces opérations à réaliser :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBjcnlwdHNldHVwIGx1a3NPcGVuIC9kZXYvc2RjMSBjcnlwdGRyaXZlCnN1ZG8gbWtkaXIgL21lZGlhL01PTkRJU1FVRQpzdWRvIG1vdW50IC9kZXYvbWFwcGVyL2NyeXB0ZHJpdmUgL21lZGlhL01PTkRJU1FVRS8=">⬇</a></div>
|
||
<div id="lstnumberx22" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptsetup</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luksOpen</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdc1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptdrive</span>
|
||
</div>
|
||
<div id="lstnumberx23" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">mkdir</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">media</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">MONDISQUE</span>
|
||
</div>
|
||
<div id="lstnumberx24" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">mount</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">mapper</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptdrive</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">media</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">MONDISQUE</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Le <span class="ltx_text ltx_font_typewriter">/dev/sdc1</span> donne l’information de la <span class="ltx_text ltx_font_bold">partition</span> que vous voulez monter, et <span class="ltx_text ltx_font_typewriter">cryptdrive</span> est le <span class="ltx_text ltx_emph ltx_font_italic">mapper</span> que vous nommez pour que le système reconnaisse le disque.
|
||
<br class="ltx_break">La deuxième ligne est optionnelle si l’emplacement de montage souhaité existe déjà.
|
||
<br class="ltx_break">La dernière commande est la commande habituelle de montage : identification du disque à monter et l’emplacement où le monter.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS3.SSS3" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.3.3 </span>Monter un disque chiffré automatiquement au démarrage</h3>
|
||
|
||
<div id="SS3.SSS3.p1" class="ltx_para">
|
||
<p class="ltx_p">Il est possible de monter automatique le disque chiffré sans avoir à renseigner la phrase de déchiffrement si vous configurez un fichier "clé" et l’utilisez au démarrage.
|
||
<br class="ltx_break"><span class="ltx_text ltx_font_bold">Mon "tuto" est seulement un rappel des commandes nécessaires, sans grandes explications car tout est bien détaillé dans la source que j’ai utilisé. Si cela ne fonctionne pas parfaitement il y a plus de détails dans l’article source.</span>
|
||
Source : <a href="https://blog.tinned-software.net/automount-a-luks-encrypted-volume-on-system-start/" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://blog.tinned-software.net/automount-a-luks-encrypted-volume-on-system-start/</a>
|
||
<br class="ltx_break">On commence par créer un fichier <span class="ltx_text ltx_font_typewriter">disksecretkey</span> rempli aléatoirement qui servira à contenir la clé de déchiffrement. Il faudra peut être créer le dossier <span class="ltx_text ltx_font_typewriter">luks-keys</span> si il n’existe pas.</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,ZGQgaWY9L2Rldi91cmFuZG9tIG9mPS9ldGMvbHVrcy1rZXlzL2Rpc2tzZWNyZXRrZXkgYnM9NTEyIGNvdW50PTg=">⬇</a></div>
|
||
<div id="lstnumberx25" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dd</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">if</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">urandom</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">of</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">etc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luks</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keys</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">disksecretkey</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">bs</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=512</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">count</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=8</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On peut ensuite lier ce fichier à notre disque et sa phrase de déchiffrement :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBjcnlwdHNldHVwIC12IGx1a3NBZGRLZXkgL2Rldi9zZGIxIC9ldGMvbHVrcy1rZXlzL2Rpc2tzZWNyZXRrZXk=">⬇</a></div>
|
||
<div id="lstnumberx26" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptsetup</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">v</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luksAddKey</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdb1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">etc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luks</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keys</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">disksecretkey</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Cela vous demandera la phrase de déchiffrement de votre disque (attention à bien renseigner votre partition à la place de sdb1).
|
||
<br class="ltx_break">Ensuite on récupère le UUID du disque pour l’utiliser dans les règles au démarrage :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBjcnlwdHNldHVwIGx1a3NEdW1wIC9kZXYvc2RiMSB8IGdyZXAgIlVVSUQi">⬇</a></div>
|
||
<div id="lstnumberx27" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cryptsetup</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luksDump</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdb1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grep</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"UUID"</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On ajoute une règle dans le fichier <span class="ltx_text ltx_font_typewriter">/etc/crypttab</span> :
|
||
</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c2RiMS1jcnlwdCBVVUlEPTJhMjM3NWJmLTIyNjItNDEzYy1hNmE4LWZiZWIxNDY1OWM4NSAvZXRjL2x1a3Mta2V5cy9kaXNrc2VjcmV0a2V5IGx1a3M=">⬇</a></div>
|
||
<div id="lstnumberx28" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdb1</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">crypt</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">UUID</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=2</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">a2375bf</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-2262-413</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">c</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">a6a8</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fbeb14659c85</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">etc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luks</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keys</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">disksecretkey</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">luks</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Enfin, pour qu’il soit monté au démarrage on ajoute une ligne au fichier dédié : <span class="ltx_text ltx_font_typewriter">/etc/fstab</span></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,L2Rldi9tYXBwZXIvc2RiMS1jcnlwdCAvbWVkaWEvZ2VyaGFyZC9EYXRlbiBleHQ0ICAgIGRlZmF1bHRzICAgMCAgICAgICAy">⬇</a></div>
|
||
<div id="lstnumberx29" class="ltx_listingline">
|
||
<span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">dev</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">mapper</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sdb1</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">crypt</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">media</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">gerhard</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Daten</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">ext4</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">defaults</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">0</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">2</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pour des règles plus spécifiques consultez la page dédiée à <span class="ltx_text ltx_font_typewriter">fstab</span> : <a href="http://man7.org/linux/man-pages/man5/fstab.5.html" title="" class="ltx_ref ltx_url ltx_font_typewriter">http://man7.org/linux/man-pages/man5/fstab.5.html</a></p>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
<section id="SS4" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.4 </span>Customisation, paramétrage</h2>
|
||
|
||
<section id="SS4.SSS1" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.4.1 </span>Installer une police au format fichier .ttf</h3>
|
||
|
||
<div id="SS4.SSS1.p1" class="ltx_para">
|
||
<p class="ltx_p">Pour l’installer seulement pour l’utilisateur·ice :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,Y3AgZXhlbXBsZS50dGYgLmZvbnRz">⬇</a></div>
|
||
<div id="lstnumberx30" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cp</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">exemple</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">ttf</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fonts</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pour l’installer sur tout le système :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,Y3AgZXhlbXBsZS50dGYgL3Vzci9zaGFyZS9mb250cw==">⬇</a></div>
|
||
<div id="lstnumberx31" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cp</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">exemple</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">ttf</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">usr</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">share</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fonts</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section id="SS4.SSS2" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.4.2 </span>Changer l’image de grub (écran de démarrage)</h3>
|
||
|
||
<div id="SS4.SSS2.p1" class="ltx_para ltx_noindent">
|
||
<p class="ltx_p">Il est possible de changer l’image d’arrière plan de GRUB, l’utilitaire de démarrage de Debian (et d’autres distribution) qui permet de choisir quelle distribution lancer.
|
||
<br class="ltx_break">L’image utilisée doit cependant respecter un format spécifique, elles peuvent être png, jpg/jpeg ou tga mais avec ces caractéristiques :
|
||
<br class="ltx_break"></p>
|
||
<ol id="I1" class="ltx_enumerate">
|
||
<li id="I1.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">1.</span>
|
||
<div id="I1.i1.p1" class="ltx_para">
|
||
<p class="ltx_p">les images doivent être 8-bits (256 couleurs)</p>
|
||
</div>
|
||
</li>
|
||
<li id="I1.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">2.</span>
|
||
<div id="I1.i2.p1" class="ltx_para">
|
||
<p class="ltx_p">les images doivent être non-indexées, RGB
|
||
</p>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
<p class="ltx_p">Des convertisseurs d’images pour les transformer sous ces caractéristiques sont trouvables sur <span class="ltx_text ltx_emph ltx_font_italic">internet</span>.
|
||
<br class="ltx_break">Par défaut, si le paquet <span class="ltx_text ltx_emph ltx_font_italic">desktop-base</span> est installé les images utilisables sont trouvables dans le répertoire <code class="ltx_verbatim ltx_font_typewriter">/usr/share/images/desktop-base/</code>.
|
||
<br class="ltx_break">GRUB va chercher l’image à afficher selon un ordre particulier présenté ici par ordre de priorité :
|
||
<br class="ltx_break"></p>
|
||
<ol id="I2" class="ltx_enumerate">
|
||
<li id="I2.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">1.</span>
|
||
<div id="I2.i1.p1" class="ltx_para">
|
||
<p class="ltx_p">la ligne <code class="ltx_verbatim ltx_font_typewriter">GRUB_BACKGROUND</code> dans <code class="ltx_verbatim ltx_font_typewriter">/etc/default/grub</code></p>
|
||
</div>
|
||
</li>
|
||
<li id="I2.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">2.</span>
|
||
<div id="I2.i2.p1" class="ltx_para">
|
||
<p class="ltx_p">la première image trouvée dans <code class="ltx_verbatim ltx_font_typewriter">/boot/grub/</code></p>
|
||
</div>
|
||
</li>
|
||
<li id="I2.i3" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">3.</span>
|
||
<div id="I2.i3.p1" class="ltx_para">
|
||
<p class="ltx_p">l’image spécifiée dans <code class="ltx_verbatim ltx_font_typewriter">/usr/share/desktop-base/grub_background.sh</code></p>
|
||
</div>
|
||
</li>
|
||
<li id="I2.i4" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">4.</span>
|
||
<div id="I2.i4.p1" class="ltx_para">
|
||
<p class="ltx_p">le fichier listé à la ligne WALLPAPER dans <code class="ltx_verbatim ltx_font_typewriter">/etc/grub.d/05_debian_theme</code></p>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
<p class="ltx_p">Le plus simple étant donc de modifier ou créer la ligne <code class="ltx_verbatim ltx_font_typewriter">GRUB_BACKGROUND=</code> dans
|
||
<code class="ltx_verbatim ltx_font_typewriter">/etc/default/grub</code> en ajoutant le chemin du fichier derrière le <code class="ltx_verbatim ltx_font_typewriter">=</code>. <span class="ltx_text ltx_emph ltx_font_italic">pour modifier ce fichier, il est nécessaire d’avoir les droits administrateur</span>.
|
||
<span class="ltx_text ltx_font_bold">Pour avoir la modification effective, il faut utiliser la commande :
|
||
<br class="ltx_break"><code class="ltx_verbatim ltx_font_typewriter ltx_font_medium">update-grub</code>
|
||
<br class="ltx_break"></span><span class="ltx_text ltx_font_smallcaps">Changer les couleurs du texte :
|
||
<br class="ltx_break"></span>On peut également changer les couleurs du texte grâce aux 3 options suivantes :</p>
|
||
<ol id="I3" class="ltx_enumerate">
|
||
<li id="I3.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">1.</span>
|
||
<div id="I3.i1.p1" class="ltx_para">
|
||
<p class="ltx_p"><code class="ltx_verbatim ltx_font_typewriter">menu_color_highlight</code> : la couleur de l’entrée menu surlignée et son fond à l’intérieur du menu.</p>
|
||
</div>
|
||
</li>
|
||
<li id="I3.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">2.</span>
|
||
<div id="I3.i2.p1" class="ltx_para">
|
||
<p class="ltx_p"><code class="ltx_verbatim ltx_font_typewriter">menu_color_normal</code> : la couleur de l’entrée menu non-sélectionnée et son fond</p>
|
||
</div>
|
||
</li>
|
||
<li id="I3.i3" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">3.</span>
|
||
<div id="I3.i3.p1" class="ltx_para">
|
||
<p class="ltx_p"><code class="ltx_verbatim ltx_font_typewriter">color_normal</code> : la couleur du texte et son fond à l’extérieur du menu.</p>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
<p class="ltx_p">La syntaxe à utiliser est la suivante :
|
||
<code class="ltx_verbatim ltx_font_typewriter">menu_color_highlight=fg-color/bg-color</code>
|
||
Et la liste des couleurs supportées est :
|
||
<br class="ltx_break">black
|
||
<br class="ltx_break">blue
|
||
<br class="ltx_break">brown
|
||
<br class="ltx_break">cyan
|
||
<br class="ltx_break">dark-gray
|
||
<br class="ltx_break">green
|
||
<br class="ltx_break">light-cyan
|
||
<br class="ltx_break">light-blue
|
||
<br class="ltx_break">light-green
|
||
<br class="ltx_break">light-gray
|
||
<br class="ltx_break">light-magenta
|
||
<br class="ltx_break">light-red
|
||
<br class="ltx_break">magenta
|
||
<br class="ltx_break">red
|
||
<br class="ltx_break">white
|
||
<br class="ltx_break">yellow
|
||
<br class="ltx_break">Pour changer les couleurs, il faut ensuite ouvrir <code class="ltx_verbatim ltx_font_typewriter">/etc/grub.d/05_debian_theme</code> et trouver la ligne :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,aWYgWyAteiAiJHsyfSIgXSAmJiBbIC16ICIkezN9IiBdOyB0aGVuCiAgICAgICAgICAgICAgICBlY2hvICIgIHRydWUiCmZp">⬇</a></div>
|
||
<div id="lstnumberx32" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">if</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">[</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">z</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"${2}"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">]</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">&&</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">[</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">z</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"${3}"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">];</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">then</span>
|
||
</div>
|
||
<div id="lstnumberx33" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"<span class="ltx_text ltx_lst_space"> </span>true"</span>
|
||
</div>
|
||
<div id="lstnumberx34" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">fi</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Et la remplacer par :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,aWYgWyAteiAiJHsyfSIgXSAmJiBbIC16ICIkezN9IiBdOyB0aGVuCiAgICAjIGVjaG8gIiAgdHJ1ZSIKICAgIGVjaG8gIiAgICBzZXQgY29sb3JfaGlnaGxpZ2h0PXJlZC9ncmVlbiIKICAgIGVjaG8gIiAgICBzZXQgY29sb3Jfbm9ybWFsPWxpZ2h0LWN5YW4vYmxhY2siCmZp">⬇</a></div>
|
||
<div id="lstnumberx35" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">if</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">[</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">z</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"${2}"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">]</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">&&</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">[</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">z</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"${3}"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">];</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">then</span>
|
||
</div>
|
||
<div id="lstnumberx36" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_comment ltx_font_typewriter" style="font-size:90%;color:#1E843E;">#<span class="ltx_text ltx_lst_space"> </span>echo<span class="ltx_text ltx_lst_space"> </span>"<span class="ltx_text ltx_lst_space"> </span>true"</span>
|
||
</div>
|
||
<div id="lstnumberx37" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"<span class="ltx_text ltx_lst_space"> </span>set<span class="ltx_text ltx_lst_space"> </span>color_highlight=red/green"</span>
|
||
</div>
|
||
<div id="lstnumberx38" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"<span class="ltx_text ltx_lst_space"> </span>set<span class="ltx_text ltx_lst_space"> </span>color_normal=light-cyan/black"</span>
|
||
</div>
|
||
<div id="lstnumberx39" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">fi</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_bold">Ne pas changer le "black"</span> dans <code class="ltx_verbatim ltx_font_typewriter">color_normal</code> sinon l’image ne sera pas transparente à l’endroit où le menu est affiché.
|
||
<br class="ltx_break"><span class="ltx_text ltx_font_bold">Pour avoir la modification effective et la visualiser, il faut utiliser la commande suivante et redémarrer
|
||
<br class="ltx_break"><code class="ltx_verbatim ltx_font_typewriter ltx_font_medium">update-grub</code>
|
||
<br class="ltx_break"></span></p>
|
||
</div>
|
||
<div id="SS4.SSS2.p2" class="ltx_para">
|
||
<p class="ltx_p">Il est également possible d’expérimenter en "live" au démarrage en arrêtant le compte à rebours (en tapant n’importe quelle touche) et en tapant "C" pour entrer dans la ligne de commande GRUB.
|
||
<br class="ltx_break">Vous pouvez alors expérimenter à votre souhait :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,Z3J1Yj4gc2V0IGNvbG9yX2hpZ2hsaWdodD1yZWQvZ3JlZW4KZ3J1Yj4gc2V0IGNvbG9yX25vcm1hbD1saWdodC1jeWFuL2JsYWNr">⬇</a></div>
|
||
<div id="lstnumberx40" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grub</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">></span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">set</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">color_highlight</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">red</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">green</span>
|
||
</div>
|
||
<div id="lstnumberx41" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grub</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">></span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">set</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">color_normal</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">=</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">light</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">cyan</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">black</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pressez ESC pour voir les modifications et recommencez si cela ne vous convient pas.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS4.SSS3" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.4.3 </span>Utiliser le pavé numérique comme souris</h3>
|
||
|
||
<div id="SS4.SSS3.p1" class="ltx_para">
|
||
<p class="ltx_p">Il est possible d’utiliser le pavé numérique comme une souris ! Pour l’activer de manière non permanente il suffit d’utiliser :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c2V0eGtibWFwIC1vcHRpb24ga2V5cGFkOnBvaW50ZXJrZXlz">⬇</a></div>
|
||
<div id="lstnumberx42" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">setxkbmap</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">option</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">keypad</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">:</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">pointerkeys</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Ensuite pour l’utiliser il faut utiliser la combinaison <span class="ltx_text ltx_font_bold">Shift+NumLock</span> et le pavé numérique fonctionnera comme une souris avec des raccourcis spécifiques.
|
||
<br class="ltx_break">Pour se déplacer :</p>
|
||
<ul id="I4" class="ltx_itemize">
|
||
<li id="I4.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I4.i1.p1" class="ltx_para">
|
||
<p class="ltx_p">7, 8, 9 pour un déplacement vers le haut</p>
|
||
</div>
|
||
</li>
|
||
<li id="I4.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I4.i2.p1" class="ltx_para">
|
||
<p class="ltx_p">4, 6 pour gauche et droite
|
||
</p>
|
||
</div>
|
||
</li>
|
||
<li id="I4.i3" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I4.i3.p1" class="ltx_para">
|
||
<p class="ltx_p">1, 2, 3 pour le bas</p>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
<p class="ltx_p">Pour cliquer c’est légèrement compliqué :</p>
|
||
<ul id="I5" class="ltx_itemize">
|
||
<li id="I5.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I5.i1.p1" class="ltx_para">
|
||
<p class="ltx_p">/ sélectionne le clic gauche (appuyer deux fois pour un double clic, trois fois pour un triple)</p>
|
||
</div>
|
||
</li>
|
||
<li id="I5.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I5.i2.p1" class="ltx_para">
|
||
<p class="ltx_p">* sélectionne le clic du milieu</p>
|
||
</div>
|
||
</li>
|
||
<li id="I5.i3" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I5.i3.p1" class="ltx_para">
|
||
<p class="ltx_p">- sélectionne le clic droit</p>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
<p class="ltx_p">Une fois que le clic est sélectionné il est seulement <span class="ltx_text ltx_font_bold">actif</span> et il faut donc utiliser une autre touche pour l’utiliser :</p>
|
||
<ul id="I6" class="ltx_itemize">
|
||
<li id="I6.i1" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I6.i1.p1" class="ltx_para">
|
||
<p class="ltx_p">5 ou + pour réellement cliquer</p>
|
||
</div>
|
||
</li>
|
||
<li id="I6.i2" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I6.i2.p1" class="ltx_para">
|
||
<p class="ltx_p">0 / ins pour cliquer et garder actif (pour faire glisser)</p>
|
||
</div>
|
||
</li>
|
||
<li id="I6.i3" class="ltx_item" style="list-style-type:none;">
|
||
<span class="ltx_tag ltx_tag_item">—</span>
|
||
<div id="I6.i3.p1" class="ltx_para">
|
||
<p class="ltx_p">. / Del pour libérer</p>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
<p class="ltx_p">Pour garder cette configuration au redémarrage il faut ajouter l’option dans le fichier de configuration, ou le créer si besoin :
|
||
<br class="ltx_break"><span class="ltx_text ltx_font_typewriter">/etc/X11/xorg.conf.d/00-keyboard.conf</span></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,U2VjdGlvbiAiSW5wdXRDbGFzcyIKICAgICAgICBJZGVudGlmaWVyICJzeXN0ZW0ta2V5Ym9hcmQiCiAgICAgICAgTWF0Y2hJc0tleWJvYXJkICJvbiIKICAgICAgICBPcHRpb24gIlhrYk9wdGlvbnMiICJrZXlwYWQ6cG9pbnRlcmtleXMiCkVuZFNlY3Rpb24=">⬇</a></div>
|
||
<div id="lstnumberx43" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Section</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"InputClass"</span>
|
||
</div>
|
||
<div id="lstnumberx44" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Identifier</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"system-keyboard"</span>
|
||
</div>
|
||
<div id="lstnumberx45" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">MatchIsKeyboard</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"on"</span>
|
||
</div>
|
||
<div id="lstnumberx46" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Option</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"XkbOptions"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"keypad:pointerkeys"</span>
|
||
</div>
|
||
<div id="lstnumberx47" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">EndSection</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_smallcaps">Source :</span> <a href="https://linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg</a></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS4.SSS4" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.4.4 </span>Luminosité</h3>
|
||
|
||
<div id="SS4.SSS4.p1" class="ltx_para">
|
||
<p class="ltx_p">Pour régler la luminosité en ligne de commande, on utilise <span class="ltx_text ltx_font_bold">xrandr</span>.
|
||
<br class="ltx_break">Tout d’abord on cherche l’écran que l’on veut paramétrer :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,fiQgeHJhbmRyClNjcmVlbiAwOiBtaW5pbXVtIDMyMCB4IDIwMCwgY3VycmVudCAxMzY2IHggNzY4LCBtYXhpbXVtIDgxOTIgeCA4MTkyCkxWRFMtMSBjb25uZWN0ZWQgcHJpbWFyeSAxMzY2eDc2OCswKzAgKG5vcm1hbCBsZWZ0IGludmVydGVkIHJpZ2h0IHggYXhpcyB5IGF4aXMp">⬇</a></div>
|
||
<div id="lstnumberx48" class="ltx_listingline">
|
||
<span class="ltx_text ltx_font_typewriter" style="font-size:90%;">~</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">$</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span>
|
||
</div>
|
||
<div id="lstnumberx49" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Screen</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">0:</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">minimum</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">320</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">x</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">200,</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">current</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">1366</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">x</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">768,</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">maximum</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">8192</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">x</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">8192</span>
|
||
</div>
|
||
<div id="lstnumberx50" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">LVDS</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">connected</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">primary</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">1366</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">x768</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">+0+0</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">(</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">normal</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">left</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">inverted</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">right</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">x</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">axis</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">y</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">axis</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">)</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On voit donc que l’écran connecté est LVDS-1. Pour le baisser à 50% de luminosité :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,eHJhbmRyIC0tb3V0cHV0IExWRFMtMSAtLWJyaWdodG5lc3MgMC41">⬇</a></div>
|
||
<div id="lstnumberx51" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">output</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">LVDS</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">brightness</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">0.5</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pour toute autre valeur on ajuste le nombre renseigné (1 pour avoir 100%, 0.1 pour 10% etc).
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS4.SSS4.p2" class="ltx_para">
|
||
<p class="ltx_p">J’ai trouvé une manière de changer la luminosité après quelques recherches, c’est probablement une manière beaucoup trop compliquée de faire mais c’est pratique pour apprendre les commandes et ça fonctionne.
|
||
<br class="ltx_break">J’ai fait trois scripts différents, un pour augmenter de 10% la luminosité, un pour la baisser et un dernier pour juste afficher la luminosité actuelle en pourcentage.
|
||
<br class="ltx_break">Ces scripts sont composés de seulement une ligne mais avec plusieurs commandes dedans. Ainsi, celle-ci permet de baisser la luminosité de 10% :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,eHJhbmRyIC0tb3V0cHV0IGVEUC0xIC0tYnJpZ2h0bmVzcyAkKGVjaG8gIiQoeHJhbmRyIC0tY3VycmVudCAtLXZlcmJvc2V8Z3JlcCAtaSBCcmlnaHRuZXNzIHwgc2VkIHMvIkJyaWdodG5lc3M6ICIvL2cpLS4xIiB8IGJjKQ==">⬇</a></div>
|
||
<div id="lstnumberx52" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">output</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">eDP</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">brightness</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">$</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">(</span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"$(xrandr<span class="ltx_text ltx_lst_space"> </span>--current<span class="ltx_text ltx_lst_space"> </span>--verbose|grep<span class="ltx_text ltx_lst_space"> </span>-i<span class="ltx_text ltx_lst_space"> </span>Brightness<span class="ltx_text ltx_lst_space"> </span>|<span class="ltx_text ltx_lst_space"> </span>sed<span class="ltx_text ltx_lst_space"> </span>s/"</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Brightness</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">:</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"//g)-.1"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">bc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">)</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On retrouve la commande de départ avec le <span class="ltx_text ltx_font_typewriter">--output</span> avec le nom de votre écran puis <span class="ltx_text ltx_font_typewriter">--brightness</span> qui prend la valeur en décimale qu’on veut pour l’écran (1.0 pour 100% et 0.1 pour 10%). On cherche d’abord la luminosité actuelle.
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,eHJhbmRyIC0tY3VycmVudCAtLXZlcmJvc2V8Z3JlcCAtaSBCcmlnaHRuZXNz">⬇</a></div>
|
||
<div id="lstnumberx53" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">current</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">verbose</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grep</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">i</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Brightness</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Donne quelque chose comme :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,QnJpZ2h0bmVzczogMS4w">⬇</a></div>
|
||
<div id="lstnumberx54" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Brightness</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">:</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">1.</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On utilise alors :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,fCBzZWQgcy8iQnJpZ2h0bmVzczogIi8vZw==">⬇</a></div>
|
||
<div id="lstnumberx55" class="ltx_listingline">
|
||
<span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">sed</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">s</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"Brightness:<span class="ltx_text ltx_lst_space"> </span>"</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">//</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">g</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p"><span class="ltx_text ltx_emph ltx_font_italic">Le signe <span class="ltx_text ltx_font_typewriter">|</span> permet d’envoyer le résultat de la commande à gauche dans la commande à droite.
|
||
<br class="ltx_break"></span>Cela permet de récupérer seulement la valeur décimale.
|
||
Puis on utilise <span class="ltx_text ltx_font_typewriter">-.1</span> pour enlever 10% à la valeur trouvée.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS4.SSS4.p3" class="ltx_para">
|
||
<p class="ltx_p">En <span class="ltx_text ltx_font_bold">bash</span> on ne peut pas faire du calcul en décimal puisque les valeurs sont considérés comme des chaînes de caractères. Il faut alors utiliser <span class="ltx_text ltx_font_bold">bc</span> : <a href="http://jlbicquelet.free.fr/unix/bc.php" title="" class="ltx_ref ltx_url ltx_font_typewriter">http://jlbicquelet.free.fr/unix/bc.php</a>.
|
||
<br class="ltx_break"><span class="ltx_text ltx_font_bold">bc</span> prend comme argument la valeur de la parenthèse (à l’aide du signe <span class="ltx_text ltx_font_typewriter">$</span>) et fait le calcul, qui nous rend donc la valeur actuelle de la luminosité moins 10%.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS4.SSS4.p4" class="ltx_para">
|
||
<p class="ltx_p">De la même manière, on a la commande pour augmenter de 10% :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,eHJhbmRyIC0tb3V0cHV0IGVEUC0xIC0tYnJpZ2h0bmVzcyAkKGVjaG8gIiQoeHJhbmRyIC0tY3VycmVudCAtLXZlcmJvc2V8Z3JlcCAtaSBCcmlnaHRuZXNzIHwgc2VkIHMvIkJyaWdodG5lc3M6ICIvL2cpKy4xIiB8IGJjKQ==">⬇</a></div>
|
||
<div id="lstnumberx56" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">output</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">eDP</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-1</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">brightness</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">$</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">(</span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"$(xrandr<span class="ltx_text ltx_lst_space"> </span>--current<span class="ltx_text ltx_lst_space"> </span>--verbose|grep<span class="ltx_text ltx_lst_space"> </span>-i<span class="ltx_text ltx_lst_space"> </span>Brightness<span class="ltx_text ltx_lst_space"> </span>|<span class="ltx_text ltx_lst_space"> </span>sed<span class="ltx_text ltx_lst_space"> </span>s/"</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Brightness</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">:</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"//g)+.1"</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">bc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">)</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="SS4.SSS4.p5" class="ltx_para">
|
||
<p class="ltx_p">Enfin, j’ai fait une commande pour récupérer la valeur actuelle de la luminosité et la convertir en pourcentage :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,ZWNobyAkKHhyYW5kciAtLWN1cnJlbnQgLS12ZXJib3NlfGdyZXAgLWkgQnJpZ2h0bmVzcyB8IHNlZCBzLyJCcmlnaHRuZXNzOiAiLy9nKSoxMDAgfCBiYw==">⬇</a></div>
|
||
<div id="lstnumberx57" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">echo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">$</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">(</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">xrandr</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">current</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">--</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">verbose</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">grep</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">i</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">Brightness</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_keyword ltx_font_typewriter" style="font-size:90%;color:#0000FF;">sed</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">s</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_string ltx_font_typewriter" style="font-size:90%;color:#820210;">"Brightness:<span class="ltx_text ltx_lst_space"> </span>"</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">//</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">g</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">)*100</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">|</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">bc</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">On retrouve la même base sauf que le calcul est seulement une multiplication par 100 de la valeur actuelle. Cette commande est utilisée pour mon widget de luminosité.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
</section>
|
||
<section id="SS4.SSS5" class="ltx_subsubsection">
|
||
<h3 class="ltx_title ltx_title_subsubsection">
|
||
<span class="ltx_tag ltx_tag_subsubsection">2.4.5 </span>Changement image de profil</h3>
|
||
|
||
<div id="SS4.SSS5.p1" class="ltx_para">
|
||
<p class="ltx_p">Pour modifier l’image affichée sur l’écran de connexion.</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBuYW5vIC9ldGMvbGlnaHRkbS9saWdodGRtLWd0ay1ncmVldGVyLmNvbmY=">⬇</a></div>
|
||
<div id="lstnumberx58" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">nano</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">etc</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">lightdm</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">/</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">lightdm</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">gtk</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">greeter</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">.</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">conf</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Le paquet accountsservice résoud une dépendance et permet d’utiliser mugshot qui définit la photo de profil du compte.
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
<section id="SS5" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.5 </span>Chercher et supprimer des fichiers en doublon</h2>
|
||
|
||
<div id="SS5.p1" class="ltx_para ltx_noindent">
|
||
<p class="ltx_p">On utilise le paquet fdupes :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,ZmR1cGVzIFtvcHRpb25zXSBESVJFQ1RPUlk=">⬇</a></div>
|
||
<div id="lstnumberx59" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fdupes</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">[</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">options</span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">]</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">DIRECTORY</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p">Pour chercher les doublons récursivement dans un dossier et les supprimer :
|
||
<br class="ltx_break"></p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,ZmR1cGVzIC1yIC1kIERJUkVDVE9SWQ==">⬇</a></div>
|
||
<div id="lstnumberx60" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fdupes</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">r</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_font_typewriter" style="font-size:90%;">-</span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">d</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">DIRECTORY</span>
|
||
</div>
|
||
</div>
|
||
<p class="ltx_p"><span class="ltx_text ltx_font_smallcaps">Sources :</span> : <a href="https://linux.die.net/man/1/fdupes" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://linux.die.net/man/1/fdupes</a>
|
||
<br class="ltx_break"></p>
|
||
</div>
|
||
<div id="SS5.p2" class="ltx_para">
|
||
<p class="ltx_p">Une autre solution est d’utiliser fslint :</p>
|
||
<div class="ltx_listing ltx_lst_language_bash ltx_lstlisting ltx_listing" style="background-color:#BFBFBF;">
|
||
<div class="ltx_listing_data"><a href="data:text/plain;base64,c3VkbyBhcHQgaW5zdGFsbCBmc2xpbnQ=">⬇</a></div>
|
||
<div id="lstnumberx61" class="ltx_listingline">
|
||
<span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">sudo</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">apt</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">install</span><span class="ltx_text ltx_lst_space ltx_font_typewriter" style="font-size:90%;"> </span><span class="ltx_text ltx_lst_identifier ltx_font_typewriter" style="font-size:90%;">fslint</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section id="SS6" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.6 </span>Compresser des images en ligne de commande</h2>
|
||
|
||
<div id="SS6.p1" class="ltx_para">
|
||
<p class="ltx_p">sudo apt-get install jpegoptim</p>
|
||
</div>
|
||
</section>
|
||
<section id="SS7" class="ltx_subsection">
|
||
<h2 class="ltx_title ltx_title_subsection">
|
||
<span class="ltx_tag ltx_tag_subsection">2.7 </span>Image ISO personnalisée pour debian</h2>
|
||
|
||
<div id="SS7.p1" class="ltx_para">
|
||
<p class="ltx_p">Liens ressources :
|
||
<br class="ltx_break">Live Build : création d’une image iso live personnalisée <a href="https://debian-facile.org/utilisateurs:abdelqahar:tutos:live-build" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://debian-facile.org/utilisateurs:abdelqahar:tutos:live-build</a>
|
||
<br class="ltx_break">Comment construire un Live Debian : <a href="https://arpinux.developpez.com/construire-un-live-debian/" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://arpinux.developpez.com/construire-un-live-debian/</a>
|
||
<br class="ltx_break">Création d’une image live Debian bootable : <a href="https://wiki.csnu.org/index.php/Cr%C3%A9ation_d%27une_image_debian_bootable_(syst%C3%A8me_de_rescue,_live_system)#Pour_debian_stretch_:" title="" class="ltx_ref ltx_url ltx_font_typewriter">https://wiki.csnu.org/index.php/Cr%C3%A9ation_d%27une_image_debian_bootable_(syst%C3%A8me_de_rescue,_live_system)#Pour_debian_stretch_:</a></p>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
</div>
|
||
<footer class="ltx_page_footer">
|
||
<div>
|
||
<a href="S1.html" title="1 Commandes usuelles ‣ Compilation de commandes utiles régulièrement, ou pas" class="ltx_ref" rel="prev"><span class="ltx_text ltx_ref_title"><span class="ltx_tag ltx_tag_ref">1 </span>Commandes usuelles</span></a><a href="S3.html" title="3 Manjaro - Arch Linux ‣ Compilation de commandes utiles régulièrement, ou pas" class="ltx_ref" rel="next"><span class="ltx_text ltx_ref_title"><span class="ltx_tag ltx_tag_ref">3 </span>Manjaro - Arch Linux</span></a>
|
||
</div>
|
||
<div class="ltx_page_logo">Generated on Tue Nov 24 18:44:33 2020 by <a href="http://dlmf.nist.gov/LaTeXML/">LaTeXML <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]"></a>
|
||
</div></footer>
|
||
</div>
|
||
</body>
|
||
</html>
|