Vmware install Archlinux
0. Ready work
Test environment:
Vmware15.5.6pro
arch-2020-07.iso
准备最新景象
选择UEFI引导
1. Start
ls /sys/firmware/efi/efivars
这条命令检测是否在EFI模式下
禁用 reflector
systemctl stop reflector.service
检查网络, ping qq.com
Archwiki: Note: The installation image has systemd-networkd.service, systemd-resolved.service and iwd.service enabled by default. That will not be the case for the installed system.
Update systime
timedatectl set-ntp true
2. Partition the disks
cfdisk /dev/sda #choose gpt
Move to Write , enter, yes, last Quit .
3. Format the partitions
3.1 Format:
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
3.2 Mount the file systems
mount /dev/sda3 /mnt
mkdir -p /mnt/boot/EFI
mount /dev/sda1 /mnt/boot/EFI
lsblk #check mount
4. Install dev
4.1 According to your country choose your mirror source
vim /etc/pacman.d/mirrorlist
4.2 install
pacstrap -i /mnt base base-devel linux-lts linux-firmware vi net-tools
5. Configure the system
5.1 Fstab
genfstab -U /mnt >> /mnt/etc/fstab
5.2 Check your fstab files, like the img
vim /mnt/etc/fstab
6. System configuration
6.1 Chroot
arch-chroot /mnt
6.2 Time
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc --utc
6.3 Localization
vi /etc/locale.gen #according to your country, choose, del
:wq
locale-gen
locale -a
echo LANG=en_US.UTF-8 > /etc/locale.conf
locale
- ex: #en_US.UTF8 UTF-8
- del #: en_US.UTF-8 UTF-8
6.4 hostname
echo hostname > /etc/hostname
6.5 hosts
vi /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 hostname.localdomain hostname
6.6 root password
passwd
7. install UEFI
pacman -S grub efibootmgr
grub-install --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
8. End
pacman -S dhcpcd
exit
umount -R /mnt
reboot
Arch Beautify
Reference: