https://www.youtube.com/watch?v=PQgyW10xD8s
NTP
- timedatectl set-ntp true
Partitioning
- fdisk -lfind your drive
- fdisk /dev/yourdiskname
- gmake a gpt label
- nthen- 1skip first sector, last sector- +550Mremove signature if required
- nthen- 2skip first sector, last sector is- +2G. this is swap
- nthen- 3skip first sector, skip last sector. you have all the remaining space now
- tthen- 1to switch to partition- 1into EFI System
- tthen- 19to switch partition- 2into- swap
- w
- lsblkfind your boot and root drives
- mkfs.fat -F32 /dev/bootdrive
- mkswap /dev/swapdrive
- swapon /dev/swapdrive
- mkfs.ext4 /dev/rootdrive
- mount /dev/rootdrive /mnt
- mkdir -p /mnt/boot/efi
- mount /dev/bootdrive /mnt/boot/efi
Pacstrap
- sudo pacman -S archlinux-keyring
- pacstrap /mnt base base-devel linux linux-firmware vim
FSTab
genfstab -U /mnt >> /mnt/etc/fstab
Chroot
- arch-chroot /mnt /bin/bash
- ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime
- hwclock --systohc
Locale
- vim /etc/locale.gen
- uncomment these.  then :wq then :wq
- locale-gen
- make a new file vim /etc/locale.conf. write
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
Hostname
change the hostname. usually its just arch
- vim /etc/hostname
- just write the name.
Network Configuration
- vim /etc/hosts
- add in lines:
127.0.0.1 localhost
::1 localhost
127.0.1.1 myhostname.localdomain myhostname
my host name is arch usually
Root Password
passwd
Add users
- useradd -m david
- passwd david
- usermod -aG wheel,audio,video,optical,storage david
- pacman -S sudo
- visudo
- uncomment the line %wheel ALL=(ALL:ALL) ALL
- add the line Defaults !tty_tickets
Boot
- pacman -S networkmanager grub efibootmgr dosfstools os-prober mtools
- systemctl enable NetworkManager
- grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
- grub-mkconfig -o /boot/grub/grub.cfg
Cleanup
1.exit
2.umount -R /mnt
3.reboot remove the usb LIVE disk
First boot
Seems I dont have internet. lets fix that
- systemctl restart NetworkManager
Prohibited Secure boot
If secure boot is enabled, then you must sign all of the grub software
- https://www.reddit.com/r/archlinux/comments/10pq74e/my_easy_method_for_setting_up_secure_boot_with/
- https://bbs.archlinux.org/viewtopic.php?id=282076
Updating Keyring
Fixing Linux Kernel
- mount /dev/rootdrive /mnt- If the file system needs to be cleaned then do: e2fsck -p /dev/rootdrive
 
- If the file system needs to be cleaned then do: 
- mkdir -p /mnt/boot/efi
- mount /dev/bootdrive /mnt/boot/efi
- arch-chroot /mnt /bin/bash
- sudo pacman -Syu linux