From 65d922cbd89ed2f1d94f1890cb158437443e1620 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 23 Jan 2021 23:27:05 -0700 Subject: [PATCH] add user --- preseed.cfg | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/preseed.cfg b/preseed.cfg index bbde858..6089770 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -92,6 +92,9 @@ d-i netcfg/wireless_wep string # component for remote installation over SSH. This only makes sense if you # intend to perform the remainder of the installation manually. d-i anna/choose_modules string network-console +# XXX Set up key here, probably has to be RSA, ed25519 untested. +# ssh-keyget -t rsa +# Copy that to server d-i network-console/authorized_keys_url string http://145.40.77.103/id_rsa.pub #d-i network-console/password password r00tme #d-i network-console/password-again password r00tme @@ -100,8 +103,10 @@ d-i network-console/authorized_keys_url string http://145.40.77.103/id_rsa.pub # If you select ftp, the mirror/country string does not need to be set. #d-i mirror/protocol string ftp d-i mirror/country string manual +# XXX Set mirror d-i mirror/http/hostname string http.us.debian.org d-i mirror/http/directory string /debian +# XXX Set up proxy d-i mirror/http/proxy string # Suite to install. @@ -114,23 +119,24 @@ d-i mirror/http/proxy string # use sudo). #d-i passwd/root-login boolean false # Alternatively, to skip creation of a normal user account. -d-i passwd/make-user boolean false +#d-i passwd/make-user boolean false # Root password, either in clear text #d-i passwd/root-password password r00tme #d-i passwd/root-password-again password r00tme # or encrypted using a crypt(3) hash. -# mkpasswd -m sha-512 -S $(pwgen -ns 16 1) mypassword -d-i passwd/root-password-crypted password $6$isHvoesy6GWx2nHg$lfhJSAiQCn2hKHCcDDp/RmeoaxjADD0hK7bsVIU93AaWhYjrpkpIV7MZ/49W7FcGYkMzgPwYalUw7aonyr2GI1 +# mkpasswd -m sha-512 mypassword +d-i passwd/root-password-crypted password $6$On5SH6RmP1gKgISf$YvKvj0gkpZUrWh/38XN2hThzcvpf1H6UDnXm2RKwYVKhkmC1YCAcfP/7tiIUpkLchlsAWEmo/S7geymM.5Zqg1 # To create a normal user account. -#d-i passwd/user-fullname string Debian User -#d-i passwd/username string debian +d-i passwd/user-fullname string Debian User +# XXX username +d-i passwd/username string debian # 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 [crypt(3) hash] +d-i passwd/user-password-crypted password $6$wxBjtDAwcATo.ww.$hUsLPT/4QiKTV7O74NHNOnhe0PaGNLaaH2QBsqIGI0uqJ78kxprYkXqg1jLVZmx6oGz5WuAbg.X7TYPpGZm.6/ # Create the first user with the specified UID instead of the default. #d-i passwd/user-uid string 1010 @@ -404,7 +410,8 @@ d-i finish-install/reboot_in_progress note # This is how to make the installer shutdown when finished, but not # reboot into the installed system. -d-i debian-installer/exit/halt boolean true +# XXX HALT +#d-i debian-installer/exit/halt boolean true # This will power off the machine instead of just halting it. #d-i debian-installer/exit/poweroff boolean true