Download
https://github.com/yuk7/ArchWSL/tree/master
手順
-
ダウンロードして
Arch.exe
とrootfs.tar.gz
を適当な場所へ解凍 -
Arch.exe
を起動 -
Keyringの更新
pacman -Sy archlinux-keyring
-
諸々のパッケージ
pacman -S base-devel vim man-db man-pages texinfo reflector git wget curl rsync openssh
-
reflectorで近いmirrorに変更
reflector -c JP -p https -p http --sort rate --save /etc/pacman.d/mirrorlist
-
通常ユーザー作成・sudo
useradd -m hoge passwd hoge usermod -aG wheel hoge EDITOR=vim visudo # Comment Out %wheel ALL=(ALL:ALL) ALL
-
/etc/wsl.conf
に以下を追加.デフォルトユーザーとWinのPATH除外.[user] default=nanami [interop] appendWindowsPath = false
-
一旦抜けて再起で完了
wsl -t Arch wsl -d Arch