diff --git a/bare-arch-install.sh b/bare-arch-install.sh index a1dc019..409b3bf 100755 --- a/bare-arch-install.sh +++ b/bare-arch-install.sh @@ -182,46 +182,48 @@ echo '$HOSTNAME' > /etc/hostname # Setting timezone of the machine 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} -sed -i s'/\#$LOCALE/$LOCALE/' /dev/locale.gen -echo 'LANG=$LOCALE' > /etc/locale.conf +sed -i s'/\#$LOCALE/$LOCALE/' /etc/locale.gen # Generate local locale-gen +## Configure locale.conf +echo 'LANG=$LOCALE' > /etc/locale.conf # Install and Enable Networking Systems -: ' -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. +## +#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. +# +#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 -pacman -S -y networkmangager wpa_supplicant +echo "$INSTALL_SYSTEM" | less +pacman -y -S networkmangager wpa_supplicant ## Enabling systemd services systemctl enable wpa_supplicant NetworkManager ## Installing bootloader -: ' -grub: -Grub is a bootloader. A program that helps you boot into an installed system +#grub: +#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 ` case "${BOOT_METHOD,,}" in 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" ;; bios) - echo "pacman -S -y grub" + echo "pacman -y -S grub" echo "grub-install --target=i386-pc --boot-directory=/boot" ;; esac @@ -229,21 +231,20 @@ esac ## Create grub config grub-mkconfig -o /boot/grub/grub.cfg -: ' -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). +## 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). +# +# 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 pacman -S -y gnome @@ -260,11 +261,10 @@ echo -e '$NEW_PASSWORD\n$NEW_PASSWORD\n' | passwd $NEW_USER usermod -aG wheel $NEW_USER ## 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 "