Advertisement
Guest User

Untitled

a guest
Mar 6th, 2024
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. d-i debian-installer/locale string en_US
  2.  
  3. # root account setup
  4. d-i passwd/root-login boolean true
  5.  
  6. d-i passwd/root-password-crypted password [removed]
  7.  
  8. # setup regular user
  9. d-i passwd/make-user boolean true
  10. d-i passwd/username string alice
  11. d-i passwd/user-fullname string alice
  12. d-i passwd/user-password-crypted password [removed]
  13. d-i user-setup/encrypt-home boolean false
  14. d-i user-setup/allow-password-weak boolean true
  15.  
  16. d-i passwd/user-default-groups string cdrom floppy audio dip video plugdev users netdev lpadmin scanner sudo
  17.  
  18. # Clock and time zone setup
  19. d-i clock-setup/utc boolean true
  20. d-i time/zone string UTC
  21. d-i clock-setup/ntp boolean true
  22.  
  23. # Partitioning
  24. d-i partman-auto/method string lvm
  25. d-i partman-lvm/device_remove_lvm boolean true
  26. d-i partman-md/device_remove_md boolean true
  27. d-i partman-lvm/confirm boolean true
  28. d-i partman-lvm/confirm_nooverwrite boolean true
  29. d-i partman/choose_partition select finish
  30. d-i partman-auto-lvm/guided_size string max
  31. d-i partman-auto/choose_recipe select atomic
  32. d-i partman/default_filesystem string ext4
  33. d-i partman/confirm_write_new_label boolean true
  34. d-i partman/confirm boolean true
  35. d-i partman/confirm_nooverwrite boolean true
  36. d-i grub-installer/only_debian boolean true
  37. d-i grub-installer/bootdev string default
  38.  
  39. # Scan another CD or DVD?
  40. apt-cdrom-setup apt-setup/cdrom/set-first boolean false
  41.  
  42. # Package mirror
  43. d-i mirror/country string manual
  44. d-i mirror/http/hostname string deb.debian.org
  45. d-i mirror/http/directory string /debian
  46. d-i mirror/http/proxy string
  47. d-i apt-setup/use_mirror boolean true
  48.  
  49. # Don't send reports back to the project
  50. popularity-contest popularity-contest/participate boolean false
  51.  
  52. # Package selection
  53. tasksel tasksel/first multiselect standard
  54.  
  55. # Automatically install grub to the MBR
  56. d-i grub-installer/only_debian boolean true
  57.  
  58. # Turn off last message about the install being complete
  59. d-i finish-install/reboot_in_progress note
  60.  
  61. # SSH key addition
  62. d-i preseed/late_command string \
  63. in-target mkdir -p /root/.ssh; \
  64. echo "[removed]" >> /root/.ssh/authorized_keys; \
  65. in-target chown -R root:root /root/.ssh/; \
  66. in-target chmod 644 /root/.ssh/authorized_keys; \
  67. in-target chmod 700 /root/.ssh/
  68.  
  69. # SSL certificate installation
  70. d-i preseed/late_command string in-target sh -c 'echo "[removed]" > /usr/local/share/ca-certificates/genisys_cert.crt && update-ca-certificates'
  71.  
  72. # copy firstboot.service file to client
  73. d-i preseed/late_command string wget -nd -m 'ftp://10.0.0.1:21/first-boot' -P /first-boot
  74. d-i preseed/late_command string chmod 0644 /first-boot
  75. d-i preseed/late_command string chown root /first-boot
  76.  
  77. # enable systemd service
  78. d-i preseed/late_command string systemctl daemon-reload
  79. d-i preseed/late_command string systemctl enable systemd-firstboot.service
  80.  
  81. # there must be an entrypoint file
  82. # ensure entrypoint is executable
  83. d-i preseed/late_command string chmod +x /first-boot/entrypoint
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement