apt,fixes
This commit is contained in:
parent
232b5bcdd9
commit
f9fca19937
1 changed files with 56 additions and 25 deletions
|
@ -57,12 +57,13 @@ prepare the system's directory
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
* become root
|
* become root
|
||||||
* make root directory
|
|
||||||
|
|
||||||
.. code:: shell
|
.. code:: shell
|
||||||
|
|
||||||
su
|
su
|
||||||
|
|
||||||
|
* make root directory
|
||||||
|
|
||||||
.. code:: shell
|
.. code:: shell
|
||||||
|
|
||||||
mkdir '/squashfs-root'
|
mkdir '/squashfs-root'
|
||||||
|
@ -83,13 +84,50 @@ generate the minimal base
|
||||||
Configure preinstalled packages
|
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
|
locales
|
||||||
-------
|
-------
|
||||||
|
|
||||||
define default locale
|
define default locale
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
* etc/default/locale
|
* /etc/default/locale
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
@ -111,7 +149,7 @@ define default locale
|
||||||
define locales to generate
|
define locales to generate
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
* etc/locale.gen
|
* /etc/locale.gen
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
@ -128,22 +166,21 @@ generate locales
|
||||||
[configure command shell](../bash/index.md)
|
[configure command shell](../bash/index.md)
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
[configure package manager](../apt/index.md)
|
|
||||||
--------------------------------------------
|
|
||||||
|
|
||||||
redefine hostname
|
redefine hostname
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
.. code:: shell
|
* /etc/hostname
|
||||||
|
|
||||||
echo "hostname" > "etc/hostname"
|
::
|
||||||
|
|
||||||
|
hostname
|
||||||
|
|
||||||
provide known file systems
|
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
|
done
|
||||||
chroot '/squashfs-root'
|
chroot '/squashfs-root'
|
||||||
|
|
||||||
.. todo:: /dev
|
|
||||||
|
|
||||||
console-setup
|
console-setup
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@ -210,14 +245,14 @@ authentications: passwords, SSH keys
|
||||||
upgrade system
|
upgrade system
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
* dans tous les cas :
|
* in any case :
|
||||||
|
|
||||||
.. code:: shell
|
.. code:: shell
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade
|
apt-get upgrade
|
||||||
|
|
||||||
* si besoin, car des paquets rétroportés modifient la distribution :
|
* if needed by backported packages :
|
||||||
|
|
||||||
.. code:: shell
|
.. 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
|
linux-image-amd64 s’il ne s’agit pas d’un conteneur
|
||||||
live-boot si à destination de boot live
|
live-boot si à destination de boot live
|
||||||
systemd-sysv sans quoi le système ne démarrera pas complètement
|
|
||||||
================= ==================================================
|
================= ==================================================
|
||||||
|
|
||||||
.. code:: shell
|
.. 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'
|
apt-get install 'live-boot'
|
||||||
|
|
||||||
----
|
----
|
||||||
|
@ -244,9 +282,9 @@ initialization settings
|
||||||
|
|
||||||
.. code:: shell
|
.. 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)
|
Espace mémoire maximum allouable (à augmenter si hébergement de conteneurs)
|
||||||
Pourcentage de RAM disponible avant utilisation de la partition d’échange
|
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.max_map_count=1048576
|
||||||
vm.swappiness=0
|
vm.swappiness=0
|
||||||
|
|
||||||
keeping things light
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
.. code:: shell
|
|
||||||
|
|
||||||
apt-get install --no-install-recommends …
|
|
||||||
|
|
||||||
install useful packages
|
install useful packages
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue