![]() This will launch the WSL 2 VM, launch the Ubuntu WSL distro in that VM and give you a terminal to interact with it. If you have installed the Ubuntu Linux distro per these instructions, you'll find an Ubuntu icon in your start menu, launch it. If WSL was currently running, it will shutdown, make sure to first save any in progress work! WSL will be automatically restarted the next time you launch a WSL application or terminal. You can restart WSL by running wsl -shutdown from an elevated command prompt. You'll need to restart WSL for the changes to take effect. To update to the latest version of WSL and WSLg released for preview, simply run wsl -update from an elevated command prompt or powershell. ![]() You can list your currently installed distro and the version of WSL they are configured for using the following command from an elevated command prompt. While you can continue to run Linux distro in WSL 1 mode after installing WSLg if you so desired, a distro configured to run in WSL 1 mode will not be able to communicate with WSLg and will not be able to run GUI applications. Verify that your Linux distro is configured for running in WSL 2 mode, if not switch to WSL 2. Please note that WSLg is only compatible with WSL 2 and will not work for WSL distribution configured to work in WSL 1 mode. If you have an existing WSL installation without WSLg and want to update to the latest version of WSL which includes WSLg, run the command wsl -update from an elevated command prompt. Voilà! WSL and WSLg are installed and ready to be used! Install instructions (Existing WSL install) These will be your Linux credentials, they can be anything you want and don't have to match your Windows credentials. You'll be asked to enter a username and password. Install instructions (Fresh Install - no prior WSL installation)įrom a command prompt with administrator privileges, run the command wsl -install -d Ubuntu, then reboot if prompted.Īfter reboot the installation will continue. Make sure to update your graphics driver to the latest driver available from your GPU manufacturer's website to benefit from GPU acceleration in your WSL environment. It is highly recommended to use the Microsoft Store version of WSL, which supports both Windows 10 and Windows 11, and contains the most up to date version of WSL and WSLg. ![]() WSLg is available both as part of the Windows 11 WSL inbox support as well as through the Windows Subsystem for Linux from the Microsoft Store. Windows 10 users must ensure their Windows 10 installation is fully up to date by visiting Windows Update and installing all available updates. WSLg is supported on both Windows 11 and Windows 10. From integration into the Start Menu for launch to appearing in the task bar, alt-tab experience to enabling cut/paste across Windows and Linux applications, WSLg enables a seamless desktop experience and workflow leveraging Windows and Linux applications. WSLg strives to make Linux GUI applications feel native and natural to use on Windows. While users can accomplish this today using a multiple system setup, with individual PC dedicated to Windows and Linux, virtual machine hosting either Windows or Linux, or an XServer running on Windows and projected into WSL, WSLg provides a more integrated, user friendly and productive alternative. WSLg provides an integrated experience for developers, scientists or enthusiasts that prefer or need to run Windows on their PC but also need the ability to run tools or applications which works best, or exclusively, in a Linux environment. WSLg is short for Windows Subsystem for Linux GUI and the purpose of the project is to enable support for running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |