first, base installation
Partition
Cfdisk, the simplest partition is divided into a single zone/dev/sda1 and set to boot
Formatting
Mkfs.ext4/dev/sda1
Mount partitions, edit mirrors, install systems
Mount/dev/sda1/mnt
echo >/etc/pacman.d/mirrorlist
Nano/etc/pacman.d/mirrorlist
Server = Http://mirrors.ustc.edu.cn/archlinux/repo/os/repo/os/arch (USTC source)
Pacstrap-i/MNT Base
Generate Fstab
Genfstab-u-p/mnt >>/mnt/etc/fstab
Cat/mnt/etc/fstab (view the generated content)
Configuring the System
We need to switch chroot to the new system first.
Arch-chroot/mnt
Configure locale, edit/etc/locale.gen, all content of this file is annotated, so add en_US to the top. UTF-8 UTF-8 can be.
Nano/etc/locale.gen
en_US. UTF-8 UTF-8
Then execute the Localegen
Locale-gen
Then configure locale.conf
Echo Lang=en_us. UTF-8 >/etc/locale.conf
Export Lang=en_us. UTF-8
To name a computer
echo Myhostname >/etc/hostname
Configure the network to start the DHCP service
Systemctl Enable Dhcpcd.service
Set Password
passwd
Installing GRUB
Pacman-s Grub
Grub-install–recheck/dev/sda
Grub-mkconfig-o/boot/grub/grub.cfg
Uninstall MNT, reboot
Exit
Umount/mnt
Reboot Second, the installation of graphical interface
Install Xorg-server
Pacman-s xorg
Install video Driver
If you don't know what your video card is, use the following command to view the following:
Lspci|grep VGA
Then execute the following command to search for a match to your graphics driver
Pacman-ss Xf86-video | Less
Mine is VirtualBox, so I'm using Xf86-video-vesa here.
Pacman-s Xf86-video-vesa
If the notebook is installed, you can install the touch template driver
Pacman-s Xf86-input-synaptics
Test the X environment is installed, you can execute the following command, in fact, do not test.
Pacman-s XORG-TWM Xorg-xclock xterm
StartX
Exit
Pkill X
Install Xfce4, install LIGHTDM Manager
Pacman-s Xfce4 LIGHTDM Lightdm-gtk-greeter
Systemctl Enable Lightdm.service
Install Chinese fonts
Pacman-s Wqy-microhei Tty-dejavu
As for beautification, all is through the interface operation, system-setting can set the font, the other terminal preference can set it to use the font.
In VirtualBox virtual machines typically require installation of enhanced tools
Pacman-s virtualbox-guest-utils
Loading modules
Modprobe-a vboxguest vboxsf Vboxvideo
To automatically load these modules after the reboot is set
Vi/etc/modules-load.d/vbox.conf (added in file)
Vboxguest
vboxsf
Vboxvideo
Add a user to the system
Pacman-s sudo
Useradd-m-G users-g wheel-s/bin/bash Youruser
passwd Youruser (Set password)
Visudo (Remove the # Number of wheel all= before)
%wheel all= (All)
Install Chinese Input Method Fcitx
Pacman-s Fcitx-im Fcitx-configtool Fcitx-sunpinyin
Restart Login