Skip to content

Instantly share code, notes, and snippets.

@afair
Last active April 18, 2024 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afair/e90410abad1fc69cbb4e0d1e136a0ac3 to your computer and use it in GitHub Desktop.
Save afair/e90410abad1fc69cbb4e0d1e136a0ac3 to your computer and use it in GitHub Desktop.
Notes from the time I installed Arch Linux.

Install archer, Jan 14, 2024

Boot from install medium

Set BIOS to UEFI

Prepare on nvme1 (n1) CT2000P3SSD8 /dev/nvme0n1

  • timedatectl *fdisk -l

  • lsblk

  • cfdisk /dev/nvme1n1

    g = gpt disk label nvme1n1 259:5 0 1.8T 0 disk ├─nvme1n1p1 259:6 0 1G 0 EFI System ├─nvme1n1p2 259:7 0 4G 0 Swap └─nvme1n1p3 259:8 0 1.8T 0 Linux Filesystem

  • mkfs.fat -F 32 /dev/nvme1n1p1

  • mkswap /dev/nvme1n1p2

  • mkfs.ext4 /dev/nvme1n1p3

  • mount /dev/nvme1n1p3 /mnt

  • skip this: mount --mkdir /dev/nvme1n1p1 /mnt/boot

  • swapon /dev/nvme1n1p2

    Device Start End Sectors Size Type /dev/nvme1n1p1 2048 2099199 2097152 1G EFI System /dev/nvme1n1p2 2099200 10487807 8388608 4G Linux swap /dev/nvme1n1p3 10487808 3907028991 3896541184 1.8T Linux filesystem

Install

  • pacstrap -K /mnt base linux linux-firmware sudo neovim openssh networkmanager sof-firmware man-db man-pages texinfo curl git

  • genfstab -U /mnt >> /mnt/etc/fstab

  • arch-chroot /mnt

  • ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

  • locale-gen

  • echo "LANG=en_US.UTF-8" > /etc/locale.conf

  • echo "archer" > /etc/hostname

  • systemctl enable NetworkManager

  • systemctl enable sshd

  • passwd

  • useradd -m -G wheel allen

  • passwd allen

  • EDITOR=nvim visudo # Uncomment %wheel ALL=(ALL) NOPASSWD: ALL

GRUB

  • pacman -Sy grub efibootmgr os-prober mtools

  • mkdir /boot/efi

  • mount /dev/nvme1n1p1 /boot/efi

  • grub-install --target=x86_64-efi --bootloader-id=Archer-Grub --efi-directory=/boot/EFI

  • grub-mkconfig -o /boot/grub/grub.cfg

    /boot/vmlinux-linux /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img /boot/grub/{fonts,locale,themes,x86_64-efi,grub.sfg,grubenv}/ /boot/EFI/{IDNAME}/grubx64.efi

  • exit

  • unmount -R /mnt

  • reboot

Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the kernel package with pacstrap

  • pacman -S linux # Installs kernal (vmlinuz-linux)
  • mkinitcpio -P # Creates boot ramdisk (initramfs-linux.img)

User account

Bootstrap from another host:

https://www.lunarvim.org/docs/installation

AUR Packages

https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages https://aur.archlinux.org/

The yay package installs other AUR packages. Install it first, then:

  • yay -S packagenames...

NVIDIA Card

  • lspci -k | grep -A 2 -E "(VGA|3D)" 01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] GA104 [GeForce RTX 3060] Kernel driver in use: nouveau

  • Nvidia site reports driver version 535.146.02

  • Nouveau: NV170 GeForce RTX 3060, Nvidia 3D codename Ampere

  • NV176 (GA106) GeForce RTX (3050, 3060)

  • pacman -S nvidia nvidia-utils nvidia-settings cuda cudnn nvidia-cuda-toolkit

The nvidia package adds a module to the kernel, which might freak out grub. If so, check EFI mount, reinstall linux (kernel) package, and mkinitcpio -P

KDE

Fonts

  • sudo pacman -S ttf-meslo-nerd

  • sudo pacman -S noto-fonts-cjk noto-fonts-emoji noto-fonts

  • sudo pacman -S gnu-free-fonts ttf-bitstream-vera ttf-croscore ttf-dejavu ttf-droid ttf-ibm-plex ttf-liberation

  • sudo pacman -S sddm

  • sudo systemctl enable sddm

  • sudo pacman -S plasma konsole dolphin ark kwrite kcalc spectacle partitionmanager packagekit-qt5

  • sudo pacman -S alsa-utils bluez bluez-utils

  • sudo systemctl enable bluetooth.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment