Debootstrap
            
          
        
Préparation des disques
- créer les partitions (à minima / et éventuellement swap)
- mkfs.ext4 /dev/sda2
- monter les partitions (par exemple dans /mnt)
- mkswap /dev/sda1et- swapon /dev/sda1
Installation du sytème de base
- apt install debootstrap
- debootstrap --arch amd64 buster /mnt http://deb.debian.org/debian
- mount -o bind /dev/ /mnt/dev
- mount -o bind /proc /mnt/proc
- mount -o bind /sys /mnt/sys
- mount -o bind /dev/pts /mnt/dev/pts
Configuration préalable sytème
- cp /etc/network/interfaces /mnt/etc/network/interfaces
- cp /etc/resolv.conf /mnt/etc/resolv.conf
- cp /etc/apt/sources.list /mnt/etc/apt/sources.list
- créer /mnt/etc/fstab (UUID présents dans /dev/disk/by-uuid/)
Chroot et finalisation des configurations
- chroot /mnt /bin/bash
- apt install locales tzdata console-setup
- dpkg-reconfigure locales
- dpkg-reconfigure tzdata
- dpkg-reconfigure keyboard-configuration
Installation du kernel et de Grub
- apt search linux-image
- apt install linux-image-amd64 linux-headers-X.X.X-X-amd64
- apt install grub-pc
- update-grub
Configuration des utilisateurs
- créer les users
- changer le password root
- apt install openssh-server
- exit pour sortir du chroot et reboot