{"id":1648,"date":"2017-12-28T20:32:02","date_gmt":"2017-12-28T18:32:02","guid":{"rendered":"http:\/\/142.93.241.207\/?p=1648"},"modified":"2017-12-28T22:08:53","modified_gmt":"2017-12-28T20:08:53","slug":"developing-for-openfoam-on-windows-10-part-3","status":"publish","type":"post","link":"https:\/\/www.albertopassalacqua.com\/?p=1648","title":{"rendered":"Developing for OpenFOAM on Windows 10 \u2013 Part 3"},"content":{"rendered":"<h3>Enabling support for graphical applications in WSL with Xming<\/h3>\n<p>The Windows Subsystem for Linux does not officially support GUI applications. However, it is possible to successfully run several of them using a Windows-based X server as <a href=\"http:\/\/www.straightrunning.com\/XmingNotes\/\">Xming<\/a>. The steps to follow are simple:<\/p>\n<ol>\n<li>Download Xming (please, consider a donation to support the developer!) for your version of Windows<\/li>\n<li>Install it accepting the default settings<\/li>\n<li>Open the Ubuntu bash terminal and type\n<ul>\n<li><code>echo \"export DISPLAY=:0\" &gt;&gt; .bashrc<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Load the settings with the command:\n<ul>\n<li><code>source ~\/.bashrc<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Test the setup as follows:\n<ul>\n<li>Start the Xming server on Windows. An icon will appear in the notification areas<\/li>\n<li>Type <code>paraview<\/code> in the Ubuntu bash terminal. The expected outcome is shown below:<a href=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1622\" src=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18-300x209.png\" alt=\"\" width=\"417\" height=\"291\" srcset=\"https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18-300x209.png 300w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18-768x534.png 768w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18-1024x712.png 1024w, https:\/\/www.albertopassalacqua.com\/wp-content\/uploads\/2017\/12\/WSL_18-230x160.png 230w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>In the next part it will be discussed how to exchange files between Windows and 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>Enabling support for graphical applications in WSL with Xming The Windows Subsystem for Linux does not officially support GUI applications. However, it is possible to successfully run several of them using a Windows-based X server as Xming. The steps to follow are simple: Download Xming (please, consider a donation to support the developer!) for your version of Windows Install it accepting the default settings Open the Ubuntu bash terminal and type echo &#8220;export DISPLAY=:0&#8221; &gt;&gt; .bashrc Load the settings with the command: source ~\/.bashrc Test the setup as follows: Start the Xming server on Windows. An icon will appear in the notification areas Type paraview in the Ubuntu bash terminal. The expected outcome is shown below: In the next part it will be discussed how to exchange files between Windows and 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":[5,13,4,6,129],"tags":[],"class_list":["post-1648","post","type-post","status-publish","format-standard","hentry","category-cfd","category-general","category-linux","category-openfoam","category-windows"],"_links":{"self":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1648","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=1648"}],"version-history":[{"count":8,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1648\/revisions"}],"predecessor-version":[{"id":1659,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=\/wp\/v2\/posts\/1648\/revisions\/1659"}],"wp:attachment":[{"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopassalacqua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}