WSL(W
indows S
ubsystem for L
inux)
WSL ์ค์
- WSL ์ค์น
- VcXsrv
- Visual C++๋ก ์ปดํ์ผ๋ Xorg's X-Server
- WSL์ ํฐ๋ฏธ๋์ธ๋ฐ, GUI๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด X-Server๊ฐ ํ์ํจ
- ๋ค์ด๋ก๋
์์ํด๋ ์ค์
{
"startingDirectory" : "//wsl$/Ubuntu/home/{์ ์ ๋ช
}",
}
WSL์ ํฌํธ๋ฅผ Windows์ ํฌํธ๋ก ๋งตํ(ํฌํธ ํฌ์๋ฉ/๋งตํ)
- wslconfig
- ํ์ผ ์ธ์ฝ๋ฉ์: UTF-8 without BOM
- ref
C:\Users\{์ ์ ๋ช
}\.wslconfig
localhostForwarding=True
์๋ํฐ
- emacs
- vscode
- intellij
vscode๋ฅผ wsl-ubuntu์ ์ง์ ์ค์นํ๋ ๊ฒฝ์ฐ
๋น์ถ์ฒ. ํ์ง๋ง ์ํ๋ ์ฌ๋์ด ์์ ์๋ ์์ด์ ๋จ๊ฒจ๋ .
# ref: https://code.visualstudio.com/docs/setup/linux
# ref: https://qiita.com/yoshiyasu1111/items/e21a77ed68b52cb5f7c8
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
$ sudo apt install apt-transport-https
$ sudo apt update
$ sudo apt list -a code
ref
์ ๋ฃ๋ผ์ deprecated
- GWSL - ์ ๋ฃ
- OpenInWSL - ์ ๋ฃ