johnpoint

johnpoint

(。・∀・)ノ゙嗨
github

Installing Arch Notes

Arch Linux (or Arch /ˈɑːrtʃ/) is a Linux distribution based on the x86-64 architecture.

Arch Linux uses a rolling release model to obtain the latest versions of the system updates and software. The system installation image simply contains the main components of the system.

Arch Linux provides documentation in the form of a community Wiki, called ArchWiki. This Wiki frequently contains the latest information on specific topics and is widely recognized by the Linux community, with its content also being applied in areas outside of Arch Linux.

These three sentences summarize my entire process of installing Arch, so I'll make a note of it so I don't forget.

Download Installation Image#

The installation image is very small, just download it directly.

>>Link<<

Installation Environment#

  • VirtualBox Graphical User Interface Version 5.2.18_Ubuntu r123745
    • Memory: 4096 MB
    • CPU: 4
    • BIOS Boot
    • Storage: 35 GB
    • Network: NAT

Installation#

Verify Network Connection#

ping archlinux.org

Update System Time#

timedatectl set-ntp true

Set Up Partitions#

Partition the Hard Drive#

fdisk /dev/sda
Enter n to create a new partition
Then press Enter all the way for the defaults
Finally, enter w to write changes to the disk

Format the Partition#

mkfs.ext4 /dev/sda1

Install the System#

Preparation#

Mount the Partition#

mount /dev/sda1 /mnt

Set Up Software Sources#

Choose a suitable mirror from the Wiki's Mirror List.

I choose the mirror from Aliyun.

Edit the list of mirrors

vim /etc/pacman.d/mirrorlist

Add

Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch

Install the Base System#

pacstrap /mnt base base-devel

Configure the Newly Installed System#

genfstab -U /mnt >> /mnt/etc/fstab

Switch to the new system

arch-chroot /mnt

Install Necessary Software#

pacman -S vim nano

Set Timezone#

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc

Set Localization and Text Encoding#

nano /etc/locale.gen

Add

zh_CN.UTF-8 UTF-8

Execute

locale-gen
nano /etc/locale.conf

Add

LANG=en_US.UTF-8

Set Hostname and HOST#

Edit /etc/hostname

nano /etc/hosts
127.0.0.1   localhost
::1         localhost
127.0.1.1   arch.localdomain  arch

Account Setup#

Change root Password#
passwd
Add User Account#
useradd -m johnpoint
passwd johnpoint

Set Up Bootloader#

Install Grub#
pacman -S grub
Deploy Grub#
grub-install --target=i386-pc /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

With that, Arch is now installed, as for the graphical interface and such, to be continued I'll talk about it next time.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.