Skip to content

Instantly share code, notes, and snippets.

@leogr
Created January 26, 2019 10:43
Show Gist options
  • Select an option

  • Save leogr/9408b10960e6babf76fc40f50a2df1d0 to your computer and use it in GitHub Desktop.

Select an option

Save leogr/9408b10960e6babf76fc40f50a2df1d0 to your computer and use it in GitHub Desktop.
[WIP] Arch on X1 Carbon (4 gen)

From live boot:

loadkeys it
cd /usr/share/kbd/consolefonts
setfont latarcyrheb-sun32.psfu.gz
wifi-menu
timedatectl set-ntp true

Partition the disk

UEFI with GPT (no swap): https://wiki.archlinux.org/index.php/Installation_guide#Partition_the_disks

Format partitions

(todo): system encryption EFI system

mkfs.fat -F32 /dev/nvme0n1p1

Linux filesystem

mkfs.ext4 /dev/nvme0n1p2

Mount the file systems

Mount the file system on the root partition to /mnt, for example:

mount /dev/nvme0n1p2 /mnt

mkdir /mnt/efi
mount /dev/nvme0n1p1 /mnt/efi

Install the base packages

pacstrap /mnt base base-devel iw iwd

Generate fstab and chroot into /mnt

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

arch-chroot /mnt

Time zone

Set the time zone:

ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock(8) to generate /etc/adjtime:

hwclock --systohc

Localization

https://wiki.archlinux.org/index.php/Installation_guide#Localization

Network configuration

https://wiki.archlinux.org/index.php/Installation_guide#Network_configuration

Root password

Set the root password:

passwd

Bootloader with microcode updates

Install grub and efibootmgr

pacman -Syu grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

Install the intel-ucode package

pacman -Suy intel-ucode

grub-mkconfig will automatically detect the microcode update and configure GRUB appropriately. After installing the microcode package, regenerate the GRUB config to activate loading the microcode update by running:

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

...and reboot!

Post installation

Setup wifi connection iwctl Enable dhcp service

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