system/h2
This commit is contained in:
parent
160628a420
commit
68e38bf225
1 changed files with 50 additions and 26 deletions
|
@ -13,11 +13,13 @@ Debian GNU/Linux distribution installation
|
||||||
Choices
|
Choices
|
||||||
=======
|
=======
|
||||||
|
|
||||||
1. ## disposer de miroirs à jour
|
have up-to-date mirrors available
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
.. todo::
|
.. todo::
|
||||||
|
|
||||||
* ## choisir les paquets indispensables
|
choose critical base packages
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
paquets proposés pour pouvoir travailler correctement
|
paquets proposés pour pouvoir travailler correctement
|
||||||
|
|
||||||
|
@ -27,7 +29,8 @@ Choices
|
||||||
| dialog | sans quoi APT remonte des messages d’alerte |
|
| dialog | sans quoi APT remonte des messages d’alerte |
|
||||||
+-----------+--------------------------------------------------+
|
+-----------+--------------------------------------------------+
|
||||||
|
|
||||||
* ## décider du type de système souhaité
|
decide the desired type of system
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
* le système sera-t-il architecturé
|
* le système sera-t-il architecturé
|
||||||
* en 64 bits ?
|
* en 64 bits ?
|
||||||
|
@ -57,7 +60,8 @@ apt-get install "debootstrap squashfs-tools"
|
||||||
Create a base file hierarchy
|
Create a base file hierarchy
|
||||||
============================
|
============================
|
||||||
|
|
||||||
## préparer le chroot
|
prepare the system's directory
|
||||||
|
------------------------------
|
||||||
|
|
||||||
* devenir root
|
* devenir root
|
||||||
* créer un répertoire, et s’y positionner
|
* créer un répertoire, et s’y positionner
|
||||||
|
@ -70,7 +74,8 @@ mkdir -p "chemin"
|
||||||
cd "chemin"
|
cd "chemin"
|
||||||
```
|
```
|
||||||
|
|
||||||
## générer le système de fichiers
|
generate the minimal base
|
||||||
|
-------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
debootstrap \
|
debootstrap \
|
||||||
|
@ -85,7 +90,8 @@ debootstrap \
|
||||||
Configure preinstalled packages
|
Configure preinstalled packages
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
## définir les claviers par défaut
|
define default keyboard layouts
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
* /etc/default/keyboard
|
* /etc/default/keyboard
|
||||||
|
|
||||||
|
@ -97,7 +103,8 @@ XKBOPTIONS=""
|
||||||
BACKSPACE="guess"
|
BACKSPACE="guess"
|
||||||
```
|
```
|
||||||
|
|
||||||
## définir les locales à générer
|
define default locales to generate
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
* etc/default/locale
|
* etc/default/locale
|
||||||
|
|
||||||
|
@ -125,17 +132,21 @@ en_US.UTF-8 UTF-8
|
||||||
fr_FR.UTF-8 UTF-8
|
fr_FR.UTF-8 UTF-8
|
||||||
```
|
```
|
||||||
|
|
||||||
## [configurer l’interpréteur de commandes](../bash/index.md)
|
[configure command shell](../bash/index.md)
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
## [configurer le gestionnaire de paquets](../apt/index.md)
|
[configure package manager](../apt/index.md)
|
||||||
|
--------------------------------------------
|
||||||
|
|
||||||
## redéfinir le nom d’hôte
|
redefine hostname
|
||||||
|
-----------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "hostname" > "etc/hostname"
|
echo "hostname" > "etc/hostname"
|
||||||
```
|
```
|
||||||
|
|
||||||
## renseigner les volumes connus
|
provide known file systems
|
||||||
|
--------------------------
|
||||||
|
|
||||||
* etc/fstab
|
* etc/fstab
|
||||||
|
|
||||||
|
@ -148,7 +159,8 @@ tmpfs /tmp tmpfs auto,mode=1777 0 0
|
||||||
Install additional packages
|
Install additional packages
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
## changer de contexte
|
switch into context
|
||||||
|
-------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mount --bind /proc proc
|
mount --bind /proc proc
|
||||||
|
@ -157,19 +169,22 @@ chroot .
|
||||||
```
|
```
|
||||||
TODO ? /dev
|
TODO ? /dev
|
||||||
|
|
||||||
## générer les locales
|
generate locales
|
||||||
|
----------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
locale-gen
|
locale-gen
|
||||||
```
|
```
|
||||||
|
|
||||||
## définir le mot de passe root
|
define root password
|
||||||
|
--------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
passwd
|
passwd
|
||||||
```
|
```
|
||||||
|
|
||||||
## utilisateur, invité, sudo
|
user, guest, sudo
|
||||||
|
-----------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install sudo
|
apt-get install sudo
|
||||||
|
@ -183,11 +198,13 @@ useradd -s /bin/bash guest
|
||||||
chown guest: /home/guest
|
chown guest: /home/guest
|
||||||
```
|
```
|
||||||
|
|
||||||
## authentifications : mots de passe, clés SSH
|
authentications: passwords, SSH keys
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
## mettre le système à jour
|
upgrade system
|
||||||
|
--------------
|
||||||
|
|
||||||
* dans tous les cas :
|
* dans tous les cas :
|
||||||
|
|
||||||
|
@ -202,7 +219,8 @@ apt-get upgrade
|
||||||
apt-get dist-upgrade
|
apt-get dist-upgrade
|
||||||
```
|
```
|
||||||
|
|
||||||
## appliquer le type de système choisi
|
apply system type elements
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|||
|
|||
|
||||||
|||
|
|||
|
||||||
|
@ -215,14 +233,15 @@ apt-get install -t stretch-backports "linux-image-amd64"
|
||||||
apt-get install "live-boot"
|
apt-get install "live-boot"
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
----
|
||||||
|
|
||||||
|
initialization settings
|
||||||
|
-----------------------
|
||||||
|
|
||||||
## définir les paramètres d’initialisation
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install -t stretch-backports "systemd-sysv"
|
apt-get install -t stretch-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)
|
||||||
|
@ -233,13 +252,15 @@ vm.max_map_count=1048576
|
||||||
vm.swappiness=0
|
vm.swappiness=0
|
||||||
```
|
```
|
||||||
|
|
||||||
## pour s’en tenir au strict nécessaire
|
keeping things light
|
||||||
|
--------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install --no-install-recommends …
|
apt-get install --no-install-recommends …
|
||||||
```
|
```
|
||||||
|
|
||||||
## installer des paquets utiles
|
install useful packages
|
||||||
|
-----------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install \
|
apt-get install \
|
||||||
|
@ -256,7 +277,8 @@ apt-get install -t "stretch-backports" \
|
||||||
debootstrap \
|
debootstrap \
|
||||||
```
|
```
|
||||||
|
|
||||||
## installer des paquets au choix
|
install other packages
|
||||||
|
----------------------
|
||||||
|
|
||||||
[Choix de paquets commentés](packages.md)
|
[Choix de paquets commentés](packages.md)
|
||||||
|
|
||||||
|
@ -265,7 +287,8 @@ apt-get install "package1" …
|
||||||
apt-get install -t stretch-backports "package1" …
|
apt-get install -t stretch-backports "package1" …
|
||||||
```
|
```
|
||||||
|
|
||||||
## sortir correctement du contexte
|
properly switch back from context
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
* vider le cache d’APT
|
* vider le cache d’APT
|
||||||
|
|
||||||
|
@ -286,7 +309,8 @@ umount sys
|
||||||
umount proc
|
umount proc
|
||||||
```
|
```
|
||||||
|
|
||||||
## épurer l’historique des commandes
|
clean up commands history
|
||||||
|
-------------------------
|
||||||
|
|
||||||
* root/.bash_history
|
* root/.bash_history
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue