]> fred1m.tech Git - papier-crayon.git/blobdiff - source/machine/FS-mmdebstrap.rst
Après la mise en place de "FStrom" :[
[papier-crayon.git] / source / machine / FS-mmdebstrap.rst
index c00b5ef8c6e0b8ac813ec6b9f4fa41a4806d20e0..47d3d8f94f581b9e8c5157a5ef74734570e531ed 100644 (file)
@@ -6,7 +6,9 @@ Gérer un emplacement pertinent
 
 *sans* super-privilège
 
-::
+.. code-block:: bash
+   :linenos:
+   :emphasize-lines: 17,17
 
    cd
    pwd
@@ -17,10 +19,8 @@ Gérer un emplacement pertinent
 
    # attention aux réglages personnels
 
-   cd ; cd machines
    man mkdir
    ls -rtlh
-   man ln
    cd
    pwd
 
@@ -29,34 +29,40 @@ Gérer un emplacement pertinent
    machinectl list-images
    export NM=cnt0 ; machinectl image-status $NM
 
-   # AVEC super-privilège
+*AVEC* super-privilège
+
+.. code-block:: bash
+   :linenos:
 
    # respectons-nous
    ls -rtlh /var/lib/machines
 
-   # ln -s CIBLE NOM_LIEN
-   export NM=cnt0 ; ln -s /Chemin_Absolu/$NM /var/lib/machines/$NM
-
 Initialiser un système de fichier supplémentaire
 ------------------------------------------------
 
-   *changer ``cnt0`` !*
+.. warning::
+
+   changer ``cnt1`` !
 
 ::
 
    $ help cd ; help pwd
-   $ pwd ; mkdir SiBesoin ; cd commeIlFaut
 
 **AVEC** super-privilège
 
 ::
 
-   http_proxy=http://172.20.100.242:3142 mmdebstrap \
-    bookworm . http://deb.debian.org/debian \
-    --include=systemd-container,network-manager,sudo,ca-certificates \
-    --customize-hook='echo cnt0 > "$1"/etc/hostname' \
-    --customize-hook='echo 127.0.1.1 cnt0 >> "$1"/etc/hosts'
+   pwd ; mkdir SiBesoin ; cd commeIlFaut
 
-.. warning::
+   http_proxy=http://10.0.2.2:3142 mmdebstrap \
+   trixie . http://deb.debian.org/debian \
+   --include=systemd-container,network-manager,sudo,ca-certificates \
+   --customize-hook='echo cnt1 > "$1"/etc/hostname' \
+   --customize-hook='echo 127.0.1.1 cnt1 >> "$1"/etc/hosts' \
+   --customize-hook='echo Acquire::http::Proxy \"http://10.0.2.2:3142\"\; \
+    >> "$1"/etc/apt/apt.conf.d/04apt-cacher-ng-proxy'
+
+
+.. tip::
 
    Prendre connaissance des affichages