From 8c74aacbda78f50863403d702e7633071b3c1aec Mon Sep 17 00:00:00 2001 From: beech Date: Wed, 3 Jul 2024 23:29:55 -0500 Subject: [PATCH] Updated install scripts & README --- README.md | 6 +++--- preinstall1.sh | 2 +- preinstall2.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b3b9371..d17c0d9 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ This step installs arch to your hard drive. *IT WILL FORMAT THE DISK* curl https://git.boppdev.net/beech/ArchScripts/raw/branch/main/preinstall1.sh -o preinstall1.sh sh preinstall1.sh -arch chroot /mnt +arch-chroot /mnt passwd -useradd -M -g users -G wheel,storage,power -S /bin/bash USERNAME +useradd -M -g users -G wheel,storage,power -s /bin/bash USERNAME passwd USERNAME sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers echo "Defaults rootpw" >> /etc/sudoers @@ -27,7 +27,7 @@ echo "Defaults rootpw" >> /etc/sudoers ip link # Take note of your link name & edit in preinstall2. # Run preinstall2.sh -sudo pacman -S curl --noconfirm --needed +sudo pacman -S nano curl --noconfirm --needed curl https://git.boppdev.net/beech/ArchScripts/raw/branch/main/preinstall2.sh -o preinstall2.sh nano preinstall2.sh # Edit adapter name for dhcpcd service in script diff --git a/preinstall1.sh b/preinstall1.sh index 44b9256..66de967 100644 --- a/preinstall1.sh +++ b/preinstall1.sh @@ -50,7 +50,7 @@ mount /dev/sda4 /mnt/home # set download mirrors cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup # backs up mirrorlist -sudo pacman -Sy pacman-contrib --noconfirm --needed +sudo pacman -Sy pacman-contrib --noconfirm rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist # install arch diff --git a/preinstall2.sh b/preinstall2.sh index cfeec25..abf3b13 100644 --- a/preinstall2.sh +++ b/preinstall2.sh @@ -10,7 +10,7 @@ export LANG=en_US.UTF-8 # set timezone & link HW clock -ln -S /usr/share/zoneinfo/America/Chicago > /etc/localtime +ln -s /usr/share/zoneinfo/America/Chicago > /etc/localtime hwclock --systohc --utc # set hostname