{"id":3181,"date":"2021-07-11T00:09:59","date_gmt":"2021-07-10T15:09:59","guid":{"rendered":"https:\/\/julialang.kr\/?p=3181"},"modified":"2021-10-01T16:26:57","modified_gmt":"2021-10-01T07:26:57","slug":"wsl2%ed%95%9c%ea%b8%80ubuntu-windows-wsl2-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/julialang.kr\/?p=3181","title":{"rendered":"[WSL2,\ud55c\uae00,Ubuntu] Windows WSL2  \uc124\uce58"},"content":{"rendered":"\n<p>\uc124\uce58\ucc38\uc870 : <a href=\"https:\/\/docs.microsoft.com\/ko-kr\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/ko-kr\/windows\/wsl\/install-win10<\/a><br><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.microsoft.com\/ko-kr\/windows\/wsl\/compare-versions\" target=\"_blank\" rel=\"noreferrer noopener\">WSL1 vs WSL2 \ube44\uad50<\/a><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uc708\ub3c4\uc6b0 \ubc84\uc804 \uccb4\ud06c <\/strong><\/p>\n\n\n\n<p>\ube4c\ub4dc \ubc88\ud638\ub294 18362.1049 \uc774\uc0c1 \ub610\ub294 18363.1049 \uc774\uc0c1\uc774\uace0, \ubd80 \ube4c\ub4dc \ubc88\ud638\ub294 .1049 \uc774\uc0c1<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"268\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-6.png\" alt=\"\" class=\"wp-image-3183\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-6.png 526w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-6-300x153.png 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uac00\uc0c1\uc9c0\uc6d0\uc5ec\ubd80 \ud654\uc778<\/strong><br>\ucc38\uc870: https:\/\/blog.dalso.org\/it\/12256, https:\/\/leomoon.com\/downloads\/desktop-apps\/leomoon-cpu-v\/<br>\uc544\ub798 \uadf8\ub9bc \ucc98\ub7fc \uac00\uc0c1\ud654\uac00 \uc9c0\uc6d0\uc774 \uc548\ub418\uba74<br>\uad00\ub9ac\uc790 powershell\uc5d0\uc11c &#8220;<strong><code>bcdedit \/set hypervisorlaunchtype off<\/code><\/strong>&#8221; \uc2e4\ud589 \ud6c4 \uc81c\ubd80\ud305 \ud558\uace0 \ub2e4\uc2dc \ud655\uc778\ud574\ubcf8\ub2e4.<br>\ub2e4\uc2dc \ud655\uc778 \ud588\ub294\ub370\ub3c4 \uc9c0\uc6d0\uc774 \uc548\ub418\uba74 \uc548\ub418\ub294 CPU\uc784<br>\ucc38\uace0 URL : <a href=\"https:\/\/blog.dalso.org\/it\/14465\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blog.dalso.org\/it\/14465<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"436\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-5.png\" alt=\"\" class=\"wp-image-3182\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-5.png 362w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-5-249x300.png 249w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Linux\uc6a9 Windows \ud558\uc704 \uc2dc\uc2a4\ud15c \uc0ac\uc6a9 \uc124\uc815<\/strong><\/p>\n\n\n\n<p>PowerShell\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc544\ub798 \uba85\ub839\uc5b4 \uc2e4\ud589 \ud558\uace0 \uc708\ub3c4\uc6b0 \uc7ac\ubd80\ud305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart<\/code><\/pre>\n\n\n\n<p>PowerShell\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc544\ub798 \uba85\ub839\uc5b4 \uc2e4\ud589 \ud558\uace0 \uc708\ub3c4\uc6b0 \uc7ac\ubd80\ud305<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Virtual Machine \uae30\ub2a5 \uc0ac\uc6a9<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>WSL 2\ub97c \uae30\ubcf8 \ubc84\uc804\uc73c\ub85c \uc124\uc815<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --set-default-version 2<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Ubuntu 20.04 LTS<\/strong> \ubc30\ud3ec\ud310 \uc124\uce58<\/p>\n\n\n\n<p>MS Store\uc5d0\uc11c Ubuntu 20.04 LTS\ub97c \ubc1b\uc544\uc11c \uc124\uce58 \ud55c\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"367\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-7.png\" alt=\"\" class=\"wp-image-3193\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-7.png 541w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-7-300x204.png 300w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\ubc30\ud3ec\ubc84\uc804 \ud655\uc778<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --list --verbose<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>wsl2 shutdown<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --shutdown<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>C:\/Users\/&lt;user name&gt;\/.wslconfig  \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uc5ec WSL2\uac00 \uc0ac\uc6a9\ud558\ub294 \uc790\uc6d0\uc744 \ud55c\uc815 \ud55c\ub2e4.<br>\uc791\uc5c5\uad00\ub9ac\uc790\uc5d0\uc11c \ud504\ub85c\uc138\uc2a4 Vmmem\ub97c \ubcf4\uba74 \uba54\ubaa8\ub9ac\uc640 CPU \ub97c \uc5bc\ub9c8\ub098 \uc0ac\uc6a9\ud558\ub294\uc9c0 \uc54c \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;wsl2]\nmemory=4GB # Limits VM memory in WSL 2 to 4 GB\nprocessors=2 # Makes the WSL 2 VM use two virtual processors<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\ud55c\uae00 \ud3f0\ud2b8 \uc124\uce58<\/strong><\/p>\n\n\n\n<p>\ub098\ub214\ud3f0\ud2b8 \uc124\uce58<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt update\n$ sudo apt upgrade\n$ sudo apt-get install fonts-nanum fonts-nanum-coding fonts-nanum-extra<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uc2dc\uc2a4\ud15c \ud55c\uae00\uc124\uc815<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># locale \ud655\uc778\n$ locale\n\n# locale \ubcc0\uacbd\n# ko_KR.UTF8 \uc120\ud0dd\n$ sudo dpkg-reconfigure locales\n\n# WSL \ub2e4\uc2dc \uc2dc\uc791<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Windows\uc6a9 X Server \uc124\uce58<\/strong><\/p>\n\n\n\n<p>\ucc38\uc870 : <a href=\"https:\/\/blog.nadekon.net\/115\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blog.nadekon.net\/115<\/a><\/p>\n\n\n\n<p>Windows\uc5d0\uc11c Ubuntu x windows \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ub744\uc6b0\uae30 \uc704\ud574 Windows\uc5d0 VcXsrv\uc11c\ubc84 \uc124\uce58<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-8.png\" alt=\"\" class=\"wp-image-3196\" width=\"423\" height=\"291\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-8.png 422w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-8-300x206.png 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/figure>\n\n\n\n<p>Display number : 0 \uc73c\ub85c \uc124\uc815<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-9.png\" alt=\"\" class=\"wp-image-3197\" width=\"429\" height=\"338\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-9.png 510w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-9-300x236.png 300w\" sizes=\"(max-width: 429px) 100vw, 429px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-10.png\" alt=\"\" class=\"wp-image-3198\" width=\"438\" height=\"345\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-10.png 510w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-10-300x236.png 300w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/figure>\n\n\n\n<p>Additional parameters \ubd80\ubd84\uc5d0 -ac \uc785\ub825<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-16.png\" alt=\"\" class=\"wp-image-3219\" width=\"449\" height=\"354\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-16.png 510w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-16-300x236.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/figure>\n\n\n\n<p>&#8220;Save configuration&#8221; \uc73c\ub85c \uc124\uc815 \uc800\uc7a5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-12.png\" alt=\"\" class=\"wp-image-3200\" width=\"450\" height=\"355\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-12.png 510w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-12-300x236.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<p>\uc124\uc815\uc774 \ub05d\ub098\uba74 \uc544\ub798 \ucc98\ub7fc \uc544\uc774\ucf58\uc774 \ub450\uac1c \uc0dd\uae40, confi.. \ub97c \uc2e4\ud589\ud558\uba74 xserver\uac00 \uc2e4\ud589\uc774 \ub418\uace0 \uc708\ub3c4\uc6b0 \ud2b8\ub808\uc774\uc5d0\uc11c \ubcfc \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-14.png\" alt=\"\" class=\"wp-image-3206\" width=\"239\" height=\"251\"\/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Ubuntu .bashrc\uc5d0 x-server \ud658\uacbd \ucd94\uac00\ud558\uae30<\/strong><\/p>\n\n\n\n<p>.bashrc\uc5d0 \uc544\ub798 \ucf54\ub4dc\ub97c \ucd94\uac00 \ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># For WSL 2 only (Using IP from resolv.conf (vEthernet))\nVETHER_IP=$(\/bin\/grep nameserver \/etc\/resolv.conf 2> \/dev\/null | \/bin\/tr -s ' ' | \/bin\/cut -d' ' -f2)\nexport DISPLAY=$VETHER_IP:0.0<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"66\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-15.png\" alt=\"\" class=\"wp-image-3213\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-15.png 829w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-15-300x24.png 300w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-15-768x61.png 768w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code># \uc0c8\ub85c\uc6b4 \ud658\uacbd \uc7ac\ub85c\ub529\n\n$ source .bashrc<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>X11 Application \ud14c\uc2a4\ud2b8\ub97c \uc704\ud55c \uc124\uce58<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install x11-apps<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\uc2dc\uc2a4\ud15c X11 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \uba54\ub274 \ud55c\uae00 \ud45c\uc2dc<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo \/etc\/init.d\/dbus start\n$ sudo dbus-daemon --system\n$ sudo apt install language-selector-gnome\n$ sudo gnome-language-selector<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-18.png\" alt=\"\" class=\"wp-image-3223\" width=\"367\" height=\"471\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-18.png 381w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-18-234x300.png 234w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-19.png\" alt=\"\" class=\"wp-image-3224\" width=\"374\" height=\"377\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-19.png 527w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-19-297x300.png 297w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-19-150x150.png 150w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>WSL2\uc5d0\uc11c \ud55c\uae00 \uc785\ub825&nbsp;\uc0ac\uc6a9\ud558\uae30<\/strong><\/p>\n\n\n\n<p>\ud55c\uae00\uc785\ub825\uae30 \uc124\uce58<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install fcitx fcitx-hangul fonts-noto-cjk dbus-x11\n$  im-config<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-20.png\" alt=\"\" class=\"wp-image-3227\" width=\"431\" height=\"273\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-20.png 672w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-20-300x191.png 300w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-21.png\" alt=\"\" class=\"wp-image-3228\" width=\"427\" height=\"305\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-21.png 593w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-21-300x215.png 300w\" sizes=\"(max-width: 427px) 100vw, 427px\" \/><\/figure>\n\n\n\n<p>.bashrc \uc5c5\ub370\uc774\ud2b8<br>\ud30c\uc77c\uc758 \ub9e8 \uc544\ub798 \ub2e4\uc74c\uc744 \ucd94\uac00 \ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nexport QT_IM_MODULE=fcitx\nexport GTK_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx\nexport DefaultIMModule=fcitx\n \n#optional\nfcitx-autostart &amp;>\/dev\/null<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>$ source .bashrc<\/code><\/pre>\n\n\n\n<p>\ud55c\uae00 \uc785\ub825\uae30\uac00 \uc81c\ub300\ub85c \uc124\uce58 \ub41c\uc9c0 \ud655\uc778<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ fcitx-config-gtk3<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-22.png\" alt=\"\" class=\"wp-image-3231\" width=\"492\" height=\"364\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-22.png 650w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-22-300x222.png 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size\"><strong><span class=\"has-inline-color has-vivid-red-color\">\ud55c\uae00\/\uc601\uc5b4 \ud1a0\uae00 : Ctrl-Space<\/span><\/strong><\/p>\n\n\n\n<p>\ud55c\uae00 \uc785\ub825 \ud14c\uc2a4\ud2c0\uc744 \uc704\ud574 Kate\uc124\uce58<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install kate\n$ kate<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-23.png\" alt=\"\" class=\"wp-image-3232\" width=\"309\" height=\"203\" srcset=\"https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-23.png 328w, https:\/\/julialang.kr\/wp-content\/uploads\/2021\/07\/image-23-300x198.png 300w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\ud06c\ub86c \ube0c\ub77c\uc6b0\uc988  \uc124\uce58<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \ub514\ub809\ud130\ub9ac\ub97c \uc784\uc2dc \ud3f4\ub354\ub85c \ubcc0\uacbd. \n$ cd \/tmp\n\n# Wget\uc744 \uc0ac\uc6a9 \ud558 \uc5ec \ub2e4\uc6b4\ub85c\ub4dc.\n$ sudo wget https:\/\/dl.google.com\/linux\/direct\/google-chrome-stable_current_amd64.deb\n\n# \ud604\uc7ac \uc548\uc815\uc801\uc778 \ubc84\uc804 \uac00\uc838\uc624\uae30: \n$ sudo dpkg -i google-chrome-stable_current_amd64.deb\n\n# \ud328\ud0a4\uc9c0 \uc218\uc815\n$ sudo apt install --fix-broken -y\n\n# \ud328\ud0a4\uc9c0 \uad6c\uc131\n$ sudo dpkg -i google-chrome-stable_current_amd64.deb\n\n# \ube0c\ub77c\uc6b0\uc988 \uc2dc\uc791\n$ google-chrome<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\ubc30\ud3ec\ud328\ud0a4\uc9c0 \uc124\uce58<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># gedit \uc124\uce58\n$ sudo apt install gedit\n\n# krusader \uc124\uce58\uc640 \ud544\uc694 \uc544\uc774\ucf58 \uc124\uce58\n$ sudo apt install krusader\n$ sudo apt install breeze-icon-theme<\/code><\/pre>\n\n\n\n<p class=\"has-large-font-size\"><strong>How to move the vhdx of wsl2 to other disk<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/MicrosoftDocs\/WSL\/issues\/412\">https:\/\/github.com\/MicrosoftDocs\/WSL\/issues<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/MicrosoftDocs\/WSL\/issues\/412\" target=\"_blank\">\/<\/a><a href=\"https:\/\/github.com\/MicrosoftDocs\/WSL\/issues\/412\">412<\/a><\/p>\n\n\n\n<p>\uc774\ubbf8 \uc124\uce58\ub41c wsl2\ub97c \ub2e4\ub978 \ub514\uc2a4\ud06c\ub85c \uc62e\uae30\uace0 \uc2f6\uc740 \uacbd\uc6b0 \uc544\ub798\uc640 \uac19\uc774 \ud558\uba74\ub428<\/p>\n\n\n\n<p>\uad00\ub9ac\uc790 \ubaa8\ub4dc\uc758 powershell \uc5f4\uae30<br>\uc608) \uba3c\uc800 E \ub4dc\ub77c\uc774\ube0c\uc5d0 export\ud560 \ud3f4\ub354 &#8220;tmp&#8221; \uc640 import\ud560 \ud3f4\ub354 &#8220;WSL2&#8221; \ub97c \ub9cc\ub4e4\uace0 \uc544\ub798\uc640 \uac19\uc774 \uc791\uc5c5\ud55c\ub2e4.<br>      \ub9c8\uc9c0\ub9c9\uc73c\ub85c \uae30\uc874\uc5d0 \ub514\ud3f4\ud2b8\ub85c \uc0ac\uc6a9\ud558\ub358 user\ub97c import\ud6c4\uc5d0\ub3c4 \uc0ac\uc6a9\ud558\uace0 \uc2f6\uc5b4\uba74 &#8220;ubuntu config &#8211;default-user&#8221; \ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790\ub97c \uc9c0\uc815\ud55c\ub2e4.<br>      ubuntu 20.04\uc778 \uacbd\uc6b0 ubuntu\uac00 \uc544\ub2cc ubuntu2004\uc784<br>      import  E:\\WSL2\\ \ud3f4\ub354\ub97c \ud655\uc778\ud574\ubcf4\uba74 ext4.vhdx \ud30c\uc77c\uc774 \uc788\ub294 \uac83\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\WINDOWS\\system32> wsl --shutdown\nPS C:\\WINDOWS\\system32> wsl -l\nLinux\uc6a9 Windows \ud558\uc704 \uc2dc\uc2a4\ud15c \ubc30\ud3ec:\nUbuntu-20.04(\uae30\ubcf8\uac12)\nPS C:\\WINDOWS\\system32> wsl --export Ubuntu-20.04 E:\\tmp\\Ubuntu-20.04.tar\n\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0\uc774 \ub85c\uceec \uc2dc\uc2a4\ud15c\uc5d0 \uc758\ud574 \ucde8\uc18c\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\nPS C:\\WINDOWS\\system32> wsl --export Ubuntu-20.04 E:\\tmp\\Ubuntu-20.04.tar\nPS C:\\WINDOWS\\system32> wsl --unregister Ubuntu-20.04\n\ub4f1\ub85d \ucde8\uc18c \uc911...\nPS C:\\WINDOWS\\system32> wsl --import Ubuntu-20.04 E:\\WSL2\\ E:\\tmp\\Ubuntu-20.04.tar\nPS C:\\WINDOWS\\system32> wsl -l\nLinux\uc6a9 Windows \ud558\uc704 \uc2dc\uc2a4\ud15c \ubc30\ud3ec:\nUbuntu-20.04(\uae30\ubcf8\uac12)\nPS C:\\WINDOWS\\system32> ubuntu2004 config --default-user mrchaos<\/code><\/pre>\n\n\n\n<p class=\"has-large-font-size\"><strong>Expanding the size of your WSL 2 Virtual Hard Disk<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/compare-versions#understanding-wsl-2-uses-a-vhd-and-what-to-do-if-you-reach-its-max-size\">https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/compare-versions#understanding-wsl-2-uses-a-vhd-and-what-to-do-if-you-reach-its-max-size<\/a><\/p>\n\n\n\n<p>WSL 2 uses a Virtual Hard Disk (VHD) to store your Linux files. In WSL 2, a VHD is represented on your Windows hard drive as a&nbsp;<em>.vhdx<\/em>&nbsp;file.<\/p>\n\n\n\n<p>The WSL 2 VHD uses the ext4 file system. This VHD automatically resizes to meet your storage needs and has an initial maximum size of 256GB. If the storage space required by your Linux files exceeds this size you may need to expand it. If your distribution grows in size to be greater than 256GB, you will see errors stating that you&#8217;ve run out of disk space. You can fix this error by expanding the VHD size.<\/p>\n\n\n\n<p>To expand your maximum VHD size beyond 256GB:<\/p>\n\n\n\n<ol><li>Terminate all WSL instances using the command:&nbsp;<code>wsl --shutdown<\/code><\/li><li>To find your distribution installation package name (&#8216;PackageFamilyName&#8217;):<ul><li>Using PowerShell (where &#8216;distro&#8217; is your distribution name) enter the command:<\/li><li><code>Get-AppxPackage -Name \"*&lt;distro&gt;*\" | Select PackageFamilyName<\/code><\/li><li>For example:&nbsp;<code>Get-AppxPackage -Name \"*Ubuntu*\" | Select PackageFamilyName<\/code><\/li><\/ul><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/media\/get-appxpackage.png\" alt=\"Get-AppxPackage command line screenshot\"><\/li><li>Use the resulting&nbsp;<code>PackageFamilyName<\/code>&nbsp;to locate the VHD file&nbsp;<code>fullpath<\/code>&nbsp;used by your WSL 2 installation, this will be your&nbsp;<code>pathToVHD<\/code>. To find the full path:<ul><li>In your Start menu, enter: &#8220;%LOCALAPPDATA%&#8221; and select to open the %LOCALAPPDATA% file folder.<\/li><li>Next, open the &#8220;Packages&#8221; folder and search for the&nbsp;<code>PackageFamilyName<\/code>&nbsp;of your distribution. Open that folder (ie. CanonicalGroupLimited.Ubuntu20.04onWindows_79xxxxx).<\/li><li>Inside the&nbsp;<code>PackageFamilyName<\/code>&nbsp;folder, open the &#8220;LocalState&#8221; folder and find the&nbsp;<code>&lt;disk&gt;.vhdx<\/code>&nbsp;file.<\/li><li>Copy the path to that file, it should look something like:&nbsp;<code>%LOCALAPPDATA%\\Packages\\&lt;PackageFamilyName&gt;\\LocalState\\&lt;disk&gt;.vhdx<\/code><\/li><li>For example, the&nbsp;<code>&lt;pathToVHD&gt;<\/code>&nbsp;for Ubuntu 20.04 should look something like:&nbsp;<code>%LOCALAPPDATA%\\Packages\\CanonicalGroupLimited.Ubuntu20.04onWindows_79xxxx\\LocalState\\ext4.vhdx<\/code>.<\/li><\/ul><\/li><li>Resize your WSL 2 VHD by completing the following commands:<ul><li>Open Windows Command Prompt with admin privileges and enter:cmdCopy<code>diskpart <\/code>cmdCopy<code>DISKPART&gt; Select vdisk file=\"&lt;pathToVHD&gt;\" <\/code>cmdCopy<code>DISKPART&gt; detail vdisk<\/code><\/li><li>Examine the output of the&nbsp;<strong>detail<\/strong>&nbsp;command. The output will include a value for&nbsp;<strong>Virtual size<\/strong>. This is the current maximum. Convert this value to megabytes. For example, if the&nbsp;<strong>detail<\/strong>&nbsp;output shows&nbsp;<strong>Virtual size: 256 GB<\/strong>, convert this to&nbsp;<strong>256000<\/strong>.<\/li><li>The new value you enter must be greater than this original value. As an example, to double the virtual size listed above, you could enter the value:&nbsp;<strong>512000<\/strong>. Once you have determined the number you would like to set for your new size (in megabytes), enter the following command in your Windows Command Prompt&nbsp;<strong>diskpart<\/strong>&nbsp;prompt:cmdCopy<code>DISKPART&gt; expand vdisk maximum=&lt;sizeInMegaBytes&gt;<\/code><\/li><li>Exit&nbsp;<strong>diskpart<\/strong>cmdCopy<code>DISKPART&gt; exit<\/code><\/li><\/ul><\/li><li>Launch your WSL distribution (Ubuntu, for example).<\/li><li>Make WSL aware that it can expand its file system&#8217;s size by running these commands from your WSL distribution command line.BashCopy<code> sudo mount -t devtmpfs none \/dev mount | grep ext4<\/code><ul><li>You may see this message in response to the first&nbsp;<strong>mount<\/strong>&nbsp;command: &#8220;\/dev: none already mounted on \/dev.&#8221; This message can safely be ignored.<\/li><li>Copy the name of this entry, which will look like:&nbsp;<code>\/dev\/sdX<\/code>&nbsp;(with the X representing any other character). In the following example the value of&nbsp;<strong>X<\/strong>&nbsp;is&nbsp;<strong>b<\/strong>:<\/li><\/ul>BashCopy<code> sudo resize2fs \/dev\/sdb &lt;sizeInMegabytes&gt;M<\/code><ul><li>Using the example from above, we changed the vhd size to&nbsp;<strong>512000<\/strong>, so the command would be:&nbsp;<code>sudo resize2fs \/dev\/sbd 512000M<\/code>.<\/li><\/ul>&nbsp;NoteYou may need to install&nbsp;<strong>resize2fs<\/strong>. If so, you can use this command to install it:&nbsp;<code>sudo apt install resize2fs<\/code>.The output will look similar to the following:BashCopy<code> resize2fs 1.44.1 (24-Mar-2021) Filesystem at \/dev\/sdb is mounted on \/; on-line resizing required old_desc_blocks = 32, new_desc_blocks = 38 The filesystem on \/dev\/sdb is now 78643200 (4k) blocks long.<\/code><\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc124\uce58\ucc38\uc870 : https:\/\/docs.microsoft.com\/ko-kr\/windows\/wsl\/install-win10 WSL1 vs WSL2 \ube44\uad50 \uc708\ub3c4\uc6b0 \ubc84\uc804 \uccb4\ud06c \ube4c\ub4dc \ubc88\ud638\ub294 18362.1049 \uc774\uc0c1 \ub610\ub294 18363.1049 \uc774\uc0c1\uc774\uace0, \ubd80 \ube4c\ub4dc \ubc88\ud638\ub294 .1049 \uc774\uc0c1 \uac00\uc0c1\uc9c0\uc6d0\uc5ec\ubd80 \ud654\uc778\ucc38\uc870: https:\/\/blog.dalso.org\/it\/12256, https:\/\/leomoon.com\/downloads\/desktop-apps\/leomoon-cpu-v\/\uc544\ub798 \uadf8\ub9bc \ucc98\ub7fc \uac00\uc0c1\ud654\uac00 \uc9c0\uc6d0\uc774 \uc548\ub418\uba74\uad00\ub9ac\uc790 powershell\uc5d0\uc11c &#8220;bcdedit \/set hypervisorlaunchtype off&#8221; \uc2e4\ud589 \ud6c4 \uc81c\ubd80\ud305 \ud558\uace0 \ub2e4\uc2dc \ud655\uc778\ud574\ubcf8\ub2e4.\ub2e4\uc2dc \ud655\uc778 \ud588\ub294\ub370\ub3c4 \uc9c0\uc6d0\uc774 \uc548\ub418\uba74 \uc548\ub418\ub294 CPU\uc784\ucc38\uace0 URL : https:\/\/blog.dalso.org\/it\/14465 Linux\uc6a9 Windows \ud558\uc704 \uc2dc\uc2a4\ud15c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/posts\/3181"}],"collection":[{"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/julialang.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3181"}],"version-history":[{"count":38,"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions"}],"predecessor-version":[{"id":3600,"href":"https:\/\/julialang.kr\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions\/3600"}],"wp:attachment":[{"href":"https:\/\/julialang.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/julialang.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/julialang.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}