Installing CLI
- 
Prepare your Arch installation .iso file. 
 In my case, it wasarchlinux-2021.06.01-x86_64.iso.
- 
Check the partition status. 
 # lsblk
 # fdisk -l
- 
Use your favorite partitioning tool to partition your disk. 
 In my case, it was fdisk.
 # fdisk /dev/sd{x}
- 
Format the partitions. 
 # mkfs.ext4 -j /dev/sd{x}{0}
- 
Mount the formatted partition to a point such as /mnt.
 # mount /dev/sd{x}{0} /mnt
- 
Edit the mirror server list file accordingly to your liking. 
 # vim /etc/pacman.d/mirrorlist
 Note: use this website(https://archlinux.org/mirrorlist/) to generate a mirrorlist customized to your location.
- 
Run the pacstrapcommand.
 # pacstrap /mnt base base-devel linux linux-firmware networkmanager ntp vim
 In my case, I installedntpandvim, as well asnetworkmanager.
- 
Append to /etc/fstab.
 # genfstab -p /mnt >> /mnt/etc/fstab
- 
arch-chrootto the new installation.
 # arch-chroot /mnt
- 
Set rootpassword.
 # passwd
- 
Open /etc/locale.genfile.
 # vim /etc/locale.gen
 Uncomment the line that starts withen_US.UTF-8.
 And then,
 # locale-gen
 Set the locale
 # echo LANG=en_US.UTF-8 > /etc/locale.conf
 # export LANG=en_US.UTF-8
- 
Set the hostname of the machine 
 # echo ${machine-name} > /etc/hostname
- 
Settings concerning the time 
 # ntpd -q -g
 # hwclock --systohc --utc
 # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
- 
Add a user account and visudo it 
 # useradd -m -g users -G wheel -s /bin/bash {$username}
 # passwd ${username}
 # visudo
- 
Install the boot loader GRUB and the Intel/AMD microcode package. 
 # pacman -S grub-bios
 # grub-install --target=i386-pc --recheck /dev/sd{x}
 # grub-mkconfig -o /boot/grub/grub.cfg
 # pacman -S intel-ucode
- 
Enable NetworkManager
 # systemctl enable NetworkManager.service
- 
Finish the installation and reboot the system 
 # exit
 # umount -lR /mnt
 # reboot
- 
You will see a non-graphical user interface login screen. 
Installing GUI
$ ping -c 3 1.1.1.1
$ sudo pacman -Syu
$ sudo reboot
$ sudo pacman -Qi xorg
$ sudo pacman -S xorg xorg-server
$ sudo pacman -S mate mate-extra
$ sudo pacman -S lightdm
$ sudo pacman -S lightdm-gtk-greeter
$ sudo systemctl enable lightdm.service
$ sudo reboot
After the reboot, you will be able to see a GUI login screen.
Sources
- https://jeonwh.com/arch-install/ (in Korean)
- http://dsparch.sciomagelab.com/2017/03/11/%EC%95%84%EC%B9%98-%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%84%A4%EC%B9%98%EA%B8%B0-2017-03-01-%EB%B2%84%EC%A0%84-kde-%ED%94%8C%EB%9D%BC%EC%8A%A4%EB%A7%88-%EC%84%A4%EC%B9%98-2-%EC%84%A4/ (in Korean)
- https://www.fosslinux.com/6832/how-to-install-mate-desktop-on-arch-linux.htm