Master the process of installing Arch Linux with this step-by-step guide, covering everything from booting the ISO to configuring your system for daily use.
Welcome to this step-by-step guide to installing Arch Linux. This guide walks you through installing Arch with a UEFI system, a swap partition, and GRUB as the bootloader. It will take you around 30 minutes to install.
Note: Make sure you're on a UEFI system and connected to the internet.
You can also refer the official installation guide for more information.
- Download the latest Arch ISO from the official website.
- Create a bootable USB using Rufus (Windows) or
dd
(Linux/macOS).
- Disable Secure Boot in UEFI settings.
- Boot into the USB and open the terminal.
You're likely already connected.
Use iwctl
:
iwctl
device list
station <device> scan
station <device> get-networks
station <device> connect <SSID>
exit
Test the connection:
Use cfdisk
on your disk (replace /dev/sdX
):
Create the following partitions:
- EFI - 512MiB (type: EFI System)
- Swap - (RAM size + 0.5GiB)
- Root - Remaining space
mkfs.fat -F32 /dev/sdX1 # EFI
mkswap /dev/sdX2 # Swap
swapon /dev/sdX2
mkfs.ext4 /dev/sdX3 # Root
mount /dev/sdX3 /mnt
mkdir -p /mnt/boot/EFI
mount /dev/sdX1 /mnt/boot/EFI
pacstrap -K /mnt base linux linux-firmware vim networkmanager grub efibootmgr osprober sudo git
genfstab -U /mnt >> /mnt/etc/fstab
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "MyLappy" > /etc/hostname
cat <<EOF > /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 MyLappy.localdomain MyLappy
EOF
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id="Arch Linux"
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
useradd -m -G wheel yourusername
passwd yourusername
EDITOR=vim visudo
Inside the visudo file, uncomment this line:
exit
umount -R /mnt
reboot
If you want to use my dotfile you can view my dotfiles repository.
Or you can simply run these commands after login to rice you linux in my style.
git clone https://github.com/BIGBEASTISHANK/dotfiles
cd dotfiles
chmod +x ./syscopy.sh
./syscopy.sh