Arch Linux installation (BIOS) tutorial, archlinux
I. Introduction
Arch linux is a lightweight and simple Linux release. "Simplicity" is defined as "avoiding unnecessary or complex modifications", that is, it is defined by developers rather than users.
Ii. Advantages
1. The exclusive package management system Archlinux is optimized for a specific processor and can better utilize the CPU cycle to improve performance. Compared with Debian/Ubuntu, SUSE, RedHat/Fedora and other releases, Archlinux is a lightweight player. Its simple design makes it easy to scale and configure as any desired system type.
2. With the Binary Package Management System pacman, you only need one command to complete installation, upgrade, and other operations. It also comes with an ABS (Arch Build System) package building System similar to ports ).
Iii. Disadvantages
1. The installation process is simple and lacks intelligent and intuitive error handling. Users must have some knowledge about the Linux environment before they can correctly install and use it. Only i686 and x86_64 architectures are optimized, and other CPU architectures are not supported.
2. The package management system pacman lacks backtracing protection for System Core Components During the upgrade process. If the upgraded Kernel has a problem, the system cannot be started.
3. the system software lacks a rigorous test management mechanism, and its stability and reliability are not as good as release versions such as Redhat, CentOS, and Debian, making it difficult for enterprise users to promote the software.
Iv. Installation
1. Install the basic system
[Root @ tom/] # fdisk/dev/sda
[Root @ tom/] # mkfs. ext4/dev/sda1
[Root @ tom/] # mount/dev/sda1/mnt/
[Root @ tom/] # mkdir/mnt/boot
[Root @ tom/] # mount/dev/sda1/mnt/boot
[Root @ tom/] # obtain the IP address of dhcpcd
2. Set the software source:
[Root @ tom/] # vi/etc/pacman. d/shortlist
[Root @ tom] # pacman-Syy force refresh Database
3. Install the basic system:
[Root @ tom/] # pacelist/mnt base
4. Generate fstab:
[Root @ tom/] # genfstab-U-p/mnt>/mnt/etc/fstab
5. Configure the basic system
[Root @ tom/] # arch-chroot/mnt/bin/bash
6. Set Locale:
[Root @ tom/] # nano/etc/locale. gen
The content is roughly changed:
En_US.UTF-8UTF-8
Zh_CN.UTF-8UTF-8
7. Generate the locale message:
[Root @ tom/] # locale-gen
8. Create locale. conf:
[Root @ tom/] # echo LANG = en_US.UTF-8>/etc/locale. conf
9. Set the time zone:
[Root @ tom/] # ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
10. Set the hardware time:
[Root @ tom/] # hwclock -- systohc -- utc
11. Set the Host Name:
[Root @ tom/] # echo archlinuxpc>/etc/hostname
12. Set automatic connection to the wired network:
[Root @ tom/] # systemctl start dhcpcd
[Root @ tom/] # systemctl enable dhcpcd
13. Set the root password:
[Root @ tom/] # passwd
14. Install GRUB:
[Root @ tom/] # pacman-S grub OS-prober
[Root @ tom/] # grub-install -- target = i386-pc -- recheck/dev/sda
[Root @ tom/] # grub-mkconfig-o/boot/grub. cfg
15. unmount the partition and restart the machine:
[Root @ tom/] # exit to return to the installation environment
[Root @ tom/] # umount-R/mnt/boot
[Root @ tom/] # umount-R/mnt
[Root @ tom/] # reboot