2373
Commentaire:
|
2804
|
Texte supprimé. | Texte ajouté. |
Ligne 1: | Ligne 1: |
#format wiki #language fr #acl +All:read |
|
Ligne 3: | Ligne 6: |
* debootstrap stretch /mnt/chroot http://deb.debian.org/debian | * debootstrap buster /mnt/chroot http://deb.debian.org/debian |
Ligne 22: | Ligne 25: |
deb http://deb.debian.org/debian stretch main contrib non-free deb http://deb.debian.org/debian-security stretch/updates main contrib non-free deb http://deb.debian.org/debian stretch-backports main contrib non-free deb-src http://deb.debian.org/debian stretch main contrib non-free deb-src http://deb.debian.org/debian-security stretch/updates main contrib non-free deb-src http://deb.debian.org/debian stretch-backports main contrib non-free |
deb http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security buster/updates main contrib non-free deb http://deb.debian.org/debian buster-backports main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian-security buster/updates main contrib non-free deb-src http://deb.debian.org/debian buster-backports main contrib non-free |
Ligne 38: | Ligne 41: |
Choisir ```pc / azerty / French / Same as X11 (latin 9) / Standard``` | |
Ligne 47: | Ligne 51: |
/dev/mapper/pc045-swap swap swap defaults 0 0 | |
Ligne 50: | Ligne 55: |
main UUID=a49bffac-cf6b-4bb2-ae92-da035dcf93ad none luks | main UUID=a49bffac-cf6b-4bb2-ae92-da035dcf93ad none luks,keyscript=decrypt_keyctl |
Ligne 56: | Ligne 61: |
Si on compte utiliser le mode mirror (raid) de lvm, il faut penser à installer ```mdadm``` sinon l'initramfs ne contient pas les modules nécessaires. | |
Ligne 70: | Ligne 76: |
plymouth-set-default-theme joy | plymouth-set-default-theme futureprototype |
Ligne 90: | Ligne 96: |
---- CatégoriePagePublique |
Installation de debian avec debootstrap
- créer un lvm et un lv root et le monter dans /mnt/chroot, optionellement dans un volume luks. Si volume luks, penser a mettre /boot séparément
debootstrap buster /mnt/chroot http://deb.debian.org/debian
- chroot:
mount -t sysfs /sys /mnt/chroot/sys mount -t proc /proc /mnt/chroot/proc mount --bind /dev /mnt/chroot/dev mount -t devpts /dev/pts /mnt/chroot/dev/pts
- chroot /mnt/chroot/ /bin/su
- Locales
apt update apt install -y locales dpkg-reconfigure locales dpkg-reconfigure tzdata hwclock --systohc --utc
- Sources
deb http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security buster/updates main contrib non-free deb http://deb.debian.org/debian buster-backports main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian-security buster/updates main contrib non-free deb-src http://deb.debian.org/debian buster-backports main contrib non-free
apt update apt dist-upgrade
- Clavier
apt install -y console-data dpkg-reconfigure console-data
Choisir pc / azerty / French / Same as X11 (latin 9) / Standard
- Hostname
- fstab et crypttab
blkid
/dev/mapper/pc045-root / ext4 errors=remount-ro 0 1 UUID=44f98c5d-6405-4bdd-acdf-ea3d12eacd00 /boot ext4 defaults 0 2 /dev/mapper/pc045-home /home ext4 defaults 0 2 /dev/mapper/pc045-swap swap swap defaults 0 0
# <target name> <source device> <key file> <options> main UUID=a49bffac-cf6b-4bb2-ae92-da035dcf93ad none luks,keyscript=decrypt_keyctl
- cryptsetup et lvm2
apt install cryptsetup lvm2
Si on compte utiliser le mode mirror (raid) de lvm, il faut penser à installer mdadm sinon l'initramfs ne contient pas les modules nécessaires.
- Grub et noyau
apt install linux-image-amd64 linux-headers-amd64 apt install grub2
- Mot de passe root
passwd
- tasksel install standard
- Plymouth
apt install desktop-base plymouth plymouth-set-default-theme futureprototype
/etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
update-grub update-initramfs -k all -u
- Unmount et reboot
umount /mnt/chroot/sys umount /mnt/chroot/proc umount /mnt/chroot/dev/pts umount /mnt/chroot/dev umount /mnt/chroot sync reboot