参考 https://www.linuxidc.com/Linux/2018-08/153582.htm 进行图形化安装
关键步骤总结:
systemctl disable lightdm 关闭X的登陆, 使用start命令可以启动图形界面
systemctl enable sshd
#禁止服务节省机器资源
systemctl disable lvm2-monitor.service
编辑配置文件 /etc/pacman.conf
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
加入清华源后
# 禁用秘钥,否则pacman无法安装任何软件
pacman-key --init
pacman-key --populate
sudo pacman -S archlinuxcn-keyring
# UEFI 系统需要的必要软件
sudo pacman -S grub efibootmgr
# 多系统引导的必要软件
sudo pacman -S os-prober
# 显卡及中文字体需要的软件
sudo pacman -Sy wqy-microhei vulkan-intel
sudo pacman -S dnsmasq
sudo pacman -S darkhttpd
sudo pacman -S tftp-hpa
sudo pacman -S dhcpcd
sudo pacman -S anbox-git anbox-image anbox-modules-dkms-git
#重新打包 sfs 镜像工具
sudo pacman -S squashfs-tools
# pacman安装的软件包备份位置
/var/cache/pacman/pkg
# 部署grub:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
# 生成配置文件:
grub-mkconfig -o /boot/grub/grub.cfg
# 更改键盘布局:
setxkbmap us