{"id":6983,"date":"2019-06-08T20:14:31","date_gmt":"2019-06-08T20:14:31","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=6983"},"modified":"2019-06-08T20:14:31","modified_gmt":"2019-06-08T20:14:31","slug":"using-the-windows-subsystem-for-linux","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/using-the-windows-subsystem-for-linux\/","title":{"rendered":"Using the Windows Subsystem for Linux"},"content":{"rendered":"<p>Whilst I have Linux machines available to me, they&#8217;re not always powered up or the remoting <\/p>\n<p>See <a href=\"https:\/\/docs.microsoft.com\/en-gb\/windows\/wsl\/install-win10\" rel=\"noopener noreferrer\" target=\"_blank\">Windows Subsystem for Linux Installation Guide for Windows 10<\/a> for details on installing the WSL. <\/p>\n<p>For completeness here&#8217;s the steps I took.<\/p>\n<ul>\n<li>\nRun PowerShell as Admin and then execute the following<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nEnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux\r\n<\/pre>\n<\/li>\n<li>\nGo to the <em>Microsoft Store<\/em> and type <em>Run Linux on Windows<\/em> into the search text box. In the store currently, there&#8217;s the options of Ubuntu, openSUSE Leap 42, SUSE Linux Enterprise Server 12, Debian and Kali Linux.<\/p>\n<p>Install your preferred distro &#8211; I went for Ubuntu simply because that&#8217;s what I have on most of my Linux boxes.\n<\/li>\n<li>Once installed you&#8217;ll need to go to the command prompt | Properties and select the Options tab. From here ensure that <em>Use legacy console (requires relaunch)<\/em> is unchecked.\n<\/li>\n<\/ul>\n<p>Once everything is initialized you&#8217;ll be in the user&#8217;s (whatever user name you created) home folder &#8211; on Windows this folder is stored in C:\\Users\\{username}\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState\\rootfs\\home<\/p>\n<p>We can access the C drive using<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\ncd \/mnt\/c\r\n<\/pre>\n<p><strong>Running the Linux from Windows<\/strong><\/p>\n<p>When you want to run the Windows Subsystem for Linux going forward, simply execute<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nwsl\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Whilst I have Linux machines available to me, they&#8217;re not always powered up or the remoting See Windows Subsystem for Linux Installation Guide for Windows 10 for details on installing the WSL. For completeness here&#8217;s the steps I took. Run PowerShell as Admin and then execute the following Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Go to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[58,140,53,107],"tags":[],"class_list":["post-6983","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu","category-windows","category-windows-10"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=6983"}],"version-history":[{"count":4,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6983\/revisions"}],"predecessor-version":[{"id":7151,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6983\/revisions\/7151"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=6983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=6983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=6983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}