WSL

WSL(Windows Subsystem for Linux)

WSL ์„ค์ •

  • WSL ์„ค์น˜
  • VcXsrv
    • Visual C++๋กœ ์ปดํŒŒ์ผ๋œ Xorg's X-Server
    • WSL์€ ํ„ฐ๋ฏธ๋„์ธ๋ฐ, GUI๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด X-Server๊ฐ€ ํ•„์š”ํ•จ
    • ๋‹ค์šด๋กœ๋“œ

์‹œ์ž‘ํด๋” ์„ค์ •

{
    "startingDirectory" : "//wsl$/Ubuntu/home/{์œ ์ €๋ช…}",
}

WSL์˜ ํฌํŠธ๋ฅผ Windows์— ํฌํŠธ๋กœ ๋งตํ•‘(ํฌํŠธ ํฌ์›Œ๋”ฉ/๋งตํ•‘)

C:\Users\{์œ ์ €๋ช…}\.wslconfig

localhostForwarding=True

์—๋””ํ„ฐ

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