The following will record the author's process of installing Arch Linux in a Dell notebook for recording for the next use.
The contents of this article refer to the Arch Linux official wiki.
First, use the power ISO to mount the image to a USB flash drive and install it using a USB stick.
After booting into the trial system via USB stick, start the following operation:
To connect to a wireless network:
The installation process requires networking, because I am using a wireless network, so I need to configure wireless WiFi first,
Wifi-menu This is a Web Setup tool with a graphical interface
Depending on the prompts to connect to the specified WiFi, after the setup is complete, it will take about 1 minutes, and then ping baidu.com to test if the connection is successful.
To confirm how the computer starts booting:
Ls/sys/firmware/efi/efivars if the no such file or directory is indicated, it is booting in BIOS, otherwise EFI booting, which has an impact on the subsequent installation, because the author is the BIOS, So this is just about the BIOS boot section.
Update system time Online:
Timedatectl SET-NTP True
Partition: (The data is priceless, please operate cautiously)
Fdisk-l view the path of the hard disk to be installed, mine is/DEV/SDA
FDISK/DEV/SDA switch to the SDA partition mode, input m can view the instruction help, the author's hard disk was used for Windows, so I need to delete the old partition, and then repartition
Partitioning scheme:
/boot 300M,SDA1
/30g,sda2
/var 20g,sda3
/home remaining all, sda4
To format a partition:
Mkfs.ext4/dev/sdax formatted as EXT4 format, Sdax x represents the ordinal number of each partition
Mount root directory:
/mount/dev/sda2/mnt
To add a mirror source:
Vim/etc/pacman.d/mirrorlist
At the top of the text, add:
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$archServer = http://mirrors.zju.edu.cn/archlinux/$repo/os/$archAlternatively, you can transfer the China path to the front of other countries so that you can download the installation directly from the beginning of the country .To Install the System foundation package:pacstrap/mnt Base Base-devel Base-devel does not have to be installed, but it contains a lot of common features, such as Gcc,grep,pacman,sudo,systemd,which, so install it.
Generate Fstab:
Genfstab-u/mnt >>/mnt/etc/fstab
Change Administrator:
Arch-chroot/mnt
Set the time zone:
Ln-sf/usr/share/zoneinfo/asia/shanghai/etc/localtime
Hwclock--SYSTOHC
Setting Language:
Vim/etc/locale.gen put zh_CN.UTF-8 UTF-8
zh_HK.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
en_US.UTF-8 UTF-8这四行的注释取消
Locale-gen Build Language
Vi/etc/locale.conf
Add Lang=en_us to the text. UTF-8
Set host Name:
Vi/etc/hostname
Add the hostname to the text, my name is Cycong-archlinux
Vi/etc/hosts
Add within text:
127.0.0.1 localhost
:: 1 localhost
127.0.1.1 Cycong-archlinux.localdomain Cycong-archlinux
To install useful software:
Pacman-s Vim Dialog wpa_supplicant ntfs-3g NetworkManager are vim text editor, Network tool, NTFS read-write support
To set the administrator password:
passwd
Restart:
Exit log out of the system
Umount-r/mnt Cancel Mount
Reboot
Arch Linux physical machine installation record