129 lines
5.1 KiB
INI
129 lines
5.1 KiB
INI
#******************************************************************************#
|
|
# #
|
|
# ::: :::::::: #
|
|
# preseed.cfg :+: :+: :+: #
|
|
# +:+ +:+ +:+ #
|
|
# By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ #
|
|
# +#+#+#+#+#+ +#+ #
|
|
# Created: 2018/12/15 12:46:55 by tmaze #+# #+# #
|
|
# Updated: 2018/12/16 14:26:13 by tmaze ### ########.fr #
|
|
# #
|
|
#******************************************************************************#
|
|
|
|
# FR locale/kbd map
|
|
d-i debian-installer/language fr
|
|
d-i debian-installer/country FR
|
|
d-i debian-installer/locale string fr_FR.UTF-8
|
|
d-i keyboard-configuration/xkb-keymap select us
|
|
|
|
# select and setup first network interface
|
|
d-i netcfg/choose_interface select enp0s3
|
|
d-i netcfg/disable_autoconfig boolean true
|
|
d-i netcfg/get_ipaddress string 172.127.0.130
|
|
d-i netcfg/get_netmask string 255.255.255.252
|
|
d-i netcfg/get_gateway string 172.127.0.129
|
|
d-i netcfg/get_nameservers string 172.127.0.129
|
|
d-i netcfg/confirm_static boolean true
|
|
|
|
# select and setup second network interface
|
|
d-i netcfg/choose_interface select enp0s8
|
|
d-i netcfg/disable_autoconfig boolean true
|
|
d-i netcfg/get_ipaddress string 192.168.99.2
|
|
d-i netcfg/get_netmask string 255.255.255.252
|
|
d-i netcfg/confirm_static boolean true
|
|
|
|
# set host and domain
|
|
d-i netcfg/get_hostname string roger-skyline-1
|
|
d-i netcfg/get_domain string unassigned-domain
|
|
|
|
# disable WEP dialogue
|
|
d-i netcfg/wireless_wep string
|
|
|
|
# use http.us.debian.org as mirror with no proxy
|
|
d-i mirror/country string manual
|
|
d-i mirror/http/hostname string ftp.fr.debian.org
|
|
d-i mirror/http/directory string /debian
|
|
d-i mirror/http/proxy string
|
|
|
|
# Root password
|
|
d-i passwd/root-password-crypted password $6$q/jW0Ty/YB2GToBc$lrUOumE65VOKjMyoC.uSptldHNYkWfl6b/YyAvqZlDdOgUuYHKvhwMhXtkRV746TvgLCTpS4Nfmn/Dr4W8RIx0
|
|
|
|
# make a regular user
|
|
d-i passwd/make-user boolean true
|
|
d-i passwd/user-fullname string tanguy
|
|
d-i passwd/username string tanguy
|
|
d-i passwd/user-password-crypted password $6$KgvQtUIVYT82CmSz$OJn2kCwDe7X1qSv5c0yN36iaPMxYwISXfUctuMd4NXAhu9kZfGSkP9rapdH8SM2WxTm9lpFsP4eDagbOSKP5/.
|
|
d-i passwd/user-default-groups tanguy cdrom floppy sudo audio dip video plugdev netdev
|
|
|
|
# hardware clock is UTC, timezone is US/Eastern, use ntp to set clock
|
|
d-i clock-setup/utc boolean true
|
|
d-i time/zone string Europe/Paris
|
|
d-i clock-setup/ntp boolean true
|
|
|
|
# use lvm partitioning
|
|
d-i partman-auto/method string regular
|
|
d-i partman-lvm/device_remove_lvm boolean true
|
|
d-i partman-lvm/device_remove_md boolean true
|
|
d-i partman-lvm/confirm boolean true
|
|
d-i partman-lvm/confirm_nooverwrite boolean true
|
|
|
|
# use the following partition scheme on /dev/sda
|
|
d-i partman-auto/disk string /dev/sda
|
|
d-i partman-auto/choose_recipe select boot-root
|
|
|
|
# /boot 500M ext4
|
|
# swap 2G
|
|
# /tmp 2G ext4
|
|
# /var/log 4G ext4
|
|
# / 8G+ ext4
|
|
d-i partman-auto/expert_recipe string \
|
|
boot-root:: \
|
|
954 954 954 linux-swap \
|
|
$primary{ } \
|
|
method{ swap } format{ } \
|
|
. \
|
|
4005 4005 4005 ext4 \
|
|
$primary{ } \
|
|
method{ format } format{ } \
|
|
use_filesystem{ } filesystem{ ext4 } \
|
|
mountpoint{ / } \
|
|
. \
|
|
2670 2670 -1 ext4 \
|
|
$primary{ } \
|
|
method{ format } format{ } \
|
|
use_filesystem{ } filesystem{ ext4 } \
|
|
mountpoint{ /home } \
|
|
. \
|
|
|
|
# don't confirm anything
|
|
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
|
|
|
|
# setup non-free and contrib repositories
|
|
d-i apt-setup/non-free boolean true
|
|
d-i apt-setup/contrib boolean true
|
|
|
|
# install standard system with ssh-server
|
|
tasksel tasksel/first multiselect standard, ssh-server
|
|
|
|
# also install the htop package
|
|
d-i pkgsel/include string emacs git sudo wget curl
|
|
|
|
# upgrade all packages
|
|
d-i pkgsel/upgrade select full-upgrade
|
|
|
|
# disable popularity contest
|
|
popularity-contest popularity-contest/participate boolean false
|
|
|
|
# force grub install to /dev/sda
|
|
d-i grub-installer/only_debian boolean true
|
|
d-i grub-installer/with_other_os boolean true
|
|
d-i grub-installer/bootdev string /dev/sda
|
|
|
|
d-i preseed/late_command string curl -o /etc/network/interfaces http://e3r5p4.42.fr:3000/files/interfaces
|
|
d-i preseed/late_command string curl -o /etc/ssh/sshd_config http://e3r5p4.42.fr:3000/files/sshd_config
|
|
|
|
# don't wait for confirm, just reboot when finished
|
|
d-i finish-install/reboot_in_progress note |