距离上一次安装archlinux已经好几年了,更新一版。这里本来想安装Waydroid,无奈尚未成功,留作后续继续研究了。
进入系统passwd设置密码,其它电脑登录ssh开搞。
timedatectl set-ntp true cfdisk 如果是虚拟机例如pve,分区表选择dos sda1 8G swap sda2 根目录 mkfs.ext4 /dev/sda2 mkswap /dev/sda1 mount /dev/sda2 /mnt swapon /dev/sda1 systemctl stop reflector.service nano /etc/pacman.d/mirrorlist Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch pacstrap -K /mnt base linux-zen linux-firmware intel-ucode dhcpcd nano openssh #linux-zen是为了安装Waydroid,官网默认安装的不是这个 genfstab -U /mnt >> /mnt/etc/fstab arch-chroot /mnt ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock --systohc nano /etc/locale.gen 取消注释:en_US.UTF-8 UTF-8 locale-gen echo 'LANG=en_US.UTF-8' > /etc/locale.conf echo 'Archlinux' > /etc/hostname passwd pacman -S grub efibootmgr grub-install --target=i386-pc /dev/sda grub-mkconfig -o /boot/grub/grub.cfg nano /etc/ssh/sshd_config PermitRootLogin yes systemctl enable dhcpcd systemctl enable sshd exit umount -R /mnt poweroff