diff --git a/scripts/0-install.sh b/scripts/0-install.sh index a914ebc..b318130 100644 --- a/scripts/0-install.sh +++ b/scripts/0-install.sh @@ -77,6 +77,7 @@ genfstab -U /mnt >> /mnt/etc/fstab # Chroot into the new system and setup arch-chroot /mnt /bin/bash < /etc/locale.conf echo "KEYMAP=uk" > /etc/vconsole.conf # Set host information +echo "Setting host information" echo archlinux > /etc/hostname echo -e "\n127.0.0.1 localhost\n::1 localhost\n127.0.0.1 archlinux" >> /etc/hosts # Set up environment file echo -e "\n# Set terminal editor to Nano\nEDITOR=nano" >> /etc/environment # Add "chaotic-aur" as a Pacman repository +echo "Configuring Pacman" pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com pacman-key --lsign-key 3056513887B78AEB pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' @@ -102,12 +105,14 @@ echo -e "\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pa # Do a full sync on Pacman to enable extra repos pacman -Syu # Enable NetworkManager +echo "Enabling networking" systemctl enable NetworkManager # Install GRUB echo "Installing bootloader" grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg # Create the standard user and add it to all neccesary groups +echo "Creating user account" useradd -mG power,storage,wheel $username echo "$username:$password" | chpasswd # Disable the option to log in as the root user @@ -115,7 +120,8 @@ passwd --lock root # Set up sudo so "wheel" group users can do root commands (password required) sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers # Set up GPU drivers depending on device -if [[ $gpu == "vmware" ]] +echo "Installing and configuring GPU drivers" +if [[ $gpu == "vmware" ]] then echo "Installing VM drivers" pacman -S --noconfirm --needed open-vm-tools cat /proc/version > /etc/arch-release @@ -123,7 +129,7 @@ if [[ $gpu == "vmware" ]] systemctl enable vmtoolsd pacman -S --noconfirm --needed xf86-input-vmmouse xf86-video-vmware mesa fi -if [[ $gpu == "nvidia" ]] +if [[ $gpu == "nvidia" ]] then echo "Installing NVIDIA GPU drivers" pacman -S --noconfirm nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings # Tweak systemd.conf and enable services for proper suspend/resume