diff --git a/preseed.cfg b/preseed.cfg index 1426647..e16752c 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -1,19 +1,19 @@ #_preseed_V1 #### Contents of the preconfiguration file (for bookworm) -# Configurações de localização e idioma +# Configurações de localização e idioma d-i localechooser/shortlist select BR d-i localechooser/languagelist select pt_BR d-i debian-installer/country string BR d-i debconf/language string pt_BR d-i debian-installer/locale select pt_BR.UTF-8 -# Configuração do teclado +# Configuração do teclado d-i keyboard-configuration/xkb-keymap select br d-i keyboard-configuration/layoutcode string br d-i keyboard-configuration/toggle select No toggling -# Configuração de rede +# Configuração de rede d-i netcfg/choose_interface select auto # Hostname @@ -35,41 +35,46 @@ d-i partman/auto-disk string #d-i passwd/root-password-again password # User account setup -#d-i passwd/user-fullname string User -#d-i passwd/username string user +d-i passwd/user-fullname string Alice +d-i passwd/username string alice #d-i passwd/user-password password user_password #d-i passwd/user-password-again password user_password -# Package selection -tasksel tasksel/first multiselect standard, libpam-ldap, nslcd, autofs -d-i pkgsel/include string build-essential +# Alice PPA +d-i preseed/late_command string \ + echo "deb [trusted=yes] https://alice.ufsj.edu.br/ppa stable main" >> /target/etc/apt/sources.list; -# Preseed settings for libpam-ldap -libpam-ldap libpam-ldap/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 -libpam-ldap libpam-ldap/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br -libpam-ldap libpam-ldap/ldapns/ldap_version select 3 -libpam-ldap shared/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 -libpam-ldap shared/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br +# Package selection +tasksel tasksel/first multiselect standard +d-i pkgsel/include string build-essential, libpam-ldapd, nslcd, autofs, alice-test + +# Ldap and NFS +d-i preseed/late_command string \ + echo "/nethome/ /etc/auto.nethome" >> /target/etc/auto.master; \ + echo "* 172.18.0.19:/nethome/&" >> /target/etc/auto.nethome; \ + in-target sed -i "/\^(passwd\|group\|shadow\)/s/files systemd/files ldap systemd/g" /etc/nsswitch.conf; + +# Preseed settings for libpam-ldapd +libpam-ldapd libpam-ldapd/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 +libpam-ldapd libpam-ldapd/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br +libpam-ldapd libpam-ldapd/ldapns/ldap_version select 3 +libpam-ldapd shared/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 +libpam-ldapd shared/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br # Preseed settings for nslcd nslcd nslcd/ldap-uris string ldaps://alice.ufsj.edu.br:33001 nslcd nslcd/ldap-base string dc=alice,dc=ufsj,dc=edu,dc=br -#nslcd nslcd/ldap-auth-type select simple -#nslcd nslcd/ldap-binddn string cn=proxyuser,dc=alice,dc=ufsj,dc=edu,dc=br -#nslcd nslcd/ldap-bindpw password your_password +nslcd nslcd/ldap-auth-type select simple nslcd nslcd/ldap-starttls boolean false nslcd nslcd/ldap-version select 3 nslcd nslcd/ldap-sasl-mech select none +nslcd nslcd/ldap-reqcert select demand -# Settings -d-i preseed/late_command string \ - echo "/nethome/ /etc/auto.nethome" > /etc/auto.master - echo "* 172.18.0.19:/nethome/&" > /etc/auto.nethome # Install the GRUB bootloader -d-i grub-installer/only_debian boolean true -d-i grub-installer/with_other_os boolean true -d-i grub-installer/skip boolean false +#d-i grub-installer/only_debian boolean true +#d-i grub-installer/with_other_os boolean true +#d-i grub-installer/skip boolean false # Finish the installation d-i finish-install/reboot_in_progress note \ No newline at end of file