1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSLにarchlinuxをインストールする

Posted at

インストール

powershell
wsl --install archlinux

ロケールの設定

bash
# en_US.UTF-8のコメントを外す
nvim /etc/locale.conf

locale-gen
localectl set-locale LANG=en_US.UTF-8

色々入れる

bash
pacman -Syyu --needed base-devel git neovim

ユーザーを追加

bash
useradd -m -G wheel USERNAME
passwd USERNAME

# wheelを有効化
EDITOR=nvim visudo

# デフォルトのユーザーを設定
printf "[user]\ndefault=USERNAME" >> /etc/wsl.conf

ここでいったんログアウト。

bash
logout

追加したユーザーでログインされることを確認。

powershell
wsl --shutdown
wsl -d archlinux

AURヘルパーを入れる

rootではmakepkgできない。

bash
git clone https://aur.archlinux.org/paru-bin.git ~/paru-bin
cd ~/paru-bin
makepkg -si

#後片付け
cd
rm -rf ~/paru-bin
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?