{"id":1830,"date":"2019-10-14T15:23:37","date_gmt":"2019-10-14T22:23:37","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=1830"},"modified":"2019-10-14T15:27:25","modified_gmt":"2019-10-14T22:27:25","slug":"windows-subsystem-for-linux","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/windows-subsystem-for-linux\/","title":{"rendered":"Windows Subsystem for Linux"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Check if Linux Subsytem is enabled<\/h2>\n\n\n\n<p>Check your Build version is greater than 14393 by  opening and runing  power shell  as administrator and type the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systeminfo | Select-String \"^OS Name\",\"^OS Version\" <\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"118\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Get_Windows_Version.png\" alt=\"\" class=\"wp-image-1842\"\/><\/figure>\n\n\n\n<p>You can install a <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10\">Linux desktop for Windows<\/a>, as long as you have set up Windows Subsystem for Linux. To check if it is enabled in windows  in power shell  type the command: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1217\" height=\"288\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Get_Windows_Feature_Windows_Subsytem_Linux.png\" alt=\"\" class=\"wp-image-1833\"\/><\/figure>\n\n\n\n<p>If disabled change the Get- to Enable- and run the power shell command and reboot when prompted<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download Linux From Store<\/h2>\n\n\n\n<p>Install the desired Linux version: in this demo Kali Linux is used<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1172\" height=\"466\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Store_Kali_Linux.png\" alt=\"\" class=\"wp-image-1835\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"> Add Desktop<\/h2>\n\n\n\n<p>Add a LXDE Desktop to Linux by running the commands (*add sudo if necessary)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install lxde\napt update --fix-missing\napt upgrade --fix-missing<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Windows X Server<\/h2>\n\n\n\n<p>Download and install the VcXsrv Windows X Server utility. The Software can be downloaded from <a href=\"https:\/\/sourceforge.net\/projects\/vcxsrv\/files\/latest\/download\">Sourceforge<\/a>.(Other X Servers are available Xming and MobaXterm. This guide will be using VcXsrv.)<\/p>\n\n\n\n<p>Set Display Settings select Select one large display and display 0<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Xserver_display_Settings.png\" alt=\"\" class=\"wp-image-1837\" width=\"497\" height=\"389\"\/><figcaption>One Large Window<br>Display 0<\/figcaption><\/figure>\n\n\n\n<p>Set Client Startup to Start no client <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"576\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/image.png\" alt=\"\" class=\"wp-image-1838\"\/><\/figure>\n\n\n\n<p>Extra settings click next and finish configuration click next, this should start a blank VcXserver window.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run Linux Inside Windows 10<\/h2>\n\n\n\n<p>Start Linux Subsytem app and at the command line configure Linux to display the desktop through the X server. Then start lxde server<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export DISPLAY=:0\nexport LIBGL_ALWAYS_INDIRECT=1 \nstartlxde<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1449\" height=\"1006\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Xserver_STARTLXDE.png\" alt=\"\" class=\"wp-image-1840\"\/><figcaption>Kali Linux WSL on top of VcXsrv <\/figcaption><\/figure>\n\n\n\n<p>The Desktop environment can be used as long as the Kali Linux WSL is open<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1455\" height=\"1000\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/10\/Xserver_LXTerminal.png\" alt=\"\" class=\"wp-image-1841\"\/><figcaption>LXTerminal in Kali Linux Desktop<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Check if Linux Subsytem is enabled Check your Build version is greater than 14393 by opening and runing power shell as administrator and type the command: systeminfo | Select-String &#8220;^OS Name&#8221;,&#8221;^OS Version&#8221; You can install a Linux desktop for Windows, as long as you have set up Windows Subsystem for Linux. To check if it &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/windows-subsystem-for-linux\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Windows Subsystem for Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1830","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1830"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1830\/revisions"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}