1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-09-16 13:44:42 -04:00

Compare commits

...

3 Commits

Author SHA1 Message Date
funk-on-code
4b87b34455
Merge 162f026966 into cffea037c4 2024-08-23 22:54:54 +02:00
cffea037c4
Update kernel module blacklist URL
Fixes #46 

Signed-off-by: Tommy <contact@tommytran.io>
2024-08-09 15:36:05 -07:00
funk-on-code
162f026966
[Corrected] Add a Full Name prompt / Full Name to user creation.
The correct version, adding a Full Name prompt (improves look of GDM display) and quote $fullname/$username accordingly.

Signed-off-by: funk-on-code <113871227+funk-on-code@users.noreply.github.com>
2024-08-05 22:59:22 +10:00

View File

@ -96,15 +96,25 @@ disk_prompt (){
}
username_prompt (){
output 'Enter your username:'
output 'Please enter the name for a user account:'
read -r username
if [ -z "${username}" ]; then
output 'You need to enter a username.'
output 'Sorry, You need to enter a username.'
username_prompt
fi
}
fullname_prompt (){
output 'Please enter the full name for the user account:'
read -r fullname
if [ -z "${fullname}" ]; then
output 'Please enter the full name of the users account.'
fullname_prompt
fi
}
user_password_prompt () {
output 'Enter your user password (the password will not be shown on the screen):'
read -r -s user_password
@ -169,6 +179,7 @@ luks_prompt
luks_password_prompt
disk_prompt
username_prompt
fullname_prompt
user_password_prompt
hostname_prompt
network_daemon_prompt
@ -438,7 +449,7 @@ if [ "${use_luks}" = '1' ]; then
fi
## Continue kernel hardening
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/etc/modprobe.d/blacklist.conf | tee /mnt/etc/modprobe.d/blacklist.conf > /dev/null
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/etc/modprobe.d/blacklist.conf | tee /mnt/etc/modprobe.d/blacklist.conf > /dev/null
if [ "${install_mode}" = 'server' ]; then
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/sysctl.d/99-server.conf | tee /mnt/etc/sysctl.d/99-server.conf > /dev/null
else
@ -539,8 +550,8 @@ arch-chroot /mnt /bin/bash -e <<EOF
grub-mkconfig -o /boot/grub/grub.cfg
# Adding user with sudo privilege
useradd -m $username
usermod -aG wheel $username
useradd -c "$fullname" -m "$username"
usermod -aG wheel "$username"
if [ "${install_mode}" = 'desktop' ]; then
# Setting up dconf