- Download ISO File on archlinux.org
- Boot with that ISO
- Run
ping google.com
for test network connection
if your computer has WLAN, the internet will not working now Run
iwctl
and Runstation wlan0 scan
station wlan0 connect <your_SSID>
to connect the wifi.
- Run
timedatectl set-ntp true
for enable system clock - Create Partition
fdisk -l
for get list of current partition
fdisk /dev/sdx
orfdisk /dev/vdx
orfdisk /dev/nvmexnx
to edit the drive. This command will be specified by type of storage. Pressn
on fdisk shell to create new partition Pressw
on 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> /mnt
to mount the ext4 device which want to install arch-linux - Run
pacstrap /mnt base linux linux-firmware vim dhcpcd
to 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 /mnt
to 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 -P
to initalize your linux - Run
passwd
to set your root password - Run
pacman -S grub efibootmgr
to 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=/mnt
to setup grub - Run
grub-mkconfig -o /boot/grub/grub.cfg
to 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 linux
to 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 gdm
to start XServer - Enjoy your new linux!