https://www.youtube.com/watch?v=PQgyW10xD8s
NTP
timedatectl set-ntp true
Partitioning
fdisk -l
find your drivefdisk /dev/yourdiskname
g
make a gpt labeln
then1
skip first sector, last sector+550M
remove signature if requiredn
then2
skip first sector, last sector is+2G
. this is swapn
then3
skip first sector, skip last sector. you have all the remaining space nowt
then1
to switch to partition1
into EFI Systemt
then19
to switch partition2
intoswap
w
lsblk
find your boot and root drivesmkfs.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
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 --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
1. If the file system needs to be cleaned then do:e2fsck -p /dev/rootdrive
mkdir -p /mnt/boot/efi
mount /dev/bootdrive /mnt/boot/efi
arch-chroot /mnt /bin/bash
sudo pacman -Syu linux