Had to fix a path mispelling, and had to fix multiline comments in embeded script

This commit is contained in:
Tristan Ancelet 2023-11-10 15:49:51 -06:00
parent ac608174fa
commit 1cdd9342f9

View File

@ -182,46 +182,48 @@ echo '$HOSTNAME' > /etc/hostname
# Setting timezone of the machine # Setting timezone of the machine
ln -sf /usr/share/zoneinfo/$TIMEZONE_INFO /etc/localtime ln -sf /usr/share/zoneinfo/$TIMEZONE_INFO /etc/localtime
# Setting LOCALE of machine (uncommenting # Setting LOCALE of machine (uncommenting the entry)
cp /etc/locale.gen{,-bak} cp /etc/locale.gen{,-bak}
sed -i s'/\#$LOCALE/$LOCALE/' /dev/locale.gen sed -i s'/\#$LOCALE/$LOCALE/' /etc/locale.gen
echo 'LANG=$LOCALE' > /etc/locale.conf
# Generate local # Generate local
locale-gen locale-gen
## Configure locale.conf
echo 'LANG=$LOCALE' > /etc/locale.conf
# Install and Enable Networking Systems # Install and Enable Networking Systems
: ' ##
networkmanager: #networkmanager:
This is the system that will handle all networking for your system, allowing you to setup profiles and otherwise automatically configure your network as needed. #This is the system that will handle all networking for your system, allowing you to setup profiles and otherwise automatically configure your network as needed.
#
#wpa_supplicant:
#This is the service/program that will manage supplication (aka wireless handshakes) between your device and your Access Point/Router
##
wpa_supplicant:
This is the service/program that will manage supplication (aka wireless handshakes) between your device and your Access Point/Router
'
## Installing networking packages ## Installing networking packages
pacman -S -y networkmangager wpa_supplicant echo "$INSTALL_SYSTEM" | less
pacman -y -S networkmangager wpa_supplicant
## Enabling systemd services ## Enabling systemd services
systemctl enable wpa_supplicant NetworkManager systemctl enable wpa_supplicant NetworkManager
## Installing bootloader ## Installing bootloader
: ' #grub:
grub: #Grub is a bootloader. A program that helps you boot into an installed system
Grub is a bootloader. A program that helps you boot into an installed system #
#It is what actually load your kernel and init-system via your install's specific efi file located somewhere in (/boo/efi/EFI)
#
#
#efibootmgr:
#Is a tool that is used to edit boot manager settings (primarily to delete and move boot options around)
It is what actually load your kernel and init-system via your install's specific efi file located somewhere in (/boo/efi/EFI)
efibootmgr:
Is a tool that is used to edit boot manager settings (primarily to delete and move boot options around)
'
### Do bootloader install ### Do bootloader install
` `
case "${BOOT_METHOD,,}" in case "${BOOT_METHOD,,}" in
efi) efi)
echo "pacman -S -y grub efibootmgr" echo "pacman -y -S grub efibootmgr"
echo "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi" echo "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi"
;; ;;
bios) bios)
echo "pacman -S -y grub" echo "pacman -y -S grub"
echo "grub-install --target=i386-pc --boot-directory=/boot" echo "grub-install --target=i386-pc --boot-directory=/boot"
;; ;;
esac esac
@ -229,21 +231,20 @@ esac
## Create grub config ## Create grub config
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg
: ' ## gnome:
gnome: # This is the gnome desktop enviorment. It's the default choice for most distros by default (due to fewer release cycles, meaning distro maintainers don't have to work as much to maintain it for their distro).
This is the gnome desktop enviorment. It's the default choice for most distros by default (due to fewer release cycles, meaning distro maintainers don't have to work as much to maintain it for their distro). #
# There are other choices:
# - KDE/Plasma
# - xfce4
# - lxde
# ...
#
#KDE is usually the next choice for those wanting to have a very easy to use and integrated desktop with a lot of customizability.
#
## gdm \"Gnome Desktop Manager\":
# This is the default desktop manager (login screen) for gnome. This just handles the login screen and starting up your desktop session & windowing system based off of your choices.
There are other choices:
- KDE/Plasma
- xfce4
- lxde
...
KDE is usually the next choice for those wanting to have a very easy to use and integrated desktop with a lot of customizability.
gdm \"Gnome Desktop Manager\":
This is the default desktop manager (login screen) for gnome. This just handles the login screen and starting up your desktop session & windowing system based off of your choices.
'
## Install desktop env ## Install desktop env
pacman -S -y gnome pacman -S -y gnome
@ -260,11 +261,10 @@ echo -e '$NEW_PASSWORD\n$NEW_PASSWORD\n' | passwd $NEW_USER
usermod -aG wheel $NEW_USER usermod -aG wheel $NEW_USER
## Setting up wheel group in sudoers ## Setting up wheel group in sudoers
: ' # I am doing it this way because it's not a good idea to edit /etc/sudoers non-interactively, as you can break sudo for all other users except root.
I am doing it this way because it's not a good idea to edit /etc/sudoers non-interactively, as you can break sudo for all other users except root. #
# sudo will load all definitions from /etc/sudoers.d/ and won't break if there is an error in the extra files (unlike if you edit /etc/sudoers directly)
sudo will load all definitions from /etc/sudoers.d/ and won't break if there is an error in the extra files (unlike if you edit /etc/sudoers directly)
'
echo '%wheel ALL=(ALL:ALL) ALL' > /etc/sudoers.d/wheel echo '%wheel ALL=(ALL:ALL) ALL' > /etc/sudoers.d/wheel
" "