Updated preinstalls

pull/1/head
beech 2 years ago
parent 0d1c8eebca
commit 0c810bae50
  1. 6
      README.md
  2. 26
      preinstall1.sh
  3. 28
      preinstall2.sh

@ -16,6 +16,8 @@ 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
passwd
useradd -M -g users -G wheel,storage,power -S /bin/bash USERNAME
passwd USERNAME
@ -25,11 +27,13 @@ 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
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
sh preinstall2.sh
exit
umount -r /mnt
```
### After First Boot

@ -51,7 +51,6 @@ mount /dev/sda4 /mnt/home
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup # backs up mirrorlist
sudo pacman -Sy pacman-contrib --noconfirm --needed
sudo pacman -S rankmirrors --noconfirm --needed
rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
# install arch
@ -66,29 +65,6 @@ echo "-------------------------------------------------"
genfstab -U -p /mnt >> /mnt/etc/fstab
arch chroot /mnt # chroot
# generate locales
sudo pacman -S nano bash-completion --noconfirm --needed
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
# set timezone & link HW clock
ln -S /usr/share/zoneinfo/America/Chicago > /etc/localtime
hwclock --systohc --utc
# set hostname
echo archdesk > /etc/hostname
# Enable TRIM
systemctl enable fstrim.timer
echo "-------------------------------------------------"
echo "Create user accounts using commands in README, then proceed to 2nd installer."
echo "Finished with install script 1. Please run [arch-chroot /mnt] and move on to 2nd installer."
echo "-------------------------------------------------"

@ -1,5 +1,26 @@
#!/usr/bin/env bash
# generate locales
sudo pacman -S bash-completion --noconfirm --needed
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
# set timezone & link HW clock
ln -S /usr/share/zoneinfo/America/Chicago > /etc/localtime
hwclock --systohc --utc
# set hostname
echo archdesk > /etc/hostname
# Enable TRIM
systemctl enable fstrim.timer
# mount efivars
mount -t efivarfs efivarfs /sys/firmware/efi/efivars/
@ -28,8 +49,5 @@ sudo systemctl enable NetworkManager.service
echo "-------------------------------------------------"
echo "Arch Linux Installed & Configured - Reboot & Proceed to setup scripts"
echo "-------------------------------------------------"
exit
umount -R /mnt
echo "Arch Linux Installed & Configured. Please [exit] & run [umount -R /mnt] and reboot"
echo "-------------------------------------------------"