Arch Linux Installation Guide
Arch Linux Installation Guide
🇨🇳中文
Make A Boot Disk
Download iso file by arch linux official site.
Use any tool to make a bootable disk to make a bootable U disk.
The production details will not be repeated here.
Installation (UEFI MODE)
After the USB flash drive is inserted into the USB port, select the USB flash drive to enter (different computer brands, different keys).
Change Fonts
If you feel the font is too small after entering, you can change the font.
setfont /usr/share/kbd/consolefonts/LatGrkCyr-12x22.psfu.gz
Wireless Network
Use ip link query wireless network card interface.
If wireless network card interface is DOWN, enable the port by commandip link set YOUR_PORT up .
Scan wireless network by command iwlist YOUR_PORT scan | grep ESSID .
Use the following command to generate the corresponding configuration file for wireless network you choose.
wpa_passphrase YOUR_WIFI_NAME YOUR_WIFI_PASSWORD > internet.conf
Use the following command to connect to the wireless network you choose.
wpa_supplicant -c internet.conf -i YOUR_PORT &
If it is a wired connection, only this command is required.dhcpcd &
Set Clock
1 | timedatectl set-ntp true |
Partition (fdisk)
Use fdisk -l to view the disk list.
1 | fdisk /dev/nvme0n1 |
See arch wiki site for fdisk usage.
mkfs.fat -F32 /dev/nvme0n1p1 nvme0n1p1 is the boot partition.
mkfs.ext4 /dev/nvme0n1p2 nvme0n1p2 is the main partition.
mkswap /dev/nvme0n1p3 nvme0n1p3 is the swap partition.
swapon /dev/nvme0n1p3 Open the swap partition.
Mount Partition
1 | mount /dev/nvme0n1p2 /mnt |
Edit Mirror
vim /etc/pacman.conf Uncomment the ‘Color’ of the file to provide a better visual experience.
vim /etc/pacman.d/mirrorlist Modify this file to choose the domestic mirror you like.
Install Base Components
1 | pacstrap /mnt base linux linux-firmware |
Generate fstab File
1 | genfstab -U /mnt >> /mnt/etc/fstab |
Change The Time Zone
1 | arch-chroot /mnt #Enter chroot mode |
Add System Language
Uncomment ‘en_US.UTF-8’ of this file. (During installation, if you choose chinese, some fonts will be a black box.)
1 | vim /mnt/etc/locale.gen |
Modify Machine Name
Enter machine name you like in this file.
1 | vim /mnt/etc/hostname |
Modify host File
1 | vim /mnt/etc/hosts |
Set Root Password
1 | arch-chroot /mnt |
passwd Enter password twice.
Install The Necessary Components
1 | pacman -S grub efibootmgr intel-ucode os-prober #os-prober is optional for multiple operating system detection booting |
GRUB
1 | mkdir /boot/grub |
Install Useful Tools
1 | pacman -S vim vi zsh wpa_supplicant dhcpcd base-devel |
Exit chroot Mode AND Restart
1 | exit |
End
After restart your system, you can pull out U disk.
NICE!
You have entered our arch linux black interface.



