Cette page présente un modèle de preseed (pré-configuration automatique) pour un poste client AuF sous Ubuntu Lucid.

Un grand merci à Ndimby pour son travail d'étude approfondie sur cette technique ! :-)

Fichier /var/www/config/lucid-preseed-auf-fixe :

#==============================================================================
# paramétrages de base
#==============================================================================

# renseigner ici votre fuseau horaire
d-i time/zone string Asia/Ho_Chi_Minh

# renseigner ici les informations concernant votre miroir Ubuntu Lucid
#d-i mirror/country string manual
#d-i mirror/protocol string http
#d-i mirror/http/hostname string mirror.vn.refer.org
#d-i mirror/http/directory string /ubuntu/archive

# renseigner ici les informations concernant le compte "root"
#d-i passwd/root-login boolean true
#d-i passwd/root-password-crypted password $6$xxxxxxxx$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# renseigner ici les informations concernant le 1er compte utilisateur
#d-i passwd/user-fullname string AUF
#d-i passwd/username string auf
#d-i passwd/user-password-crypted password $6$xxxxxxxx$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# participer (éventuellement) aux développements du modèle AuF
#d-i apt-setup/local1/repository string http://apt.auf.org/ lucid-test auf
#d-i apt-setup/local1/comment string Paquets AUF pour Lucid (test)
#d-i apt-setup/local1/key string http://apt.auf.org/auf-keyring.gpg
#d-i apt-setup/local2/repository string http://apt.auf.org/ lucid-experimental auf
#d-i apt-setup/local2/comment string Paquets AUF pour Lucid (experimental)
#d-i apt-setup/local2/key string http://apt.auf.org/auf-keyring.gpg

# ajouter (éventuellement) une langue locale
d-i pkgsel/language-packs multiselect fr, en
#d-i pkgsel/language-packs multiselect fr, en, vi

# ajouter (éventuellement) d'autres paquets
d-i pkgsel/include string auf-keyring auf-client-logiciels auf-client-fonds-d-ecran auf-client-fixe
#d-i pkgsel/include string auf-keyring auf-client-logiciels auf-client-fonds-d-ecran auf-client-fixe auf-client-menu auf-poste-client-reflets

#==============================================================================
# renseigner ici les informations concernant votre choix de partitionnement
# (décommenter toute cette section pour un partitionnement 100% automatique
#  avec une racine de 15 Go, un swap de 3×RAM et le reste sur /srv)
#==============================================================================
# !!!!! ATTENTION : écrasement sans confirmation du contenu du disque !!!!!
#==============================================================================
#d-i partman-auto/disk string /dev/sda
#d-i partman-auto/method string regular
#d-i partman-lvm/device_remove_lvm boolean true
#d-i partman-lvm/confirm boolean true
#d-i partman-md/device_remove_md boolean true
#d-i partman-md/confirm boolean true
#d-i partman-auto/expert_recipe string                         \
#      root-swap ::                                            \
#              10000 20000 15000 ext4                          \
#                      $primary{ } $bootable{ }                \
#                      method{ format } format{ }              \
#                      use_filesystem{ } filesystem{ ext4 }    \
#                      mountpoint{ / }                         \
#              .                                               \
#              1000 10000 300% linux-swap                      \
#                      method{ swap } format{ }                \
#              .                                               \
#              500 50000 1000000000 ext4                       \
#                      method{ format } format{ }              \
#                      use_filesystem{ } filesystem{ ext4 }    \
#                      mountpoint{ /srv }                      \
#              .
#d-i partman/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

#==============================================================================
# inutile de toucher à ce qui suit (en principe)
#==============================================================================
d-i debian-installer/locale string fr_FR.UTF-8
d-i debian-installer/language string fr
d-i console-tools/archs select at
d-i console-keymaps-at/keymap select fr
d-i console-setup/layoutcode string fr
d-i netcfg/get_domain string unassigned-domain
d-i mirror/http/proxy string
d-i mirror/suite string lucid
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i apt-setup/multiverse boolean true
d-i apt-setup/backports boolean false
d-i apt-setup/partner boolean true
d-i apt-setup/source boolean false
d-i apt-setup/local0/repository string http://apt.auf.org/ lucid auf
d-i apt-setup/local0/comment string Paquets AUF pour Lucid (stable)
d-i apt-setup/local0/key string http://apt.auf.org/auf-keyring.gpg
tasksel tasksel/first multiselect standard, ubuntu-desktop
d-i pkgsel/include/install-recommends boolean true
d-i pkgsel/upgrade select full-upgrade
d-i pkgsel/update-policy select none
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i debian-installer/exit/poweroff boolean true
d-i preseed/late_command string in-target dpkg-reconfigure locales

# expérimentations (actuellement fonctionnelles)
libpam-runtime libpam-runtime/profiles multiselect unix, gnome-keyring, consolekit, auf-mkhomedir
apparmor apparmor/homedirs string /home*/ /home/*/ /net/*/home*/ /net/*/home*/*/
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true