From 64a3bf422b5c4cd348b2e7468d81e06c4663d627 Mon Sep 17 00:00:00 2001 From: ulinja <56582668+ulinja@users.noreply.github.com> Date: Fri, 22 Apr 2022 21:03:10 +0200 Subject: [PATCH] add hash generation hint to comments --- default-preseed.cfg | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/default-preseed.cfg b/default-preseed.cfg index 00dbd0b..45184c1 100644 --- a/default-preseed.cfg +++ b/default-preseed.cfg @@ -73,8 +73,8 @@ d-i netcfg/choose_interface select auto # 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 srv-test-0 -d-i netcfg/get_domain string skyforest.net +d-i netcfg/get_hostname string my-debian-machine +d-i netcfg/get_domain string example.com # If you want to force a hostname, regardless of what either the DHCP # server returns or what the reverse DNS entry for the IP is, uncomment @@ -126,16 +126,17 @@ d-i mirror/http/proxy string #d-i passwd/root-password password r00tme #d-i passwd/root-password-again password r00tme # or encrypted using a crypt(3) hash. -d-i passwd/root-password-crypted password SOME-HASH-HERE +# generate using: python3 -c 'import crypt, getpass; print(crypt.crypt(getpass.getpass(), crypt.METHOD_SHA512))' +d-i passwd/root-password-crypted password $6$ejIby666HDLKIcgq$SthCbLDIgPlQZb/DNB0XOdgXTYGJIx5cu4qqSAH/KiyFEsDPKWTzyUipqu3TcsMziBo5WxiavPO.a0j8qW2ZY/ # To create a normal user account. -d-i passwd/user-fullname string KHN Administrator +d-i passwd/user-fullname string John Doe d-i passwd/username string administrator # Normal user's password, either in clear text #d-i passwd/user-password password insecure #d-i passwd/user-password-again password insecure # or encrypted using a crypt(3) hash. -d-i passwd/user-password-crypted password SOME-HASH-HERE +d-i passwd/user-password-crypted password $6$ejIby666HDLKIcgq$SthCbLDIgPlQZb/DNB0XOdgXTYGJIx5cu4qqSAH/KiyFEsDPKWTzyUipqu3TcsMziBo5WxiavPO.a0j8qW2ZY/ # Create the first user with the specified UID instead of the default. #d-i passwd/user-uid string 1010 @@ -149,7 +150,7 @@ d-i clock-setup/utc boolean true # You may set this to any valid setting for $TZ; see the contents of # /usr/share/zoneinfo/ for valid values. -d-i time/zone string Europe/Berlin +d-i time/zone string Europe/Amsterdam # Controls whether to use NTP to set the clock during the install d-i clock-setup/ntp boolean true