The only reason to install remotely via SSH is that some commands are really annoying because of the manual input. With SSH connection, some commands can be copied and pasted directly, and the installation progress is much faster.
First, download the Arch Linux installation image and use it to start the computer, go to the installation interface, do the following preparations:
1, the mirror station is set to the Chinese region
Nano/etc/pacman.d/mirrorlist
Delete all the mirror sources, leaving only 163.
2. Update the image source
Pacman-syy
3. Update Root password
passwd
4. Installation Tools
Pacman-s Net-tools OpenSSH
5. Start SSH
Systemctl start sshd
6. View Native IP
Ifconfig
Second, connect to the host using putty
1. Partitioning
Type Cfdisk
The EFI partition must be larger than 200M as per the actual situation
I have divided 5 districts, using the GPT partition format, respectively:
SDA1 EFI partition 256MB
SDA2 boot partition 1GB
Sda3 Swap partition 4GB
SDA4/Partition 20GB
Sda5/home partition all the rest of the space
2. Formatting partitions
Mkfs.vfat-f 32/dev/sda1
Mkfs.ext3/dev/sda2
Mkfs.ext3/dev/sda4
Mkfs.ext3/dev/sda5
Mkswap/dev/sda3
3. Specify the Swap partition
Swapon/dev/sda3
4. Create a mount Directory
Mkdir/mnt/boot
Mkdir/mnt/boot/efi
Mkdir/mnt/home
5. Mount Directory
Mount/dev/sda4/mnt
Mount/dev/sda5/mnt/home
Mount/dev/sda2/mnt/boot
Mount/dev/sda1/mnt/boot/efi
6. Installing the base system
Pacstrap-i/mnt Base Base-devel
7. Configuring the System
Building a partition configuration file
Genfstab-u/mnt >>/mnt/etc/fstab
To view the generated partition table with or without errors
Cat/mnt/etc/fstab
Switch to the new system
Arch-chroot/mnt/bin/bash
Set Language
Nano/etc/locale.gen
Remove the following 2 lines before the #
en_US. UTF-8 UTF-8
Zh_cn. UTF-8 UTF-8
Continue execution after saving
Locale-gen
Echo Lang=en_us. UTF-8 >/etc/locale.conf
Setting the time zone
Ln-sf/usr/share/zoneinfo/asia/shanghai/etc/localtime
If the entity computer is installed, continue with the following command to update the hardware time
Hwclock--SYSTOHC--UTC
8. Install the Boot
Installing the Boot Software
Pacman-s Dosfstools Grub Efibootmgr
Write the bootstrap file to the EFI partition and perform a check. Need not error.
Grub-install--target=x86_64-efi--efi-directory=/boot/efi--recheck
、
To generate a boot configuration file
Grub-mkconfig-o/boot/grub/grub.cfg
9. User settings
Set Root password
passwd
Generate a new user
Useradd-m-G users-s/bin/bash user name
Set a new user password
passwd User Name
Add sudo permissions to new users
Nano/etc/sudoers
Under Root all= (All), add the following
User name all= (all) all
11. Exit the installation environment and restart
Exit
Reboot
12. Restart the network card after reboot, automatically get the address
Automatic start of DHCP on boot
sudo systemctl enable DHCPCD
Start DHCP now to get the network address
sudo systemctl start dhcpcd
13. Install the network software, SSH
Pacman-s Net-tools OpenSSH
Set OpenSSH to start automatically
Systemctl Enable sshd
Start OpenSSH now
Systemctl start sshd
After you use the Putty link, continue to install the desktop environment
14. Installing the Desktop
Installing the video driver
List video card models
Lspci | grep VGA
Performing a graphics driver installation
sudo pacman-s Xf86-video-vesa
Installing the X Manager
sudo pacman-s xorg
Install fonts
sudo pacman-s Ttf-dejavu Wqy-microhei
Installing the GNOME Desktop
sudo pacman-s gnome Gnome-extra
Installing the Desktop Administration tool
sudo pacman-s gnome-tweak-tool
Install the Menu Editor
sudo pacman-s alacarte
Set boot into the desktop (automatically start GDM)
sudo systemctl enable GDM
Set up network management boot from
sudo systemctl enable NetworkManager
And then restart
sudo reboot
15. Desktop Environment Configuration
Add common software sources
sudo nano/etc/pacman.conf
Add the following 3 lines at the end of the file
[ARCHLINUXCN]
Siglevel=never
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
Then update the source
sudo pacman-syy
Install Chinese Input method (Sogou IME)
sudo pacman-s fcitx-im fcitx-configtool fcitx-sogoupinyin
Let the Fcitx input method automatically start when loading in the desktop environment
sudo nano/etc/profile
Add the following content:
Export XIM=FCITX
Export XIM_PROGRAM=FCITX
Export GTK_IM_MODULE=FCITX
Export QT_IM_MODULE=FCITX
Export [Email PROTECTED]=FCITX
Install NetEase Cloud Music
sudo pacman-s netease-cloud-music
Install Chrome web browser
sudo pacman-s google-chrome
Installing Screenfetch
sudo pacman-s screenfetch
To let Screenfetch in the open terminal is the automatic output, in ~/.BASHRC added
Nano ~/.BASHRC
Screenfetch
Remote installation of Arch Linux via SSH