1. Partitioning (MBR)
# Cfdisk semi-graphical interface, divided into three zones: sda1 20g,sda2 80g,sda3 4G.
2. Creating a File system
# MKFS.EXT4/DEV/SDA1
# Mkfs.ext4/dev/sda2
# Mkswap/dev/sda3
#swapon/dev/sda3 Enable swap partitions
3. Mounting
# MOUNT/DEV/SDA1/MNT Mount/
# Mkdir/mnt/home Create/home mount point
# Mount/dev/sda2/mnt/home Mount/Home
# LSBLK Check partition and Mount condition
3. Modify the list of mirror sources
# nano/etc/pacman.d/mirrorlist Move the China mirror to the front
(Nano usage: ctrl+6 mark, Ctrl+k cut, ctrl+u paste)
4. Connect to WiFi
# Wifi-menu Semi-graphical menu
5. Synchronizing the package database
# Pacman-syy
6. Installing the base system
# pacstrap-i/MNT Base Base-devel
7. Generate Fstab
# genfstab-u-p/mnt >>/mnt/etc/fstab
# Nano/mnt/etc/fstab Check (pass value,/:1,swap:0, others: 2)
8.chroot to new system
# Arch-chroot/mnt/bin/bash
9. Configure locale
# Nano/etc/locale.gen anti-comment en_US. UTF-8 and ZH_CN. UTF-8
# Locale-gen
# echo Lang=en_us. UTF-8 >/etc/locale.conf Setting the default language
10. Configure the time zone
# ln-s/usr/share/zoneinfo/asia/shanghai/etc/localtime
11. Configure Hardware Time
# Hwclock--SYSTOHC--UTC
12. Configure Host Name
# echo YLD >/etc/hostname
# Nano/etc/hosts First line non-commented plus (TAB) YLD
13. Configure the wireless network
# pacman-s IW wpa_supplicant dialog three dependent packages
14. Set the root password
# passwd
15. Install the bootloader (MBR)
# Pacman-s Grub
# Grub-install--TARGET=I386-PC--RECHECK/DEV/SDA
# grub-mkconfig-o/boot/grub/grub.cfg Build configuration file
16. Unmount the partition and restart the system
# exit from Chroot Environment
Remove a disc
# reboot
17. Connect to WiFi
# Wifi-menu
18. Add Users
# useradd-m-G users-s/bin/bash < username >
# passwd < username > Set Password
19. Add Sudoer
# nano/etc/sudoers Add "Yld all= (All) all" under "root all= (All) All"
20. Install the video driver
# Lspci | grep VGA determines the graphics card model
# pacman-s Xf86-video-intel for Intel graphics
21. Installing the X Window System
# pacman-s Xorg-server xorg-server-utils installing Xorg server
# pacman-s Xf86-input-synaptics Add Touchpad support
22. Configure Fonts
# pacman-s Ttf-dejavu Wqy-microhei
23. Installing the Desktop Environment (GNOME)
# Pacman-s Gnome Gnome-extra
24. Display Manager (GDM)
# Systemctl Enable Gdm.service
25. Solve the Asus X550 series Laptop WiFi hardware lock issue
# echo "Options asus_nb_wmi wapf=4" | sudo tee/etc/modprobe.d/asus_nb_wmi.conf
26. Install Input Method
# pacman-s Fcitx-im Fcitx-configtool installation Fcitx
# Nano ~/.xprofile display Manager user, add the following three lines of command
Export GTK_IM_MODULE=FCITX
Export QT_IM_MODULE=FCITX
Export xmodifiers= "@im =FCITX"
# Gsettings Set Org.gnome.settings-daemon.plugins.keyboard active false on Gnome use FCITX must be disabled ibus
# pacman-s Fcitx-cloudpinyin Install Cloudpinyin IME engine
# fcitx-configtool Add Pinyin IME
Arch Linux Installation record