![]() ![]() To launch your bashrc file in the editor, enter: gedit ~/.bashrc Install GIMP Gedit is the default text editor of the GNOME desktop environment. Update the packages in your distribution sudo apt update To request additional support, you can file an issue in the WSLg repo on GitHub. It relies on Windows desktop, so installing desktop-focused tools or apps may not be supported. Support for GUI apps on WSL does not provide a full desktop experience. You can restart WSL by running the shutdown command in PowerShell. You will need to restart WSL for the update to take effect. Select Start, type PowerShell, right-click Windows PowerShell, and then select Run as administrator.Įnter the WSL update command: wsl -update If you already have WSL installed on your machine, you can update to the latest version that includes Linux GUI support by running the update command from an elevated command prompt. You're now ready to begin using Linux GUI apps on WSL!įor more info check install WSL. This will be your Linux credential for the Ubuntu distribution. ![]() Once your machine has finished rebooting, installation will continue and you will be asked to enter a username and password. You can now install everything you need to run Windows Subsystem for Linux (WSL) by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine. This will enable you to use a virtual GPU (vGPU) so you can benefit from hardware accelerated OpenGL rendering.įresh install - No prior WSL installation To run Linux GUI apps, you should first install the driver matching your system below. You will need to be on Windows 10 Build 19044 or Windows 11 to access this feature. Install support for Linux GUI apps Prerequisites You can now integrate both Windows and Linux applications into your workflow for a seamless desktop experience. Cut Paste across Windows and Linux apps.Use alt-tab to switch between Linux and Windows apps.Launch Linux apps from the Windows Start menu.WSL 2 enables Linux GUI applications to feel native and natural to use on Windows. You can install multiple Linux distros on Windows 10/11 and run them simultaneously in different WSL spaces.Windows Subsystem for Linux (WSL) now supports running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience. Then you can run graphic Linux apps in WSL using the commands: Then create a file in the root directory:Īdd the following line: export DISPLAY=$(cat /etc/nf | grep nameserver | awk ''):0 For example, a browser, a text editor, or anything else: Use the apt-get package manager to install graphic apps. To run graphic apps in Linux, download and install VcXsrv Windows X Server ( ) on Windows. However, you can try to install and use them. You can display network settings (an IP address) of your WSL subsystem:Īpps with graphic interfaces don’t work in WSL. The screenshot below shows that both MC panels display the list of files from both OSs. You can run Midnight Commander both in Bash and in CMD. To make it more convenient to copy files, view directories and their contents, install Midnight Commander using the following command: You can update the list of Ubuntu packages from the console using the following commands:Īfter the update, the …/LocalState folder will take up 1.5 GB.įrom the Linux command prompt, you can view Windows files and folders, and access them. You can also open Windows Explorer using explorer.exe, Calculator (calc.exe), Notepad (notepad.exe), Paint (mspaint.exe), Calendar (cal), and Weather ( curl wttr.in).Īnother useful feature: you can open a WSL file from Windows using its system path. For example, to view the list of files and folders in your Windows directory, run the following commands: WSL has common commands for Bash and CMD, and you should remember that Linux is case-sensitive. To run commands as root, use an additional key (prefix): sudo. The first time you run the image, you will be prompted to create a user and password. You can also start WSL using the wsl command. To start Ubuntu, open the Start menu, click its icon and the Bash shell will open. A virtual hard disk file with the OS Linux Ubuntu 20.04 is located in the user profile: C:\Users\username\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState.Īfter the distribution has been installed, its icon appears in the Start menu.
0 Comments
Leave a Reply. |