Instalación Debian 10¶
$ debootstrap --arch amd64 buster /mnt https://deb.debian.org/debian/
$ debootstrap --arch amd64 buster /mnt https://deb.debian.org/debian/
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
E: Release signed by unknown key (key id DCC9EFBF77E11517)
$ wget https://ftp-master.debian.org/keys/release-10.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-10.gpg
$ debootstrap --keyring=./debian-release-10.gpg --arch amd64 buster /mnt https://deb.debian.org/debian/
https://serverfault.com/questions/984604/debootstrap-release-signed-by-unknown-key
$ mount -t proc /proc /mnt/proc/
$ mount -t sysfs /sys /mnt/sys/
$ mount -o bind /dev /mnt/dev/
$ chroot /mnt /bin/bash
$ export HOME=/root
$ export http_proxy=http://proxy.fcen.uba.ar:8080
Como el sistema lo estamos instalando sobre un RAID, lo que necesitamos es el paquete mdadm
$ apt install mdadm
Como estamos instalando el paquete mdadm automáticamente actualiza el archivo /etc/mdadm/mdadm.conf por eso no ejecutamos
$ mdadm --detail --scan | tee -a /etc/mdadm/mdadm.conf
Ahora tenemos que modificar el archivo /etc/fstab
$ echo “/dev/md3 / ext4 defaults,nofail,discard 0 0” | tee -a /etc/fstab
$ cat << 'EOF' > /etc/apt/sources.list
> deb https://deb.debian.org/debian buster main contrib non-free
> deb-src https://deb.debian.org/debian buster main contrib non-free
>
> deb https://deb.debian.org/debian buster-updates main contrib non-free
> deb-src https://deb.debian.org/debian buster-updates main contrib non-free
>
> deb http://security.debian.org/ buster/updates main contrib non-free
> deb-src http://security.debian.org/ buster/updates main contrib non-free
>
> EOF
$ dpkg-reconfigure tzdata
Current default time zone: 'America/Argentina/Buenos_Aires'
Local time is now: jue ago 20 15:13:45 -03 2020.
Universal Time is now: Thu Aug 20 18:13:45 UTC 2020.
$ apt install locales
$ dpkg-reconfigure locales
[*] en_US ISO-8859-1
[ ] en_US.ISO-8859-15 ISO-8859-15
[*] en_US.UTF-8 UTF-8
[*] es_AR ISO-8859-1
[*] es_AR.UTF-8 UTF-8
$ apt install linux-image-amd64
$ apt install firmware-linux firmware-linux-free firmware-linux-nonfree
$ tasksel install standard
$ passwd
$ apt install openssh-server
Configuracion de la red. Tener en cuenta el /etc/udev por las macaddr. COMPLETAR!!!!
$ cp /usr/share/doc/ifupdown/examples/network-interfaces /etc/network/interfaces.d/
$ mkdir /boot/efi
$ mount /dev/sda1 /boot/efi/
$ apt install grub-efi
$ grub-install
$ apt clean
$ update-initramfs -u
$ umount /boot/efi/
$ exit
$ umount /mnt/proc
$ umount /mnt/sys
$ umount /mnt/dev
$ umount /mnt
$ apt install console-data
$ dpkg-reconfigure console-data