














操作依赖于项目 ArchWSL
Arch.exe,开始部署环境[root@PC-NAME user]# pacman-key --init [root@PC-NAME user]# pacman-key --populate
将其设置为默认WSL终端
在PowerShell中执行
wslconfig /s Arch
这样就可以在Windows下直接运行Arch Linux了
useradd -d /home/ohyee -m ohyee echo "ohyee ALL=(ALL) ALL" >> /etc/sudoers.d/ohyee sed -i '1i\Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/\$repo/os/\$arch' /etc/pacman.d/mirrorlist echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf echo -e "[archlinuxcn]\nServer = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch" >> /etc/pacman.conf pacman-key --init pacman-key --populate pacman -Syyu archlinuxcn-keyring --noconfirm pacman -S yay --noconfirm pacman -S zsh --noconfirm ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5 # 链接 Windows 字体 ln -s /mnt/c/Windows/Fonts /usr/share/fonts/WindowsFonts fc-cache -f chsh -s /usr/bin/zsh ohyee passwd ohyee su ohyee
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。