Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Boot PXE avec un preseed pour une installation automatique de Debian Wheezy

1 réponse
Avatar
Francois Lafont
Re, ;-)

Comme indiqué dans le titre, j'essaye de mettre en
place un boot PXE avec un fichier preseed afin d'avoir
une installation 100% automatique d'une Debian Wheezy
amd64. Il s'avère que je bloque sur 2 trucs.

Je mets toute ma conf en fin de message.

1) Impossible d'avoir le clavier en français sachant
que je veux que ma Debian soit localisée en France
bien sûr (country=FR etc.) mais je souhaite que la
locale installée soit en_US.UTF-8 (car je veux des
messages d'erreur etc. en anglais). Si par exemple,
je décide de de mettre la locale fr_FR.UTF-8 et que je
laisse le reste de ma conf à l'identique, j'ai bien un
clavier français. Mais le fait que je veuille une locale
« différente » de ma localisation géographique, ça semble
fiche la pagaille.

2) Avec ma conf, j'ai un serveur X qui est installé
automatiquement sur la Debian. Par exemple, une fois
que l'installation est terminée, je vois que les paquets
xserver-common, x11-common etc. sont installés.

Perso, quand je fais une installation à la mano (toujours
en mode expert) et que j'installe le minimum (openssh-server
et puis basta), je n'ai pas tous ces paquets qui sont
installés. J'aimerais que ce soit pareil avec mon fichier
preseed car c'est pour un installer un serveur alors
je n'ai que faire d'un serveur X sur la machine.

Merci d'avance pour votre aide.

--
François Lafont


PS : Voici ma conf.

1) Dans mon fichier pxelinux.cfg/default, j'ai mis cette
ligne afin d'ajouter les options de boot nécessaires :

APPEND keymap=fr language=en country=FR locale=fr_FR.UTF-8 netcfg/get_hostname=server netcfg/get_domain=domain.priv preseed/url=http://192.168.0.2/Preseed/wheezy-preseed-amd64.cfg initrd=debian-installer/amd64/initrd.gz --


2) Voici mon fichier preseed :

#### Contents of the preconfiguration file (for wheezy)

### Localization
d-i debian-installer/language string en
d-i debian-installer/country string FR
d-i debian-installer/locale string en_US.UTF-8
# Optionally specify additional locales to be generated.
d-i localechooser/supported-locales multiselect fr_FR.UTF-8

d-i keyboard-configuration/xkb-keymap select fr
# d-i keyboard-configuration/toggle select No toggling

### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string client
d-i netcfg/get_domain string domain.priv

# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
d-i netcfg/hostname string client

# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
d-i hw-detect/load_firmware boolean true

### Mirror settings
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.0.3
d-i mirror/http/directory string /ftp.fr.debian.org/debian
d-i mirror/http/proxy string

# Suite to install.
d-i mirror/suite string wheezy

### Account setup
d-i passwd/make-user boolean false

# Root password, either in clear text
d-i passwd/root-password password root
d-i passwd/root-password-again password root
# or encrypted using an MD5 hash.
#d-i passwd/root-password-crypted password [MD5 hash]

### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Paris

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org

### Partitioning
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic

# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
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

## Controlling how partitions are mounted
# The default is to mount by UUID, but you can also choose "traditional" to
# use traditional device names, or "label" to try filesystem labels before
# falling back to UUIDs.
d-i partman/mount_style select uuid

### Base system installation
# Configure APT to not install recommended packages by default. Use of this
# option can result in an incomplete system and should only be used by very
# experienced users.
d-i base-installer/install-recommends boolean false

# The kernel image (meta) package to be installed; "none" can be used if no
# kernel is to be installed.
d-i base-installer/kernel/image string linux-image-amd64

### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org

# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
#d-i debian-installer/allow_unauthenticated boolean true

xserver-xorg xserver-xorg/autodetect_monitor boolean false

### Package selection
#tasksel tasksel/first multiselect standard, web-server
# If the desktop task is selected, install the kde and xfce desktops
# instead of the default gnome desktop.
#tasksel tasksel/desktop multiselect kde, xfce
tasksel tasksel/first multiselect standard

# Individual additional packages to install
d-i pkgsel/include string openssh-server
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select full-upgrade

# Some versions of the installer can report back on what software you have
# installed, and what software you use. The default is not to report back,
# but sending reports helps the project determine what software is most
# popular and include it on CDs.
popularity-contest popularity-contest/participate boolean false
# Install grub.
d-i grub-installer/only_debian boolean true

### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Archive: http://lists.debian.org/l5haon$ipp$2@ger.gmane.org

1 réponse

Avatar
David BERCOT
Bonjour François,

Pour ta 1ère question, désolé, je n'ai pas de réponse (sachant que ce
n'est pas ce que je fais).

En revanche, pour ta seconde, j'ai la même problématique, à savoir
l'installation d'un minimum de paquets. Et cela fonctionne très bien.
Je n'ai pas de différence avec toi [tasksel tasksel/first multiselect
standard] et je me demandais si ça ne pouvait pas venir de ta ligne
[xserver-xorg xserver-xorg/autodetect_monitor boolean false] ? Mais ce
n'est qu'une suggestion.

Je peux te donner mon preseed en privé qui n'installe bien que le
système de base (+ les paquets que je lui indique).

Maintenant, j'aimerais bien ta procédure sur la partie PXE ;-)

On peut échanger si ça te convient...

David.

Le Fri, 08 Nov 2013 01:20:49 +0100,
Francois Lafont a écrit :
Re, ;-)

Comme indiqué dans le titre, j'essaye de mettre en
place un boot PXE avec un fichier preseed afin d'avoir
une installation 100% automatique d'une Debian Wheezy
amd64. Il s'avère que je bloque sur 2 trucs.

Je mets toute ma conf en fin de message.

1) Impossible d'avoir le clavier en français sachant
que je veux que ma Debian soit localisée en France
bien sûr (country=FR etc.) mais je souhaite que la
locale installée soit en_US.UTF-8 (car je veux des
messages d'erreur etc. en anglais). Si par exemple,
je décide de de mettre la locale fr_FR.UTF-8 et que je
laisse le reste de ma conf à l'identique, j'ai bien un
clavier français. Mais le fait que je veuille une locale
« différente » de ma localisation géographique, ça semble
fiche la pagaille.

2) Avec ma conf, j'ai un serveur X qui est installé
automatiquement sur la Debian. Par exemple, une fois
que l'installation est terminée, je vois que les paquets
xserver-common, x11-common etc. sont installés.

Perso, quand je fais une installation à la mano (toujours
en mode expert) et que j'installe le minimum (openssh-server
et puis basta), je n'ai pas tous ces paquets qui sont
installés. J'aimerais que ce soit pareil avec mon fichier
preseed car c'est pour un installer un serveur alors
je n'ai que faire d'un serveur X sur la machine.

Merci d'avance pour votre aide.



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/