{"id":34,"date":"2016-05-08T18:01:25","date_gmt":"2016-05-08T22:01:25","guid":{"rendered":"http:\/\/computermoose.topshot.com\/?p=34"},"modified":"2016-05-08T18:01:25","modified_gmt":"2016-05-08T22:01:25","slug":"running-native-ubuntu-linux-under-windows-10","status":"publish","type":"post","link":"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/","title":{"rendered":"Running Native Ubuntu Linux Under Windows 10"},"content":{"rendered":"<p>This is very new and very hot. \u00a0For many years now we have been able to run all sorts of Linux distros (Ubuntu, Debian, RedHat, etc.)\u00a0on Windows boxes by use of &#8220;virtual machines&#8221;, either from within VMWare or from Oracle&#8217;s VirtualBox. \u00a0These programs emulate the architecture of the CPU and install and run the various distros within their frameworks.<\/p>\n<p>This new product from Microsoft, while still in beta mode, runs Ubuntu natively, not via emulation. It&#8217;s called &#8220;Bash on Ubuntu on Windows.&#8221; \u00a0This development effort, while being implemented by Microsoft, is getting support from the Ubuntu community.<\/p>\n<p>Note again that this is a beta product. \u00a0If you are running a normal Windows 10 operating system on your computer then this software is not yet available. \u00a0You need to sign up and become a member of the Microsoft Insider Program. \u00a0Being in this program will get you newer Windows software, newer features and, for course, possible bugs. \u00a0I have now been on the &#8220;fast track&#8221; option of the Insider program (which is also required to get this beta software) for well over a month and have yet to experience any problems. \u00a0Microsoft will occasionally bug you with a message asking for your input on some feature or another but I consider that to be quite acceptable and I do respond with as much detail as I can. To sign up for the Insider Program, go to <a href=\"https:\/\/insider.windows.com\/\">this link<\/a>.<\/p>\n<p>For those of you interested in understanding a little\u00a0about the architecture surrounding Bash on Ubuntu on Windows, you might find this\u00a021 minute video interesting: <a href=\"https:\/\/channel9.msdn.com\/Blogs\/Seth-Juarez\/Windows-Subsystem-for-Linux-Architectural-Overview\">architecture link<\/a>.<\/p>\n<p>To get started with Bash on Ubuntu on Windows, you must be running Windows 10 version\u00a014316 or later. \u00a0I am currently on version 14332. \u00a0To find your version number, go to Settings &#8211;&gt; System &#8211;&gt; About. \u00a0The version number is the &#8220;OS Build&#8221;.<\/p>\n<p>Here is the procedure for installing Bash on Ubuntu on Windows. \u00a0I am assuming you are already signed up for the Insider Program and that you have version 14316 or later of Windows 10. \u00a0Go to Settings &#8211;&gt; Update &amp; Security &#8211;&gt; For Developers. \u00a0You want to select &#8220;Developer mode&#8221; as shown in this picture:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"36\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/fordeveloper\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?fit=1023%2C634&amp;ssl=1\" data-orig-size=\"1023,634\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1462726603&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ForDeveloper\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?fit=300%2C186&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?fit=840%2C521&amp;ssl=1\" class=\"alignnone size-full wp-image-36\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?resize=840%2C521\" alt=\"ForDeveloper\" width=\"840\" height=\"521\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?w=1023&amp;ssl=1 1023w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?resize=300%2C186&amp;ssl=1 300w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/ForDeveloper.jpg?resize=768%2C476&amp;ssl=1 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>Once done, close the dialog box.<\/p>\n<p>Next, go to Windows &#8211;&gt; search &#8211;&gt; and enter &#8220;windows features on or off&#8221;. \u00a0In the dialog box that will appear, scroll down until you see &#8220;Windows Subsystem for Linux (Beta)&#8221; and select it, as shown in this picture:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"37\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/windowsfeatures2\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?fit=416%2C373&amp;ssl=1\" data-orig-size=\"416,373\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1461703554&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WindowsFeatures2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?fit=300%2C269&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?fit=416%2C373&amp;ssl=1\" class=\"alignnone size-full wp-image-37\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?resize=416%2C373\" alt=\"WindowsFeatures2\" width=\"416\" height=\"373\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?w=416&amp;ssl=1 416w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/WindowsFeatures2.jpg?resize=300%2C269&amp;ssl=1 300w\" sizes=\"auto, (max-width: 416px) 85vw, 416px\" \/><\/p>\n<p>After you click on the OK button above, Windows will initiate the download of the Ubuntu file, bash.exe. \u00a0Once done, the computer will need to be restarted. \u00a0After the computer as restarted,\u00a0launch a command prompt (&#8220;cmd&#8221;) and enter the command &#8220;bash&#8221;, as shown in this picture:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"38\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/bash1\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?fit=663%2C339&amp;ssl=1\" data-orig-size=\"663,339\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1461704095&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"bash1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?fit=300%2C153&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?fit=663%2C339&amp;ssl=1\" class=\"alignnone size-full wp-image-38\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?resize=663%2C339\" alt=\"bash1\" width=\"663\" height=\"339\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?w=663&amp;ssl=1 663w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash1.jpg?resize=300%2C153&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Enter &#8220;y&#8221; to initiate the download of the Ubuntu operating system, as shown here:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"39\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/bash2\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?fit=659%2C333&amp;ssl=1\" data-orig-size=\"659,333\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1461704225&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"bash2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?fit=300%2C152&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?fit=659%2C333&amp;ssl=1\" class=\"alignnone size-full wp-image-39\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?resize=659%2C333\" alt=\"bash2\" width=\"659\" height=\"333\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?w=659&amp;ssl=1 659w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash2.jpg?resize=300%2C152&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Depending on the speed of your Internet connection, this might take some time to complete. \u00a0Once done, enter &#8220;exit&#8221; to close the cmd window, as shown here:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/bash3\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?fit=661%2C335&amp;ssl=1\" data-orig-size=\"661,335\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1461704408&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"bash3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?fit=300%2C152&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?fit=661%2C335&amp;ssl=1\" class=\"alignnone size-full wp-image-40\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?resize=661%2C335\" alt=\"bash3\" width=\"661\" height=\"335\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?w=661&amp;ssl=1 661w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash3.jpg?resize=300%2C152&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>At this point, everything is done. Ubuntu for Windows has been installed. \u00a0Now simply open Windows and search for &#8220;Bash on Ubuntu on Windows&#8221; and select it. \u00a0A real bash shell will now open up as shown here:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"41\" data-permalink=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/bash4\/\" data-orig-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?fit=659%2C333&amp;ssl=1\" data-orig-size=\"659,333\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Joe Berry&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1461704796&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"bash4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?fit=300%2C152&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?fit=659%2C333&amp;ssl=1\" class=\"alignnone size-full wp-image-41\" src=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?resize=659%2C333\" alt=\"bash4\" width=\"659\" height=\"333\" srcset=\"https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?w=659&amp;ssl=1 659w, https:\/\/i0.wp.com\/computermoose.topshot.com\/wp-content\/uploads\/2016\/05\/bash4.jpg?resize=300%2C152&amp;ssl=1 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>You are now running Ubuntu on Windows. \u00a0There are a few important points that you need to make note of:<\/p>\n<ul>\n<li>Not all Ubuntu software will work; for example, ping does not yet work.<\/li>\n<li>While it appears you that you don&#8217;t have Internet connectivity (due to ping not working) this is not true; you can use apt-get to download and install additional packages just like in a normal Ubuntu environment.\n<ul>\n<li>If you do have connectivity issues, see this <a href=\"https:\/\/github.com\/Microsoft\/BashOnWindows\/issues\/5\">link<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>sudo works fine; use it.<\/li>\n<li>If you want to\u00a0access your Windows home directory from within Ubuntu, do an &#8220;ls \/mnt\/c\/Users\/yourUserName&#8221; to see the list of files.<\/li>\n<li>Read the <a href=\"https:\/\/msdn.microsoft.com\/en-us\/commandline\/wsl\/faq\">FAQ<\/a> to get a better understanding about this product, current status, etc.<\/li>\n<\/ul>\n<p>Bash on Ubuntu on Windows (they need to come up with a shorter name) has only been out for a couple of months. \u00a0There is a lot of activity taking place with this software (see <a href=\"https:\/\/github.com\/Microsoft\/BashOnWindows\/issues\">here<\/a>) especially flushing out bugs. \u00a0But there&#8217;s a lot of potential, too, for developers to work in a heterogeneous environment when the need exists.<\/p>\n<p>I&#8217;ll have more articles on this subject as I continue to play with it. \u00a0Stay tuned.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is very new and very hot. \u00a0For many years now we have been able to run all sorts of Linux distros (Ubuntu, Debian, RedHat, etc.)\u00a0on Windows boxes by use of &#8220;virtual machines&#8221;, either from within VMWare or from Oracle&#8217;s VirtualBox. \u00a0These programs emulate the architecture of the CPU and install and run the various &hellip; <a href=\"https:\/\/computermoose.topshot.com\/index.php\/2016\/05\/08\/running-native-ubuntu-linux-under-windows-10\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Running Native Ubuntu Linux Under Windows 10&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7qelO-y","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":3,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/posts\/34\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computermoose.topshot.com\/index.php\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}