Files
kali-preseed/preseed.cfg
2023-01-10 21:50:09 -05:00

86 lines
2.7 KiB
INI

### General Config
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
d-i clock-setup/utc boolean true
d-i time/zone string US/Eastern
### Keyboard Config
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
### Network Config
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string kali-cleanroom
d-i netcfg/get_domain string local.lan
d-i netcfg/hostname string kali-cleanroom
### Root Account Setup
d-i passwd/root-login boolean true
d-i passwd/make_user boolean false
d-i passwd/root-password password
d-i passwd/root-password-again password
d-i user-setup/encrypt-home boolean false
### RedTeam User Setup
d-i passwd/make-user boolean true
d-i passwd/user-fullname string RedTeam
d-i passwd/username string redteam
d-i passwd/user-password password Changeme!!
d-i passwd/user-password-again password Changeme!!
d-i user-setup/encrypt-home boolean false
d-i user-setup/allow-password-weak boolean false
d-i passwd/user-default-groups string audo cdrom video admin sudo
### Partitioning
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
### Mirror Settings
d-i mirror/country string manual
d-i mirror/http/hostname string http.kali.org
d-i mirror/http/directory string /
d-i mirror/http/proxy string
### APT Setup
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server kali-linux-all
d-i apt-setup/use_mirror boolean true
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select none
d-i pkgsel/upgrade select full-upgrade
### Bootloader
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string default
### Finishing Up
d-i preseed/late_command string \
echo 'redteam ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/redteam ; \
in-target chmod 400 /etc/sudoers.d/redteam ; \
in-target systemctl enable ssh.service ; \
in-target sh -c 'sed -i "s/^#PermitRootLogin.*\$/PermitRootLogin yes/g" /etc/ssh/sshd_config' ; \
in-target mkdir -p /home/redteam/.ssh ; \
in-target echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIanH253TBKhhuqoIXEEjAb1h8teaff+gzWQrG0hHecn" >/home/redteam/.ssh/authorized_keys
in-target sh -c 'systemctl enable ssh' ;
d-i finish-install/reboot_in_progress note