其实没什么难的,只是记不住步骤和命令,故写此笔记,仅适合入门安装。
参考 https://wiki.archlinux.org/index.php/Beginners%27_guide_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
1.分区
用fdisk或cfdisk都行
2.格式化
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
3.挂载
mount /dev/sda1 /mnt
4.设置源(如有必要先设置网络)
nano /etc/pacman.d/mirrorlist
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
pacman -Syy
5.
pacstrap /mnt base base-devel
genfstab -p /mnt >> /mnt/etc/fstab
6.
arch-chroot /mnt
nano /etc/locale.gen
locale-gen
passwd
pacman -S net-tools vim grub
grub-install --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount /mnt
reboot
7.
pacman -S xorg-server xorg-server-utils xorg-xinit xf86-video-vesa