Skip to content

Instantly share code, notes, and snippets.

@graphicmist
Last active February 6, 2023 08:48
Show Gist options
  • Save graphicmist/1a91dc0dc6a0c418f9767b00d12c4117 to your computer and use it in GitHub Desktop.
Save graphicmist/1a91dc0dc6a0c418f9767b00d12c4117 to your computer and use it in GitHub Desktop.
Dpeloy Arch Linux
Deploy Arch Linux
#### Download Image
#### Create Bootable USB
* unmount drive - `umount /dev/sdb1` or some other way
* `lsblk` to find drive without number **after unmounting**
* `sudo dd bs=4M if=archlinux-2020.10.01-x86_64.iso of=/dev/sdb status=progress oflag=sync`
#### Pre-Installation
* Create the Necessary Partitions
* Disable Secure Boot (If enabled in BIOS)
* Select Arch Linux Installation Medium
* Verify UEFI boot mode with: `ls /sys/firmware/efi/efivars` - Displays Directly if correct
* Connect To Internet
* `ip link`
* Check if wifi card is blocked: `rfkill list`
* If soft blocked: `rfkill unblock wifi`
* iwctl
* `device list`
* `station device scan`
* `station device get-networks`
* `station device connect SSID`
* Ping and test
* Update System Clock: `timedatectl set-ntp true`
* Partitioning & Mounting
* `fdisk -l`
* Format: `mkfs.ext4 /dev/nvme0n1p5`
* `mount /dev/nvme0n1p5 /mnt`
* `mkdir /mnt/efi`
* `mount /dev/nvme0n1p1 /mnt/efi`
#### Installation
* `reflector --verbose --latest 70 --sort rate --save /etc/pacman.d/mirrorlist`
* `pacstrap /mnt base linux linux-firmware`
* `genfstab -U /mnt >> /mnt/etc/fstab`
* `arch-chroot /mnt`
* `ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime`
* `hwclock --systohc`
* Edit: `/etc/locale.gen` and uncomment: `en_US.UTF-8 UTF-8`
* `locale-gen`
* Create: `/etc/locale.conf` with `LANG=en_US.UTF-8`
* Create: `/etc/hostname` with a device network name like `prolific`
* Edit: `/etc/hosts` and add all needed dns entries including localhost and for hostname above
* `passwd` to set new password
* `pacman -S grub efibootmgr`
* `mkdir /mnt/efi`
* `mount /dev/nvme0n1p1 /mnt/efi`
* `grub-install --target=x86_64-efi --efi-directory=/mnt/efi --bootloader-id=GRUB`
* `grub-mkconfig -o /boot/grub/grub.cfg`
* `pacman -S intel-ucode`
* `grub-mkconfig -o /boot/grub/grub.cfg`
* `pacman -S gnome`
* `pacman -S iw wpa_supplicant dialog`
#### Post Installation
Commented wayland disable: /usr/lib/udev/rules.d/61-gdm.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment