From: Clinton Ebadi Date: Sat, 17 Mar 2012 06:11:02 +0000 (-0400) Subject: Sort-of-kind-of Working Preseed Configuration X-Git-Url: https://git.hcoop.net/hcoop/zz_old/machine-template.git/commitdiff_plain/be97db9e2c54ae77d5cf40ca44721597aa79f8a1?ds=sidebyside Sort-of-kind-of Working Preseed Configuration * Doesn't quite work 100% without intervention * Have to pass network config on boot line or enter manually (not a huge deal, it's different for every instance anyway) * After that, confirm root pw and the install Just Works (tm) * Partitioning not correct (need to formulate a partman recipe) * But: after install the machine is in the afs cell and kerberos/afs work! --- diff --git a/preseed/preseed-test-0.cfg b/preseed/preseed-test-0.cfg index 3bed968..1af01b4 100644 --- a/preseed/preseed-test-0.cfg +++ b/preseed/preseed-test-0.cfg @@ -36,7 +36,7 @@ d-i netcfg/choose_interface select auto # If you prefer to configure the network manually, uncomment this line and # the static network configuration below. -#d-i netcfg/disable_dhcp boolean true +d-i netcfg/disable_dhcp boolean true # If you want the preconfiguration file to work on systems both with and # without a dhcp server, uncomment these lines and the static network @@ -45,17 +45,17 @@ d-i netcfg/choose_interface select auto #d-i netcfg/dhcp_options select Configure network manually # Static network configuration. -#d-i netcfg/get_nameservers string 192.168.1.1 -#d-i netcfg/get_ipaddress string 192.168.1.42 -#d-i netcfg/get_netmask string 255.255.255.0 -#d-i netcfg/get_gateway string 192.168.1.1 -#d-i netcfg/confirm_static boolean true +d-i netcfg/get_nameservers string 216.187.125.130 216.187.123.131 +d-i netcfg/get_ipaddress string 69.90.123.72 +d-i netcfg/get_netmask string 255.255.255.224 +d-i netcfg/get_gateway string 69.90.123.65 +d-i netcfg/confirm_static boolean true # 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 unassigned-hostname -d-i netcfg/get_domain string unassigned-domain +d-i netcfg/get_hostname string testkvm1 +d-i netcfg/get_domain string hcoop.net # Disable that annoying WEP key dialog. d-i netcfg/wireless_wep string @@ -84,19 +84,19 @@ d-i mirror/http/directory string /debian d-i mirror/http/proxy string # Suite to install. -#d-i mirror/suite string testing +d-i mirror/suite string squeeze # Suite to use for loading installer components (optional). #d-i mirror/udeb/suite string testing ### Account setup # Skip creation of a root account (normal user account will be able to # use sudo). -#d-i passwd/root-login boolean false +#d-i passwd/root-login boolean true # Alternatively, to skip creation of a normal user account. -#d-i passwd/make-user boolean false +d-i passwd/make-user boolean false # Root password, either in clear text -#d-i passwd/root-password password r00tme +d-i passwd/root-password password f00bar #d-i passwd/root-password-again password r00tme # or encrypted using an MD5 hash. #d-i passwd/root-password-crypted password [MD5 hash] @@ -268,7 +268,7 @@ d-i partman/confirm_nooverwrite boolean true # 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-2.6-486 +d-i base-installer/kernel/image string linux-image-2.6-amd64 ### Apt setup # You can choose to install non-free and contrib software. @@ -278,9 +278,9 @@ d-i partman/confirm_nooverwrite boolean true #d-i apt-setup/use_mirror boolean false # 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, volatile -#d-i apt-setup/security_host string security.debian.org -#d-i apt-setup/volatile_host string volatile.debian.org +d-i apt-setup/services-select multiselect security, volatile +d-i apt-setup/security_host string security.debian.org +d-i apt-setup/volatile_host string volatile.debian.org # Additional repositories, local[0-9] available #d-i apt-setup/local0/repository string \ @@ -299,16 +299,16 @@ d-i partman/confirm_nooverwrite boolean true #d-i debian-installer/allow_unauthenticated boolean true ### Package selection -#tasksel tasksel/first multiselect standard, web-server +tasksel tasksel/first multiselect SSH server, Standard system utilities # If the desktop task is selected, install the kde and xfce desktops # instead of the default gnome desktop. #tasksel tasksel/desktop multiselect kde, xfce # Individual additional packages to install -#d-i pkgsel/include string openssh-server build-essential +d-i pkgsel/include string build-essential less sudo vim emacs23-nox etckeeper changetrack openssh-server debsums logcheck bzip2 denyhosts rkhunter openafs-client ntp nscd krb5-user libpam-krb5 ssmtp libpam-afs-session openafs-krb5 # Whether to upgrade packages after debootstrap. # Allowed values: none, safe-upgrade, full-upgrade -#d-i pkgsel/upgrade select none +d-i pkgsel/upgrade select safe-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, @@ -344,6 +344,26 @@ d-i finish-install/reboot_in_progress note # debconf-get-selections --installer > file # debconf-get-selections >> file +libpam-runtime libpam-runtime/profiles multiselect krb5, unix, afs-session + +#debconf debconf/frontend select Dialog +debconf debconf/priority select low + +#openafs-client openafs-client/run-client boolean true +#openafs-client openafs-client/dynroot boolean true + +openafs-client openafs-client/thiscell string hcoop.net +openafs-client openafs-client/cachesize string 500000 +openafs-client openafs-client/fakestat boolean true + +krb5-config krb5-config/add_servers_realm string HCOOP.NET + +ssmtp ssmtp/root string logs +ssmtp ssmtp/rewritedomain string hcoop.net +ssmtp ssmtp/mailhub string mail + +rkhunter rkhunter/cron_daily_run boolean true +rkhunter rkhunter/cron_db_update boolean true #### Advanced options ### Running custom commands during the installation