|
|
|
@ -57,12 +57,13 @@ prepare the system's directory
|
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
* become root
|
|
|
|
|
* make root directory
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
su
|
|
|
|
|
|
|
|
|
|
* make root directory
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
mkdir '/squashfs-root'
|
|
|
|
@ -83,13 +84,50 @@ generate the minimal base
|
|
|
|
|
Configure preinstalled packages
|
|
|
|
|
===============================
|
|
|
|
|
|
|
|
|
|
apt
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
configuration
|
|
|
|
|
^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
* /etc/apt/apt.conf
|
|
|
|
|
|
|
|
|
|
Acquire::AllowInsecureRepositories False;
|
|
|
|
|
Acquire::AllowWeakRepositories False;
|
|
|
|
|
Acquire::AllowDowngradeToInsecureRepositories False;
|
|
|
|
|
Acquire::Check-Valid-Until False;
|
|
|
|
|
APT::Install-Recommends False;
|
|
|
|
|
APT::Install-Suggests False;
|
|
|
|
|
APT::Get::Show-Versions True;
|
|
|
|
|
Dir::Etc::SourceParts "";
|
|
|
|
|
Dpkg::Progress True;
|
|
|
|
|
|
|
|
|
|
preferences
|
|
|
|
|
^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
* /etc/apt/preferences
|
|
|
|
|
|
|
|
|
|
.. todo:: preferences
|
|
|
|
|
|
|
|
|
|
sources
|
|
|
|
|
^^^^^^^
|
|
|
|
|
|
|
|
|
|
* /etc/apt/sources.list
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
deb [arch=amd64] https://deb.debian.org/debian bullseye main contrib non-free
|
|
|
|
|
deb [arch=amd64] https://deb.debian.org/debian bullseye-backports main contrib non-free
|
|
|
|
|
deb [arch=amd64] https://deb.debian.org/debian bullseye-updates main contrib non-free
|
|
|
|
|
deb [arch=amd64] https://deb.debian.org/debian-security bullseye-security main contrib non-free
|
|
|
|
|
|
|
|
|
|
locales
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
define default locale
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
* etc/default/locale
|
|
|
|
|
* /etc/default/locale
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
@ -111,7 +149,7 @@ define default locale
|
|
|
|
|
define locales to generate
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
* etc/locale.gen
|
|
|
|
|
* /etc/locale.gen
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
@ -128,22 +166,21 @@ generate locales
|
|
|
|
|
[configure command shell](../bash/index.md)
|
|
|
|
|
-------------------------------------------
|
|
|
|
|
|
|
|
|
|
[configure package manager](../apt/index.md)
|
|
|
|
|
--------------------------------------------
|
|
|
|
|
|
|
|
|
|
redefine hostname
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
* /etc/hostname
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
echo "hostname" > "etc/hostname"
|
|
|
|
|
hostname
|
|
|
|
|
|
|
|
|
|
provide known file systems
|
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
|
|
* etc/fstab
|
|
|
|
|
* /etc/fstab
|
|
|
|
|
|
|
|
|
|
Volume temporaire en RAM
|
|
|
|
|
RAM volume for temporary files
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
@ -162,8 +199,6 @@ switch into context
|
|
|
|
|
done
|
|
|
|
|
chroot '/squashfs-root'
|
|
|
|
|
|
|
|
|
|
.. todo:: /dev
|
|
|
|
|
|
|
|
|
|
console-setup
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
@ -210,14 +245,14 @@ authentications: passwords, SSH keys
|
|
|
|
|
upgrade system
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
* dans tous les cas :
|
|
|
|
|
* in any case :
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
|
apt-get upgrade
|
|
|
|
|
|
|
|
|
|
* si besoin, car des paquets rétroportés modifient la distribution :
|
|
|
|
|
* if needed by backported packages :
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
@ -227,14 +262,17 @@ apply system type elements
|
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
|
|
================= ==================================================
|
|
|
|
|
systemd-sysv sans quoi le système ne démarrera pas complètement
|
|
|
|
|
linux-image-amd64 s’il ne s’agit pas d’un conteneur
|
|
|
|
|
live-boot si à destination de boot live
|
|
|
|
|
systemd-sysv sans quoi le système ne démarrera pas complètement
|
|
|
|
|
================= ==================================================
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
apt-get install -t stretch-backports 'linux-image-amd64'
|
|
|
|
|
apt-get install --target-release 'bullseye-backports' 'linux-image-amd64'
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
apt-get install 'live-boot'
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
@ -244,9 +282,9 @@ initialization settings
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
apt-get install -t stretch-backports "systemd-sysv"
|
|
|
|
|
apt-get install --target-release 'bullseye-backports' 'systemd-sysv'
|
|
|
|
|
|
|
|
|
|
* etc/sysctl.conf
|
|
|
|
|
* /etc/sysctl.conf
|
|
|
|
|
|
|
|
|
|
Espace mémoire maximum allouable (à augmenter si hébergement de conteneurs)
|
|
|
|
|
Pourcentage de RAM disponible avant utilisation de la partition d’échange
|
|
|
|
@ -256,13 +294,6 @@ Pourcentage de RAM disponible avant utilisation de la partition d’échange
|
|
|
|
|
vm.max_map_count=1048576
|
|
|
|
|
vm.swappiness=0
|
|
|
|
|
|
|
|
|
|
keeping things light
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
|
|
apt-get install --no-install-recommends …
|
|
|
|
|
|
|
|
|
|
install useful packages
|
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
|
|