ArchlinuxをWSLに入れる手順書
ArchlinuxをWSLに入れる手順書
pacman install
code:sh
pacman -Syu --noconfirm
pacman -S --needed --noconfirm vim sudo git zsh openssh github-cli starship which go fzf wget python nvm base-devel zip unzip
locale設定
code:sh
sed -i 's/^#ja_JP.UTF-8/ja_JP.UTF-8/' /etc/locale.gen
locale-gen
User
code:sh
useradd -m ebi
cat <<EOF >> /etc/wsl.conf
default=ebi
EOF
echo "ebi ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
Reboot wsl
githubの設定
code:sh
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/id_github -N ""
cat <<EOF >> ~/.ssh/config
Host github.com
IdentityFile ~/.ssh/id_github
EOF
$ gh auth login
sshキーを登録
環境を整える
dotfiles
$ curl -sSL dot.ebiyuu.com | bash
$ sudo chsh ebi -s /bin/zsh
$ go install github.com/x-motemen/ghq@latest
リログ
install noed
$ nvm install 22 && nvm use 22
yay
code:sh
cd yay
makepkg -si