Diferencias
Muestra las diferencias entre dos versiones de la página.
doc:tec:sis:gnu:automatizar_debian:preseed:inicio [2024/10/09 07:44] – creado - editor externo 127.0.0.1 | doc:tec:sis:gnu:automatizar_debian:preseed:inicio [Fecha desconocida] (actual) – editor externo (Fecha desconocida) 127.0.0.1 | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
+ | ====== Fichero para instalación desatendida de Debian 12 ====== | ||
+ | |||
+ | En estos ficheros ejemplo se crea en la instalación un usuario '' | ||
+ | |||
+ | <WRAP center round tip 80%> | ||
+ | |||
+ | **Ejemplo de uso** | ||
+ | |||
+ | * **Ruta fichero**. Si el fichero '' | ||
+ | |||
+ | * **Teclado americano**. Si tenemos en cuenta que disponemos de configuración de teclado americano en esos instantes, el guión bajo '' | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Fichero preseed para MBR, pc1301 ===== | ||
+ | |||
+ | <code file pc1301_mbr.cfg> | ||
+ | ### Fichero para instalación por red y PXE de Debian 12 en todo el disco duro | ||
+ | |||
+ | ### Localizacion... OK | ||
+ | # Configuración de localización para el idioma, país y local. | ||
+ | d-i debian-installer/ | ||
+ | # Optionally specify additional locales to be generated. | ||
+ | d-i localechooser/ | ||
+ | |||
+ | ### Selección del teclado... OK | ||
+ | d-i keyboard-configuration/ | ||
+ | |||
+ | ### Configuracion de red... OK | ||
+ | d-i netcfg/ | ||
+ | |||
+ | ### Asignación del nombre de host... OK | ||
+ | # Volvemos a solicitar al DHCP para cambiar " | ||
+ | d-i preseed/ | ||
+ | # Establecemos hostname y dominio vacíos | ||
+ | d-i netcfg/ | ||
+ | d-i netcfg/ | ||
+ | # Establecemos nuestro hostname propio | ||
+ | d-i netcfg/ | ||
+ | |||
+ | ### Mirror settings... OK (supongo) | ||
+ | # If you select ftp, the mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | |||
+ | ### Fecha y hora... | ||
+ | d-i clock-setup/ | ||
+ | d-i time/zone string Europe/ | ||
+ | # Controls whether to use NTP to set the clock during the install | ||
+ | d-i clock-setup/ | ||
+ | # La siguiente línea aún NO funciona pues no está instalado NTP... | ||
+ | d-i clock-setup/ | ||
+ | |||
+ | ### Particionado y formato MBR... OK | ||
+ | # Seleccionamos el modo regular y atomic. Indicamos aquí que tome todo el disco, y haga las particiones | ||
+ | # comunes para el funcionamiento del sistema utilizando todo el espacio disponible en el disco duro. | ||
+ | ## Partitioning example | ||
+ | # If the system has free space you can choose to only partition that space. | ||
+ | # This is only honoured if partman-auto/ | ||
+ | # Alternatives: | ||
+ | d-i partman-auto/ | ||
+ | # Alternatively, | ||
+ | # one disk the installer will default to using that, but otherwise the device | ||
+ | # name must be given in traditional, | ||
+ | # /dev/sda, and not e.g. / | ||
+ | # For example, to use the first SCSI/SATA hard disk: | ||
+ | # In addition, you’ll need to specify the method to use. | ||
+ | # The presently available methods are: | ||
+ | # – regular: use the usual partition types for your architecture | ||
+ | # – lvm: use LVM to partition the disk | ||
+ | # – crypto: | ||
+ | d-i partman-auto/ | ||
+ | # You can choose one of the three predefined partitioning recipes: | ||
+ | # – atomic: all files in one partition | ||
+ | # – home: | ||
+ | # – multi: | ||
+ | d-i partman-auto/ | ||
+ | # This makes partman automatically partition without confirmation, | ||
+ | # that you told it what to do using one of the methods above. | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | # This makes partman automatically partition without confirmation. | ||
+ | d-i partman-md/ | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | popularity-contest popularity-contest/ | ||
+ | |||
+ | ### Cuenta de usuario normal y su contraseña... OK | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | # Selecionaremos true si queremos que encripte la carpeta de usuario | ||
+ | d-i user-setup/ | ||
+ | |||
+ | ### Seleccion de paquetes para escritorio LXDE... OK | ||
+ | tasksel tasksel/ | ||
+ | d-i tasksel-desktop/ | ||
+ | d-i tasksel/ | ||
+ | # Paquetes individuales a instalar | ||
+ | d-i pkgsel/ | ||
+ | |||
+ | ### Instalación del gestor de arranque... OK | ||
+ | d-i grub-installer/ | ||
+ | d-i grub-installer/ | ||
+ | |||
+ | ### Finalizar la instalación... OK | ||
+ | # Linea para saltarse el aviso de que la instalación esta completa y que va a reiniciar. | ||
+ | d-i finish-install/ | ||
+ | # Monitor autodetection is recommended. | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | # Uncomment if you have an LCD display. | ||
+ | # | ||
+ | # X has three configuration paths for the monitor. Here’s how to preseed | ||
+ | # the «medium» path, which is always available. The «simple» path may not | ||
+ | # be available, and the «advanced» path asks too many questions. | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Fichero preseed para UEFI, pc1301 ===== | ||
+ | |||
+ | <code file pc1301_uefi.cfg> | ||
+ | ### Fichero para instalación por red y iPXE de Debian 12 en todo el disco duro UEFI GPT | ||
+ | |||
+ | ### Localizacion... OK | ||
+ | # Configuración de localización para el idioma, país y local. | ||
+ | d-i debian-installer/ | ||
+ | # Optionally specify additional locales to be generated. | ||
+ | d-i localechooser/ | ||
+ | |||
+ | ### Selección del teclado... OK | ||
+ | d-i keyboard-configuration/ | ||
+ | |||
+ | ### Configuracion de red... OK | ||
+ | d-i netcfg/ | ||
+ | |||
+ | ### Asignación del nombre de host... OK | ||
+ | # Volvemos a solicitar al DHCP para cambiar " | ||
+ | d-i preseed/ | ||
+ | # Establecemos hostname y dominio vacíos | ||
+ | d-i netcfg/ | ||
+ | d-i netcfg/ | ||
+ | # Establecemos nuestro hostname propio | ||
+ | d-i netcfg/ | ||
+ | |||
+ | ### Mirror settings... OK (supongo) | ||
+ | # If you select ftp, the mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | |||
+ | ### Fecha y hora... | ||
+ | d-i clock-setup/ | ||
+ | d-i time/zone string Europe/ | ||
+ | # Controls whether to use NTP to set the clock during the install | ||
+ | d-i clock-setup/ | ||
+ | # La siguiente línea aún NO funciona pues no está instalado NTP... | ||
+ | d-i clock-setup/ | ||
+ | |||
+ | ### Particionado y formato en GPT... OK | ||
+ | # IMPORTANTE: Partir de un disco GPT sin particiones o con una única ocupando todo | ||
+ | # Force UEFI booting ('BIOS compatibility' | ||
+ | d-i partman-efi/ | ||
+ | # Ensure the partition table is GPT - this is required for EFI | ||
+ | d-i partman-basicfilesystems/ | ||
+ | d-i partman-basicfilesystems/ | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | # Seleccionamos el modo regular y atomic. Indicamos aquí que tome todo el disco, y haga las particiones | ||
+ | # comunes para el funcionamiento del sistema utilizando todo el espacio disponible en el disco duro. | ||
+ | ## Partitioning example | ||
+ | # If the system has free space you can choose to only partition that space. | ||
+ | # This is only honoured if partman-auto/ | ||
+ | # Alternatives: | ||
+ | d-i partman-auto/ | ||
+ | # Alternatively, | ||
+ | # one disk the installer will default to using that, but otherwise the device | ||
+ | # name must be given in traditional, | ||
+ | # /dev/sda, and not e.g. / | ||
+ | # For example, to use the first SCSI/SATA hard disk: | ||
+ | # In addition, you’ll need to specify the method to use. | ||
+ | # The presently available methods are: | ||
+ | # – regular: use the usual partition types for your architecture | ||
+ | # – lvm: use LVM to partition the disk | ||
+ | # – crypto: | ||
+ | d-i partman-auto/ | ||
+ | # You can choose one of the three predefined partitioning recipes: | ||
+ | # – atomic: all files in one partition | ||
+ | # – home: | ||
+ | # – multi: | ||
+ | d-i partman-auto/ | ||
+ | # This makes partman automatically partition without confirmation, | ||
+ | # that you told it what to do using one of the methods above. | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | # This makes partman automatically partition without confirmation. | ||
+ | d-i partman-md/ | ||
+ | d-i partman-partitioning/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | d-i partman/ | ||
+ | |||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | popularity-contest popularity-contest/ | ||
+ | |||
+ | ### Cuenta de usuario normal y su contraseña... OK | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | d-i passwd/ | ||
+ | # Selecionaremos true si queremos que encripte la carpeta de usuario | ||
+ | d-i user-setup/ | ||
+ | |||
+ | ### Seleccion de paquetes para escritorio LXDE... OK | ||
+ | tasksel tasksel/ | ||
+ | d-i tasksel-desktop/ | ||
+ | d-i tasksel/ | ||
+ | # Paquetes individuales a instalar | ||
+ | d-i pkgsel/ | ||
+ | |||
+ | ### Instalación del gestor de arranque... OK | ||
+ | d-i grub-installer/ | ||
+ | d-i grub-installer/ | ||
+ | |||
+ | ### Finalizar la instalación... OK | ||
+ | # Linea para saltarse el aviso de que la instalación esta completa y que va a reiniciar. | ||
+ | d-i finish-install/ | ||
+ | # Monitor autodetection is recommended. | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | # Uncomment if you have an LCD display. | ||
+ | # | ||
+ | # X has three configuration paths for the monitor. Here’s how to preseed | ||
+ | # the «medium» path, which is always available. The «simple» path may not | ||
+ | # be available, and the «advanced» path asks too many questions. | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | | ||
+ | xserver-xorg xserver-xorg/ | ||
+ | | ||
+ | </ | ||