Installing arch linux on UEFI systems, these notes are copied from some old orgfile I have lying around
- Assuming wired internet connection. Otherwise
wifi-menu
should save the day - Partition disks with
cgdisk /dev/nvme0n1
(orlsblk
to find the disk)
- EFI system, codename
ef00
at 500M for partition 1 - Linux filesystem, codename
8300
for partitions 2 and 3 - DO NOT create a swap partition
- Format partitions
mkfs.fat -F32 /dev/nvme0n1p1
mkfs.ext4 /dev/nvme0n1p2
mkfs.ext4 /dev/nvme0n1p3
- Mount everything
mount /dev/nvme0n1p2 /mnt
mkdir -p /mnt/boot
mkdir -p /mnt/home/nsalas/perma
mount /dev/nvme0n1p1 /mnt/boot
mount /dev/nvme0n1p3 /mnt/home/nsalas/perma
- Had something about mirrors, but that has changed over time. Will update
- Install the base system
pacstrap /mnt linux base base-devel git neovim curl wget sudo
- fstab:
genfstab -U /mnt >> /mnt/etc/fstab
. Check it. - chroot:
arch-chroot /mnt
- timezone:
ln -sf /usr/share/zoneinfo/America/Santiago /etc/localtime
hwclock --systohc
. Dunno. w/envim /etc/locale.gen
and uncommenten_US.UTF-8 UTF-8
I’ve neededes_CL.UTF-8
in the past but recently english only is finelocale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
echo minji > /etc/hostname
or w/e hostname. She’s the best tho- Edit
/etc/hosts
:
127.0.0.1 localhost
::1 localhost
127.0.0.1 minji.localdomain minji
passwd
. This one should be hard because it’s rootpacman -S grub amd-ucode linux-firmware efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S networkmanager network-manager-applet
otherwise might not have internet. Wifi might be available throughnmcli
. Honestly haven’t checked because I haven’t set up a laptop recently.exit
umount -R /mnt
reboot
- Login as root, no problem
pacman -S zsh zsh-completions
groupadd docker
useradd -m -G wheel,docker,input -s /usr/bin/zsh nsalas
passwd nsalas
visudo
, then search forwheel
and uncomment. You know the drill- Might opt for
doas
here, but honestly is not too good of an option systemctl enable NetworkManager.service
systemctl enable bluetooth.service
nvim /etc/pacman.conf
and enable multilibpacman -Syu
shouldn’t have many updates. After this I believe dotfiles installing should be fine