Dans le cadre du projet "contact aux revendeurs, nous souhaiterions pouvoir leur fournir un CD qui installe Ubuntu (ainsi que les paquets pour le franciser et quelques paquets supplémentaires).
A partir du tutorial “InstallCDCustomizaion”1) disponible sur le wiki d'ubuntu.com, calimarno a créé une image ISO avec un fichier “preseed” (swisslinux.seed
) qui permet de répondre automatiquement à la plupart des questions de l'installation.
Cette image installe le système Ubuntu (“Desktop”), ainsi que les fichiers de langue française et quelques paquets supplémentaires (java, flash et msttcorefonts) par l'intermédiaire du paquet ubuntu-restricted-extras
.
sudo oem-config-prepare
.sudo oem-config-prepare
automatiquement puisqu'il ne devrait pas y avoir de# Locale sets language and country d-i debian-installer/locale select fr_CH.UTF-8 #oem-config debian-installer/locale select fr_CH.UTF-8 # Keyboard selection. d-i console-tools/archs select ch d-i console-setup/modelcode string pc105 d-i console-setup/layoutcode string ch d-i console-setup/variantcode string fr d-i console-setup/ask_detect boolean false console-setup console-setup/detect detect-keyboard ch console-setup console-setup/modelcode string pc105 console-setup console-setup/layoutcode string ch console-setup console-setup/variantcode string fr console-setup console-setup/variant select Switzerland - French console-setup console-setup/ask_detect boolean false # Network netcfg netcfg/choose_interface select #auto(?) #netcfg netcfg/disable_dhcp boolean false #netcfg netcfg/dhcp_failed note #netcfg netcfg/dhcp_options select Configure network manually #netcfg netcfg/get_nameservers string #netcfg netcfg/get_ipaddress string #netcfg netcfg/get_netmask string 255.255.255.0 #netcfg netcfg/get_gateway string #netcfg netcfg/get_pointopoint string #netcfg netcfg/confirm_static boolean true netcfg netcfg/get_hostname string ubuntu netcfg netcfg/get_domain string #netcfg netcfg/wireless_essid string #netcfg netcfg/wireless_essid_again string netcfg netcfg/wireless_wep string #netcfg netcfg/dhcp_hostname string # Mirror choose-mirror-bin mirror/country string CH choose-mirror-bin mirror/http/hostname string ch.archive.ubuntu.com choose-mirror-bin mirror/http/directory string /ubuntu/ choose-mirror-bin mirror/http/proxy string choose-mirror-bin mirror/suite select feisty d-i mirror/udeb/suite string feisty # Partitioning partman-auto partman-auto/init_automatically_partition select Assisté - utiliser un disque entier partman-auto partman-auto/disk string /dev/hda partman-auto partman-auto/choose_recipe select Partition /home séparée #partman-auto partman-auto/expert_recipe string partman-base partman/confirm_new_label boolean true partman-base partman/choose_partition select partman-base partman/confirm boolean true partman-auto partman-auto/purge_lvm_from_device boolean true partman-base partman/choose_partition select Terminer et écrire les changements sur le disque # Clock and time zone setup d-i clock-setup/utc boolean true d-i time/zone string Europe/Zurich #tzsetup-udeb time/zone string Europe/Zurich # Apt-setup apt-mirror-setup apt-setup/restricted boolean true apt-mirror-setup apt-setup/universe boolean true apt-mirror-setup apt-setup/multiverse boolean true apt-mirror-setup apt-setup/backports boolean false apt-setup-udeb apt-setup/security_host string security.ubuntu.com # Accounts user-setup-udeb passwd/make-user boolean true user-setup-udeb passwd/root-login boolean false user-setup-udeb passwd/user-fullname string OEM Configuration (temporary user) user-setup-udeb passwd/username string oem #user-setup-udeb passwd/username string calimarno user-setup-udeb passwd/user-password password sloem user-setup-udeb passwd/user-password-again password sloem #oem-config passwd/root-login boolean false #oem-config passwd/make-user boolean true #oem-config passwd/root-password-crypted password #oem-config passwd/root-password password #oem-config passwd/root-password-again password #oem-config passwd/user-fullname string Arnaud #oem-config passwd/username string calimarno #oem-config passwd/user-password password #oem-config passwd/user-password-crypted password #oem-config passwd/user-password-again password #passwd passwd/make-user boolean true #passwd passwd/root-password-crypted password #passwd passwd/root-password password #passwd passwd/root-password-again password #passwd passwd/user-fullname string Arnaud #passwd passwd/username string calimarno #passwd passwd/user-password password #passwd passwd/user-password-crypted password #passwd passwd/user-password-again password #wvdial wvdial/passphrase2 password # Base system installation base-installer base-installer/kernel/linux/initramfs-generators string initramfs-tools yaird # Boot loader installation grub-installer grub-installer/skip boolean false grub-installer grub-installer/only_debian boolean true #grub-installer grub-installer/with_other_os boolean true #grub-installer grub-installer/bootdev string # Packages selection d-i tasksel/first string ubuntu-desktop d-i pkgsel/install-pattern string ~t^ubuntu-restricted-extras$|~n^gnome-compiz-manager$ pkgsel pkgsel/include string popularity-contest popularity-contest/participate boolean false d-i localechooser/supported-locales multiselect fr_CH pkgsel pkgsel/install-language-support boolean true # Finishing first stage install finish-install finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean true # X configuration xserver-xorg xserver-xorg/config/device/driver select vesa xserver-xorg xserver-xorg/autodetect_mouse boolean true xserver-xorg xserver-xorg/autodetect_monitor boolean true xserver-xorg xserver-xorg/config/monitor/selection-method select Medium xserver-xorg xserver-xorg/config/monitor/mode-list select 1024x768 @ 60Hz