Skip to content

TheLostLeo/Arch-Linux-installtion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 

Repository files navigation

Arch Linux Installation Guide

A beginner-friendly Arch Linux installation guide with:

  • Manual installation steps
  • UEFI support
  • Dual boot support
  • GRUB setup
  • Post-install automation script

Requirements

Before starting:

  • Backup important data
  • Disable Secure Boot
  • Create a bootable Arch Linux USB
  • Boot in UEFI mode

Download Arch Linux ISO: https://archlinux.org/download/


Boot Into Arch ISO

After booting into the live environment:

ping archlinux.org

If using WiFi:

iwctl

Inside iwctl:

device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect WIFI_NAME
exit

Identify Disks

lsblk

Example NVMe drive:

/dev/nvme0n1

Partitioning (UEFI)

Open cfdisk:

cfdisk /dev/nvme0n1

Create:

Partition Size Type
EFI 512M EFI System
Swap Optional Linux Swap
Root Remaining Linux filesystem

If dual booting with Windows:

  • Reuse the existing EFI partition
  • DO NOT format the EFI partition

Format Partitions

Example:

Partition Usage
nvme0n1p1 EFI
nvme0n1p2 Swap
nvme0n1p3 Root

Format root:

mkfs.ext4 /dev/nvme0n1p3

Format EFI:

mkfs.fat -F32 /dev/nvme0n1p1

Create swap:

mkswap /dev/nvme0n1p2
swapon /dev/nvme0n1p2

Mount Partitions

mount /dev/nvme0n1p3 /mnt
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot

Install Base System

pacstrap -K /mnt base linux linux-firmware base-devel \
networkmanager sudo grub efibootmgr \
nano neovim git

Generate fstab:

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

Chroot into system:

arch-chroot /mnt

Download Installation Script

git clone https://github.com/USERNAME/REPOSITORY.git
cd REPOSITORY
chmod +x arch_install.sh
./arch_install.sh

Install GRUB

grub-install --target=x86_64-efi \
--efi-directory=/boot \
--bootloader-id=GRUB

Generate config:

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

Enable Windows Detection

Install os-prober:

pacman -S os-prober

Enable os-prober:

nano /etc/default/grub

Uncomment:

GRUB_DISABLE_OS_PROBER=false

Regenerate GRUB:

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

Finish Installation

Exit chroot:

exit

Unmount:

umount -R /mnt

Reboot:

reboot

Remove USB after reboot.


Post Install

Update system:

sudo pacman -Syu

Enable Bluetooth:

sudo systemctl enable bluetooth

Install audio packages:

sudo pacman -S pipewire pipewire-pulse wireplumber

Notes

  • NVIDIA users should install NVIDIA drivers
  • AMD users usually only need mesa
  • Intel users should install intel-ucode
  • AMD users should install amd-ucode

License

MIT

About

This is a basic repo about the installation Arch Linux

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages