echo do not run this script exit # Outside of chroot ## Keymap localectl list-keymaps loadkeys ## Check we are in efi cat /sys/firmware/efi/fw_platform_size ## Check internet ping archlinux.org ## Check date date timedatectl set-ntp true ## Setup partition lsblk fdisk -l fdisk /dev/disk > # create one 512mb (+512M) partition for efi, and another using the rest of the disk g, enter, n, enter, enter, enter, +512M, enter, t, enter, enter, 1, enter, n, enter, enter, enter, p, enter, w, enter, q, enter mkfs.fat -F 32 /dev/ mkfs.btrfs /dev/
mount /dev/
/mnt mount /dev/ /mnt/efi ## Install packages pacstrap -K /mnt base base-devel linux linux-firmware git btrfs-progs grub efibootmgr grub-btrfs inotify-tools vim networkmanager pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber reflector zsh openssh man sudo ## Fstab genfstab -U /mnt >> /mnt/etc/fstab cat /mnt/etc/fstab # Chroot # Get in arch-chroot /mnt # Timezone, locale ln -sf /usr/share/zoneinfo/Australia/Perth /etc/localtime hwclock --systohc vim /etc/locale.gen >uncomment the locale you want locale-gen echo "LANG=en_AU.UTF-8" > /etc/locale.conf echo "KEYMAP=us" > /etc/vconsole.conf # Hostname vim /etc/hostname vim /etc/hosts > # set per normal # Passwords, users passwd useradd -u 1089 -mG wheel kism passwd kism > # this is just for me, remove the -u argument and change the username visudo > # Uncomment the line allowing the wheel group to use sudo # Grub grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg # Systemd systemctl enable NetworkManager.service systemctl enable sshd.service # Exit reboot