- Download ISO File on archlinux.org
- Boot with that ISO
- Run
ping google.comfor test network connection
if your computer has WLAN, the internet will not working now Run
iwctland Runstation wlan0 scanstation wlan0 connect <your_SSID>to connect the wifi.
- Run
timedatectl set-ntp truefor enable system clock - Create Partition
fdisk -lfor get list of current partition
fdisk /dev/sdxorfdisk /dev/vdxorfdisk /dev/nvmexnxto edit the drive. This command will be specified by type of storage. Pressnon fdisk shell to create new partition Presswon fdisk shell to write the partition Google about fdisk to get more information
mkfs.ext4 /dev/<device>to make the partition to ext4 format
mkswap /dev/<device>to make the partition to swap
- Run
swapon /dev/<device>to enable swap - Run
mount /dev/<device> /mntto mount the ext4 device which want to install arch-linux - Run
pacstrap /mnt base linux linux-firmware vim dhcpcdto install archlinux
vim is for text-editor, dhcpcd for ethernet
if your computer has wifi, replace dhcpcd to iwd to enable WLAN
- Run
genfstab -U /mnt >> /mnt/etc/fstab - Run
arch-chroot /mntto move to your linux - Set timezone with command
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
hwclock --systohc- Edit /etc/locale.gen to your own locale and Run
locale-gen - Create /etc/locale.conf and write
LANG=<your_locale>to the file(this will cause error when launching gnome DE) - Create /etc/hostname and write your own hostname, in my case, I wrote
dayo - Create /etc/hosts and write this
127.0.0.1 localhost
::1 localhost
- Edit /etc/resolv.conf and apply your DNS Server
- Run
mkinitcpio -Pto initalize your linux - Run
passwdto set your root password - Run
pacman -S grub efibootmgrto install GRUB, if your computer using MBR, efibootmgr is not required. - Setup microcode with this document https://wiki.archlinux.org/title/Microcode
- Mount your EFI driver to /mnt with mount command
- Run
grub-install --efi-directory=/mntto setup grub - Run
grub-mkconfig -o /boot/grub/grub.cfgto make config file of grub
See https://wiki.archlinux.org/title/GRUB for more information
- Reboot your computer, If installation successed, GRUB will display first.
- Enter
Arch linuxto boot your OS - Enter username:
root, password:<your_root_password>to login. Password will not displayed but typing will injected include of backspace - Now internet will not working. Type this to enable internet connection Ethernet:
ip link
systemctl start dhcpcd@<your_lan_device_on_ip_link_output_except_lo>
in case of WLAN:
systemctl start iwd
iwctl # set wifi connection via iwctl
- Install sudo
- Add new user except root
- Edit sudoers file, this file is default non-editable so you need to edit permission(like chmod +w sudoers). It is important to remove edit permission after working.
- reboot and login to new user
- install
gnome - Run
sudo systemctl start gdmto start XServer - Enjoy your new linux!