Corrections
This commit is contained in:
parent
2a4388b3bd
commit
e53982ff80
@ -77,6 +77,7 @@ genfstab -U /mnt >> /mnt/etc/fstab
|
||||
# Chroot into the new system and setup
|
||||
arch-chroot /mnt /bin/bash <<EOF
|
||||
# Set up user locale (date/time, keyboard layout)
|
||||
echo "Setting user locale"
|
||||
sed -i 's/^#en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen
|
||||
locale-gen
|
||||
pacman -S --noconfirm hunspell-en_gb
|
||||
@ -85,11 +86,13 @@ hwclock --systohc
|
||||
echo LANG=en_GB.UTF-8 > /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
|
||||
|
Loading…
Reference in New Issue
Block a user