Update preseed.cfg

This commit is contained in:
Carneiro 2024-09-09 12:13:56 -03:00
parent 2236e45518
commit acd5b6f130
1 changed files with 29 additions and 24 deletions

View File

@ -1,19 +1,19 @@
#_preseed_V1 #_preseed_V1
#### Contents of the preconfiguration file (for bookworm) #### 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/shortlist select BR
d-i localechooser/languagelist select pt_BR d-i localechooser/languagelist select pt_BR
d-i debian-installer/country string BR d-i debian-installer/country string BR
d-i debconf/language string pt_BR d-i debconf/language string pt_BR
d-i debian-installer/locale select pt_BR.UTF-8 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/xkb-keymap select br
d-i keyboard-configuration/layoutcode string br d-i keyboard-configuration/layoutcode string br
d-i keyboard-configuration/toggle select No toggling d-i keyboard-configuration/toggle select No toggling
# Configuração de rede # Configuração de rede
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
# Hostname # Hostname
@ -35,41 +35,46 @@ d-i partman/auto-disk string
#d-i passwd/root-password-again password #d-i passwd/root-password-again password
# User account setup # User account setup
#d-i passwd/user-fullname string User d-i passwd/user-fullname string Alice
#d-i passwd/username string user d-i passwd/username string alice
#d-i passwd/user-password password user_password #d-i passwd/user-password password user_password
#d-i passwd/user-password-again password user_password #d-i passwd/user-password-again password user_password
# Package selection # Alice PPA
tasksel tasksel/first multiselect standard, libpam-ldap, nslcd, autofs d-i preseed/late_command string \
d-i pkgsel/include string build-essential echo "deb [trusted=yes] https://alice.ufsj.edu.br/ppa stable main" >> /target/etc/apt/sources.list;
# Preseed settings for libpam-ldap # Package selection
libpam-ldap libpam-ldap/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 tasksel tasksel/first multiselect standard
libpam-ldap libpam-ldap/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br d-i pkgsel/include string build-essential, libpam-ldapd, nslcd, autofs, alice-test
libpam-ldap libpam-ldap/ldapns/ldap_version select 3
libpam-ldap shared/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 # Ldap and NFS
libpam-ldap shared/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br 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 # Preseed settings for nslcd
nslcd nslcd/ldap-uris string ldaps://alice.ufsj.edu.br:33001 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-base string dc=alice,dc=ufsj,dc=edu,dc=br
#nslcd nslcd/ldap-auth-type select simple 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-starttls boolean false nslcd nslcd/ldap-starttls boolean false
nslcd nslcd/ldap-version select 3 nslcd nslcd/ldap-version select 3
nslcd nslcd/ldap-sasl-mech select none 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 # Install the GRUB bootloader
d-i grub-installer/only_debian boolean true #d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true #d-i grub-installer/with_other_os boolean true
d-i grub-installer/skip boolean false #d-i grub-installer/skip boolean false
# Finish the installation # Finish the installation
d-i finish-install/reboot_in_progress note d-i finish-install/reboot_in_progress note