Installation automatique via preseed.cfg

Bonjour,

    Je voudrait refaire l'installation de ma machine, et que tout se fasse tout seul pendant que je part au boulot. Comme sa je pourrait retrouver une machine toute propre quand je rentre.

    J'ai donc fais un fichier pressed.cfg, je me suis inspirée de:

http://forum.debian-fr.org/viewtopic.php?f=3&t=24926 pour le lvm
gnu linux magazine / france n°45 modifier puisse qu il répond pas a mon besoin à 100%

j’aimerais votre avis avant de me lancer dans mon 1er jet.

[code]##choix de la langue d’installation
d-i debian-installer/locale string fr_FR

choix du clavier (select indique une liste de choix)

d-i console-keymaps-at/keymap select fr
#choix de l’interface select auto (interface réseaux)
d-i netcfg/choose_interface select auto

configuration du hostname

d-i netcfg/get_hostname string robinux-laptop

configuration du domaine

d-i netcfg/get_domain string robinux.lan

configuration du réseau en dhcp

d-i netcfg/dhcp_timeout string 60

type de rpotcole pour acces au mirroir

d-i mirror/protocol string ftp

choix du mirroir

d-i mirror/ftp/hostname string ftp.fr.debian.org

choix du répertoir dans le mirroir

d-i mirror/ftp/directory string /debian
d-i mirror/ftp/proxy string

Type de distribution (stable, testing, experimentale)

d-i mirror/suite string experimental

configuration horaire

d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris

pas de serveur ntp

d-i clock-setup/ntp boolean false

partion boot pour amorcer lvm

d-i partman-auto/disk string /dev/sda
d-i partman-auto/expert_recipe string
boot-root ::
128 128 128 ext3
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /boot }
.

Partitioning LVM

d-i partman-auto/method string lvm
d-i partman-auto/disk string /dev/md0
d-i partman-auto-lvm/new_vg_name string vg0
d-i partman-lvm/vgcreate string vg0

10240 10240 10240 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ / }
.
10240 10240 10240 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /home }
.
2048 2048 2048 linux-swap
$lvmok{ } in_vg{ vg0 } lv_name{ swap }
method{ swap } format{ }
.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true

configuration du compte root (à décommanter pour le passe root automatique)

d-i passwd/root-password password xxx
d-i passwd/root-password password-again xxx
#configuration d’un autre user
d-i passwd/user-fullname string teste teste
d-i passwd/username string teste
d-i passwd/user-password password azerty
d-i passwd/user-password-again password azerty

ajout de non-free et contrib dans /etc/apt/sources.list

d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true

Selection d’une install standard, sans desktop

tasksel tasksel/standard

ajout des packages supplémentaires

d-i pkgsel/include string openssh-server build-essential xorg xterm dialog openbox gdebi gmrun obconf obmenu synaptic nitrogen openbox-themes gnome-themes bee-icons bee-wallpapers gnome-utils alsa-utils mesa-utils xarchiver unrar galternatives htop xfce4-taskmanager fbpanel-fr wicd thunar thunar-archive-plugin mplayer-nogui iceweasel iceweasel-l10n-fr gtk2-engines-aurora flashplayer-mozilla ffmpeg w32codecs libmp3lame0 gstreamer0.10-ffmpeg gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly libdvdcss2 libdvdnav4 libdvdread3 msttcorefonts sun-java6-plugin geany transmission gimp audacious audacious-plugins audacious-plugins-extra mplayer-nogui gnome-mplayer mozilla-mplayer brasero evince gpicview

installation de grub

d-i grub installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note

extinction de la machine après l’install

d-i debian-installer/exit/poweroff boolean true

ajout d’encodage ISO UTF8

locales locales/default_environment_locale select fr_FR@euro
locales locales/locales_to_be_genereted multiselect fr_FR.UTF-8 UTF-8, fr_FR@euro ISO-8859-15

script post install

d-i pressed/late_command string in-target wget http://192.168.1.2/post-install.sh; in-target /bin/sh post-install.sh; in-target rm -f post-install.sh[/code]

merci de vos réponse.

Quoi en dire ? c’est toi qui vois.

commence par faire un test…

je voulais savoir s’il y avais rien de bizard,
voire même une erreur qui mérite moquerie et mépris ^^