# \[Install debian 9.4\] Où se trouve le fichier de réponse d'installation

**URL:** <https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032>\
**Category:** Support Debian\
**Tags:** configuration\
**Created:** [Juin 22, 2018, 10:48 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032 "2018-06-22T10:48:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendanl](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@brendanl](https://www.debian-fr.org/u/brendanl)\
**Post date:** [Juin 22, 2018, 10:48 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032/1 "2018-06-22T10:48:32Z")

</div>

Bonjour,

Je souhaite modifier l’installateur de Debian 9.4 pour que les configurations habituelle ne soit plus demandé durant l’installation et soit géré, grâce à un fichier qui contient toutes les informations dont il a besoin (partitionnement, IP, clavier, option, etc).

Savez vous où je peux trouver et manipuler un fichier de pré-configuration automatique d’installation Debian : Preseed.cfg, Debian.seed ou qui y ressemble ?

Merci d’avance

---

<div class="post-metadata">

**Author:** ![Clochette](https://www.debian-fr.org/user_avatar/www.debian-fr.org/clochette/32/8757_2.png) [@Clochette](https://www.debian-fr.org/u/Clochette)\
**Post date:** [Juin 22, 2018, 7:40 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032/2 "2018-06-22T19:40:13Z")

</div>

Je te propose un peu de lecture :

[https://www.debian.org/releases/stable/s390x/apbs01.html.fr](https://www.debian.org/releases/stable/s390x/apbs01.html.fr)

---

<div class="post-metadata">

**Author:** ![brendanl](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@brendanl](https://www.debian-fr.org/u/brendanl)\
**Post date:** [Juin 27, 2018, 8:40 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032/3 "2018-06-27T08:40:38Z")

</div>

Malheureusement, cette lecture ne m’a pas données d’indice pour mettre en place un fichier de pré-configuration pour l’installateur de debian 9.4. J’ai tenté avec un fichier preseed.cfg à la racine. Aucun changement du comportement de l’installateur. Il me demande toujours de configurer le partitionnement.

 ![installateur-usb](https://www.debian-fr.org/uploads/default/original/2X/6/667e3c7731c9f2e2416e83cc3be37743573872f4.png)  
Source : [https://www.debian.org/releases/stable/i386/apbs02.html.en#preseed-loading](https://www.debian.org/releases/stable/i386/apbs02.html.en#preseed-loading)

---

<div class="post-metadata">

**Author:** ![brendanl](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@brendanl](https://www.debian-fr.org/u/brendanl)\
**Post date:** [Juin 27, 2018, 9:13 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032/4 "2018-06-27T09:13:57Z")

</div>

![file-boot](https://www.debian-fr.org/uploads/default/original/2X/a/a30d3270d14dea5b7b17ee3238f7f585980a3e2e.png)

---

<div class="post-metadata">

**Author:** ![brendanl](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@brendanl](https://www.debian-fr.org/u/brendanl)\
**Post date:** [Juin 27, 2018, 9:16 UTC](https://www.debian-fr.org/t/install-debian-9-4-ou-se-trouve-le-fichier-de-reponse-dinstallation/77032/5 "2018-06-27T09:16:28Z")

</div>

```nohighlight
# General configuration
d-i auto-install/enable boolean true
d-i debconf/priority string critical
d-i pkgsel/update-policy select none

# Localization
d-i debconf/language string fr
d-i debian -installer/country string FR
d-i debian -installer/language string fr
d-i debian -installer/locale select fr FR.UTF -8
d-i console -setup/ask detect boolean false
d-i keyboard -configuration/modelcode string pc105
d-i keyboard -configuration/layoutcode string fr
d-i keyboard -configuration/variantcode string latin9

# Mais on doit quand même configurer le nom de machine
d-i netcfg/get_hostname string dataself-nano
# Ainsi que le domaine
d-i netcfg/get_domain string athenacomputers.fr
# Ici, on définit le nom local de la machine
d-i netcfg/hostname string dataself-nano

### Mirror settings
# Do not configure mirror repository
#d-i apt-setup/no_mirror boolean true
d-i mirror/country string manual
d-i mirror/http/hostname string [censure]
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

### Configuration des comptes
# On indique le mot de passe root, sous forme d'un hash MD5 (echo "mypassword" | mkpasswd -s -H MD5)
d-i passwd/root-password-crypted password [censure]

### Gestion de l'horloge
# L'horloge matérielle fonctionne sur la zone UTC
d-i clock-setup/utc boolean true

# La zone utilisée par l'OS sera celle de Paris
d-i time/zone string Europe/Paris

# On ne souhaite pas créer d'autres utilisateurs
d-i passwd/make-user boolean false

# Suggest LVM by default.
#d-i	partman-auto/init_automatically_partition	string some_device_lvm
#d-i	partman-auto/init_automatically_partition	seen false

### Regular, primary partitions
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
   boot-root-swap :: \
      512 512 512 ext3 \
         $primary{ } $bootable{ } \
         method{ format } format{ } \
         use_filesystem{ } filesystem{ ext3 } \
         mountpoint{ /boot } . \
      1000 20000 50000 ext4 \
         $primary{ } \
         method{ format } format{ } \
         use_filesystem{ } filesystem{ ext4 } \
         mountpoint{ / } . \
      1000 20000 -1 ext4 \
         $primary{ } \
         method{ format } format{ } \
         use_filesystem{ } filesystem{ ext4 } \
         mountpoint{ /mnt/DISQUE1 } . \
      16384 16384 16384 linux-swap \
         $primary{ } \
         method{ swap } format{ } .
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

# Install the Ubuntu Server seed.
tasksel	tasksel/force-tasks	string server

# Only install basic language packs. Let tasksel ask about tasks.
d-i	pkgsel/language-pack-patterns	string
# No language support packages.
d-i	pkgsel/install-language-support	boolean false
# Only ask the UTC question if there are other operating systems installed.
#d-i	clock-setup/utc-auto	boolean true
#d-i time/zone string Europe/Berlin
# Verbose output and no boot splash screen.
d-i	debian-installer/quiet	boolean false
d-i	debian-installer/splash	boolean false
# Install the debconf oem-config frontend (if in OEM mode).
d-i	oem-config-udeb/frontend	string debconf
# Wait for two seconds in grub
d-i	grub-installer/timeout	string 2
# Add the network and tasks oem-config steps by default.

### Configuration d'apt
# On indique qu'on ne souhaite pas utiliser de mirroir
d-i apt-setup/use_mirror boolean false
d-i apt-setup/no_mirror boolean true
# On active les services security et updates
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string [censure]
# Notez qu'on ne peut pas modifier la chaîne pour updates.
# Ensuite, on indique quel est notre dépôt local (le premier qui démarre à 0)
d-i apt-setup/local0/repository string \
       http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
# On peut même y mettre un commentaire qui sera injecté dans le fichier sources.list
d-i apt-setup/local0/comment string Serveur principal

# Pas d'envoi de rapport vers popcon
#DEBIAN#popularity-contest popularity-contest/participate boolean false

oem-config	oem-config/steps	multiselect language, timezone, keyboard, user, network, tasks

### Fin de l'installation
# Désactivation du message indiquant que l'installation est terminée.
d-i finish-install/reboot_in_progress note

# Pas d'éjection du média d'installation (bien pour faire des tests sur une VM)
d-i cdrom-detect/eject boolean true

# Une fois l'installation terminée, on éteint la machine
d-i debian-installer/exit/poweroff boolean true

```
