{"id":1627,"date":"2017-12-28T19:52:28","date_gmt":"2017-12-28T17:52:28","guid":{"rendered":"http:\/\/142.93.241.207\/?p=1627"},"modified":"2017-12-28T20:15:53","modified_gmt":"2017-12-28T18:15:53","slug":"developing-for-openfoam-on-windows-10-part-1","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=1627","title":{"rendered":"Developing for OpenFOAM on Windows 10 &#8211; Part 1"},"content":{"rendered":"<h4>Installing WSL on Windows 10 Fall Creators Update<\/h4>\n<p style=\"text-align: justify;\">The following steps illustrate how to install the Windows Subsystem for Linux (WSL) on Windows 10 Falls Creators Update. The procedure is slightly different from previous versions of WSL, because the possibility of using different distributions was added in this update. Each distribution can be obtained from the Microsoft Store.<\/p>\n<ol style=\"text-align: justify;\">\n<li>The first step consists in launching the tool to add extra features to Windows 10. This tool can be found by pressing Win + S, and typing &#8220;Features&#8221;. The menu will show the icon in the figure.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1623\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1-239x300.png\" alt=\"\" width=\"239\" height=\"300\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1-239x300.png 239w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1-768x965.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1-815x1024.png 815w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_1.png 976w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/a><\/li>\n<li>In the tool, scroll down and select &#8220;Windows Subsystem for Linux&#8221;. Check the box, and click on OK.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1606\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2-300x272.png\" alt=\"\" width=\"300\" height=\"272\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2-300x272.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2-768x696.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2-1024x928.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_2.png 1115w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Soon after, Windows will confirm the installation was successful. A reboot is necessary to complete it.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1607\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3-300x238.png\" alt=\"\" width=\"300\" height=\"238\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3-300x238.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3-768x610.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3-1024x813.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_3.png 1601w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Once the system has rebooted, open the Microsoft Store app, which can be found pressing Win-S, and searching &#8220;store&#8221;.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1608\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4-242x300.png\" alt=\"\" width=\"242\" height=\"300\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4-242x300.png 242w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4-768x954.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4-824x1024.png 824w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_4.png 983w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/a><\/li>\n<li>In the Microsoft Store app, search for Ubuntu, and select the Ubuntu app.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1609\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_5-300x230.png\" alt=\"\" width=\"557\" height=\"427\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_5-300x230.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_5-768x588.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_5-1024x784.png 1024w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/a><\/li>\n<li>Click on the &#8220;Install&#8221; button. After the installation is complete you should see the following screen, with the &#8220;Launch&#8221; button.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1610\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_6-300x230.png\" alt=\"\" width=\"560\" height=\"429\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_6-300x230.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_6-768x588.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_6-1024x784.png 1024w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/li>\n<li>Press the &#8220;Launch button&#8221;. A terminal will open, asking to wait for the installation to complete.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1611\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_7-300x164.png\" alt=\"\" width=\"538\" height=\"294\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_7-300x164.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_7-768x420.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_7-1024x561.png 1024w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/a><\/li>\n<li>When the installation is complete, the system will ask to insert a user name for the UNIX system, and the corresponding password. Select the user name you prefer, and specify a secure password.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1613\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_9-300x164.png\" alt=\"\" width=\"537\" height=\"294\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_9-300x164.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_9-768x420.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_9-1024x561.png 1024w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/a><\/li>\n<li>After the password is confirmed successfully, the terminal prompt will appear, indicating that WSL is working properly, as shown below.<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1614\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_10-300x164.png\" alt=\"\" width=\"537\" height=\"294\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_10-300x164.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_10-768x420.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_10-1024x561.png 1024w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/a><\/li>\n<\/ol>\n<p style=\"text-align: justify;\">The installation can be tested by typing some commands like <code>free<\/code> or <code>df<\/code>, which report the amount of free RAM and disc space, respectively.<\/p>\n<p>The next part will focus on installing and configuring OpenFOAM on Ubuntu running under WSL.<\/p>\n<p>Enjoy!\u00a0 <img src=\"https:\/\/www.albertopassalacqua.com\/wp-includes\/images\/smilies\/mrgreen.png\" alt=\":mrgreen:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p><em>This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM\u00ae and OpenCFD\u00ae trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing WSL on Windows 10 Fall Creators Update The following steps illustrate how to install the Windows Subsystem for Linux (WSL) on Windows 10 Falls Creators Update. The procedure is slightly different from previous versions of WSL, because the possibility of using different distributions was added in this update. Each distribution can be obtained from the Microsoft Store. The first step consists in launching the tool to add extra features to Windows 10. This tool can be found by pressing Win + S, and typing &#8220;Features&#8221;. The menu will show the icon in the figure. In the tool, scroll down and select &#8220;Windows Subsystem for Linux&#8221;. Check the box, and click on OK. Soon after, Windows will confirm the installation was successful. A reboot is necessary to complete it. Once the system has rebooted, open the Microsoft Store app, which can be found pressing Win-S, and searching &#8220;store&#8221;. In the Microsoft Store app, search for Ubuntu, and select the Ubuntu app. Click on the &#8220;Install&#8221; button. After the installation is complete you should see the following screen, with the &#8220;Launch&#8221; button. Press the &#8220;Launch button&#8221;. A terminal will open, asking to wait for the installation to complete. When the installation is complete, the system will ask to insert a user name for the UNIX system, and the corresponding password. Select the user name you prefer, and specify a secure password. After the password is confirmed successfully, the terminal prompt will appear, indicating that WSL is working properly, as shown below. The installation can be tested by typing some commands like free or df, which report the amount of free RAM and disc space, respectively. The next part will focus on installing and configuring OpenFOAM on Ubuntu running under WSL. Enjoy!\u00a0 This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM\u00ae and OpenCFD\u00ae trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,129],"tags":[],"class_list":["post-1627","post","type-post","status-publish","format-standard","hentry","category-linux","category-windows"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1627"}],"version-history":[{"count":9,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1627\/revisions"}],"predecessor-version":[{"id":1646,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1627\/revisions\/1646"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}