{"id":19,"date":"2020-09-24T20:22:18","date_gmt":"2020-09-24T11:22:18","guid":{"rendered":"https:\/\/www.spacek.xyz\/mle\/?p=19"},"modified":"2022-03-24T21:38:06","modified_gmt":"2022-03-24T12:38:06","slug":"ubuntu%ec%97%90-%ec%9e%91%ec%97%85-%ed%99%98%ea%b2%bd-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.spacek.xyz\/mle\/?p=19","title":{"rendered":"WSL\/Ubuntu\uc5d0 \uc791\uc5c5 \ud658\uacbd \uc124\uc815\ud558\uae30"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>C++ \uac1c\ubc1c\ud658\uacbd \uc124\uc815\ud558\uae30<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt update\napt upgrade\napt install build-essential gdb\n\/\/ \uc124\uce58 \ubc0f \ubc84\uc804 \ud655\uc778\ng++ --version<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Windows Directory mount \ud558\uae30<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"10,13\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># windows folder\ub97c mount \ud560 \ub85c\uceec \uacbd\ub85c \uc0dd\uc131\nmkdir \/&lt;localdir>\n# \uadf8\ub8f9\uc744 \ub9cc\ub4e4\uace0 \uc0ac\uc6a9\uc790 id \ucd94\uac00\nsudo groupadd &lt;localGroup>\nsudo usermod -aG &lt;localGroup> &lt;userid>\nsudo chown -R :&lt;localGroup> \/&lt;localDir>\n# fstab \uc5d0 mount \uc124\uc815 \ucd94\uac00\ncat \/etc\/fstab\nLABEL=cloudimg-rootfs \/ ext4 defaults 0 0\n\/mnt\/c\/_Work\/&lt;WindowWorkingFolder> \/&lt;localDir> auto nosuid,nodev,nofail,bind 0 0\n# \uc790\ub3d9\uc73c\ub85c \ub9c8\uc6b4\ud2b8 \ub418\ub3c4\ub85d \uc124\uc815 'mount -a' \ub97c \ucd94\uac00 \ud568. root user\uc5d0 \uc124\uc815. \uc77c\ubc18 \uc0ac\uc6a9\uc790\uc758 .bashrc \uc5d0 \uc124\uc815\ud558\ub294 \uacbd\uc6b0 'sudo mount -a' \uc0ac\uc6a9\nvi .bashrc\nmount -a<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\ub514\ub809\ud1a0\ub9ac \uc774\ub3d9\uc744 \uc704\ud55c alias \uc124\uc815\ud558\uae30<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">alias cds  ='cd \/DirectoryPath1'\nalias cdn  ='cd \/DirectoryPath2'\nalias cdsn ='cd \/DirectoryPath3'\nalias cdm  ='cd \/DirectoryPath4'\nalias cdl  ='cd \/DirectoryPath5'\nalias cdio ='cd \/DirectoryPath6'\nalias cdb  ='cd \/DirectoryPath7'\nalias cdns ='cd \/DirectoryPath8'\nalias cdsvc='cd \/DirectoryPath9'\nalias cdtr ='cd \/DirectoryPath10'\nalias cdc  ='cd \/DirectoryPath11'\nalias psg  ='ps -ef | grep '<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Python \uc124\uce58\ud558\uae30<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt install python3.8 python3-dev<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>WSL\uc5d0 \uc124\uce58\ub41c ubuntu Restart \ud558\uae30<ul><li>\uc708\ub3c4\uc6b0\uc5d0\uc11c \uad00\ub9ac\uc790 \ubaa8\ub4dc\ub85c PowerShell\uc744 \uc2e4\ud589\ud55c\ub2e4.<\/li><li><code>Restart-Service LxssManager<\/code> \uc744 \uc2e4\ud589\ud55c\ub2e4.<\/li><\/ul><\/li><li>\uc708\ub3c4\uc6b0\uc5d0 VScode \uc124\uce58\ud558\uae30<br><a href=\"https:\/\/code.visualstudio.com\/\" data-type=\"URL\" data-id=\"https:\/\/code.visualstudio.com\/\">https:\/\/code.visualstudio.com\/<\/a> \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc<\/li><li>ubuntu\uc5d0\uc11c vscode \uc124\uc815\ud558\uae30<br>ubuntu\uc758 \uc784\uc758 \ud3f4\ub354\uc5d0\uc11c <code>code .<\/code>  \uc2e4\ud589\ud558\uc5ec vscode \ub97c \uc2e4\ud589\ud55c\ub2e4.<br>&#8220;Remote WSL&#8221; extention \uc744 \uc124\uce58\ud55c\ub2e4.<\/li><li>WSL uninstall<br><code>wslconfig \/u Ubuntu-20.04<\/code><\/li><li>.profile \uc124\uc815<br><\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">PATH=\".:$PATH\"\nLD_LIBRARY_PATH=\/ois\/Lib:$LD_LIBRARY_PATH\nexport LD_LIBRARY_PATH<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++ \uac1c\ubc1c\ud658\uacbd \uc124\uc815\ud558\uae30 Windows Directory mount \ud558\uae30 \ub514\ub809\ud1a0\ub9ac \uc774\ub3d9\uc744 \uc704\ud55c alias \uc124\uc815\ud558\uae30 Python \uc124\uce58\ud558\uae30 WSL\uc5d0 \uc124\uce58\ub41c ubuntu Restart \ud558\uae30 \uc708\ub3c4\uc6b0\uc5d0\uc11c \uad00\ub9ac\uc790 \ubaa8\ub4dc\ub85c PowerShell\uc744 \uc2e4\ud589\ud55c\ub2e4. Restart-Service LxssManager \uc744 \uc2e4\ud589\ud55c\ub2e4. \uc708\ub3c4\uc6b0\uc5d0 VScode \uc124\uce58\ud558\uae30https:\/\/code.visualstudio.com\/ \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc ubuntu\uc5d0\uc11c vscode \uc124\uc815\ud558\uae30ubuntu\uc758 \uc784\uc758 \ud3f4\ub354\uc5d0\uc11c code . &hellip; <a href=\"https:\/\/www.spacek.xyz\/mle\/?p=19\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-6"],"views":805,"_links":{"self":[{"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":7,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spacek.xyz\/mle\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}