Archlinux 2021 Installation tutorial
I. Preparation:
1. Download the latest official archLinux image from the Archlinx website. The version of this tutorial is:
Archlinux – 2021.01.01 – x86_64. Iso. (Click the system name on the left to download)
2. If you want to install Archlinux on a laptop or other computer, you need to burn the image onto a USB flash drive.
3. If ArchLinux (for example, VMware Workstation) is installed on VMS, you need to change the boot mode of the firmware to UEFI.
(PS: POSITION order: VM Settings menu -> Options -> Advanced -> FIRMWARE Type – Select UEFI – OK)
4. For laptops or other computers, find the corresponding file and enable UEFI.
5. If it is a VIRTUAL machine, you can use login software to perform operations, which will improve efficiency.
Two, start the system and format the disk partition:
2.1 Configuration after UEFI startup
Select the first item and press Enter.
2.2 Check the network:
Type directly into the outgoing system:
Run the ping www.baidu.com commandCopy the code
OK network is working, so go to the next step.
2.3 Installing the SSH Package
Command: sudo pacman -syy openssh Command: passwd (set the system login password twice) Command: systemctl start SSHDCopy the code
2.4 UEFI Function Test:
Command: ls/sys/firmware/efi/efivarsCopy the code
(PS: there is no error file inside ok)
2.5. Time Synchronization:
Command: timedatectl set-ntp trueCopy the code
Three, disk partition and formatting
3.1 Checking Hard Disk Status:
Command: fdisk -lCopy the code
3.2 Formatting and Partitioning disks
Run the fdisk /dev/sda commandCopy the code
3.3 Converting disk Partition Formats and Creating System Partitions
G =GPT GPT partition format n= new New partition w= Save the partition and exit the partition tool.
Step 5 in the figure is to create a boot partition and set the boot partition size. The minimum boot partition size is 256M.
Step 6: Create a system root partition, that is, except for the boot partition, all the other partitions are assigned to the root partition, but you can also create other partitions according to their own needs.
The other steps in the figure are enter 3, 4, 7, 8.
3.4 Checking Partition Status:
Command: fdisk -lCopy the code
3.5 Formatting the Boot Partition
Run the mkfs.fat -f32 /dev/sda1 commandCopy the code
3.6 Format Root Directory Partition:
Command: mkfs.ext4 /dev/sda2Copy the code
4. Mount disk partitions
4.1 Mounting a Boot Partition:
Run the mount /dev/sda2/ / MNT commandCopy the code
4.2 Creating UEFI Files:
Run the mkdir -p/MNT /boot/efi commandCopy the code
4.3 Mounting a Root Directory Partition
Run the mount /dev/sda1 / MNT /boot/efi commandCopy the code
5. Execute the desktop installation script
5.1 SCRIPTS for kDE Desktop Environment:
Script: curl - O https://gitee.com/zhaocaiall/ArchInstall/raw/master/kde.shCopy the code
5.2 Scripts for gnOME Desktop Environment:
Script: curl - O https://gitee.com/zhaocaiall/ArchInstall/raw/master/gnome.shCopy the code
5.3 DeepIn Desktop Environment Script:
Script: curl - O https://gitee.com/zhaocaiall/ArchInstall/raw/master/deepin.shCopy the code
5.4 During script installation, you can follow the prompts to complete the script installation.
4.5 Restart the SYSTEM after the installation
Vi. The installation is complete and it can be used normally now.
6.1 Restarting the Boot
6.2 Desktop After Startup
6.3 OK By now all the configuration is complete.