0145.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install a Desktop Environment on Windows Subsystem for Linux (WSL)</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Windows,Linux,Ubuntu,Debian,WSL,Subsystem,Linux On Windows,Desktop Environment,User Interface,UI,Home Lab,Home Lab Ideas,Install Guide,Windows Subsystem For Linux,WSL Desktop,WSL Desktop Environment,WSL Desktop GUI,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install a Desktop Environment on Windows Subsystem for Linux (WSL)">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="01/07/2023 09:48:37 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install a Desktop Environment on Windows Subsystem for Linux (WSL)</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Download VcXsrv <a href="https://sourceforge.net/projects/vcxsrv/" target="_blank">Download</a></li>
  27. <li>Install VcXsrv</li>
  28. <li>Launch WSL environment</li>
  29. <li>Run the following commands in the WSL terminal to install the lightweight LXDE desktop environment
  30. <div class="codeBlock">sudo apt-get install lxde<br />
  31. export DISPLAY=:0<br />
  32. export LIBGL_ALWAYS_INDIRECT=1</div>
  33. </li>
  34. <li>Run VcXsrv</li>
  35. <li>Select how to display the Linux environment (Windowed, Full Screen, etc)</li>
  36. <li>Select No Client</li>
  37. <li>Click Next to accept the default values</li>
  38. <li>Click the Save Configuration button and save the .xlaunch configuration file</li>
  39. <li>Click Finish</li>
  40. <li>Back in the WSL terminal run the following command to launch the LXDE desktop environment
  41. <div class="codeBlock">startlxde</div>
  42. </li>
  43. <li>Enjoy your Linux desktop environment running natively on Windows</li>
  44. </ol> </div>
  45. </div>
  46. </body>
  47. </html>