Divided into 2 districts, one sda1, Sda2 10G, 40G, respectively.
Initialize SDA2 to EXT4 format
Mkfs.ext4/dev/sda2
Format sda1 to swap
Mkswap/dev/sda1
Swapon/dev/sda1
Mount Sda2 to mnt, i.e. sda2 as system root partition
Mount/dev/sda2/mnt
4. Modify the source, must put the domestic source first
Vi/etc/pacman.d/mirrorlist
Write the following three domestic sources:
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Save exit.
Pacman-syy
5. Pacstrap/mnt Base Base-devel
6. Genfstab-p/mnt >>/mnt/etc/fstab
7.
Execute command: Arch-chroot/mnt/bin/bash (someone on the internet said to do so, otherwise you will not be able to successfully install the desktop)
Nano/etc/hostname Set machine name
David_archlinux,
9. Pacman-s net-tools//Network
Pacman-s Grub-bios//install Grub
Grub-install--RECHECK/DEV/SDA
Grub-mkconfig-o/boot/grub/grub.cfg
The top three lines must be executed, otherwise no grub reboot will be in.
Pacman-s alsa-utils Linux-headers
10.
Graphics driver
Pacman-s Xf86-video-vesa # Universal Graphics driver, does not provide any 2d and 3D acceleration features
Pacman-s Xf86-video-intel # Intel
Pacman-s Xf86-video-nouveau # Nvidia
Pacman-s Nouveau-dri
# pacman-s Xf86-video-ati # ATI
#
# Virtual machine: Pcaman-s Xf86-video-vesa
11.
Vi/etc/pacman.conf
Add the following:
[ARCHLINUXCN]
#The Chinese Arch Linux communities packages.
Siglevel = Optional Trustall
Server = http://repo.archlinuxcn.org/$arch
#pacman-sy
12.
(This should be can not be installed)
Install Yaourt
#pacman-S Yaourt
Exit
Umount/mnt
Reboot
Go to the Grub interface
If you do not connect to the network after reboot, enable DHCP
Systemctl Enable DHCPCD
Systemctl Start DHCPCD
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.