Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the functions of the new functions in the Win10 WSL Linux subsystem WSLg

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What are the functions of the new function WSLg in the Win10 WSL Linux subsystem? in order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Microsoft officially announced on Weibo a few days ago that it will bring a major update to the Win10 WSL Linux subsystem, releasing a new feature called WSLg.

It can be used to install the Linux desktop system on the Windows 10 preview. Currently, it supports five Linux distributions such as Ubuntu and Debian. It only needs one command to start the installation.

Support multiple IDE to develop Linux projects

In addition to Visual Studio Code, WSLg allows users to run other ide, such as gedit, JetBrains-based editors, gvim, etc., to test, build, and debug your Linux application in a high-performance way.

The following is an example of running gedit and gvim in WSL to edit the Linux file directly.

Run Linux applications, or Linux-specific examples, such as testing

You can also run any GUI application that may exist only in Linux, or run your own application or test in the Linux environment. This is useful for developers who want to test cross-platform applications because they can run it directly on Windows 10 and then on Linux systems without changing machines or using virtual machines.

Let's look at an example of running TestCafe Studio in WSL to do some Web testing on a Microsoft Edge browser running in Linux.

Support audio and microphone input and output

The Linux GUI app on WSL also supports out-of-the-box audio and microphone features, which will allow your application to play audio and use a microphone, which means you can build, test or use an audio and video player.

The following is an example of recording and playing back some audio using Audacity running on Linux:

Support for GPU acceleration

Most notably, WSLg supports GPU acceleration, which is officially demonstrated to run as 60fps in Gazebo 3D software.

Operation principle of WSLg

From the above demonstration, you may have noticed that we do not need to start the server manually, but automatically launch a matching system distribution, including Wayland, X server, pulse audio server, and everything else we need to get Linux GUI applications to communicate with Windows. Also, when you close the WSL distribution, the system distribution will automatically end its session.

The following figure shows the overall architectural design of WSLg:

Currently, WSLg supports the following distributions:

Ubuntu

Debian GNU/Linux

Kali Linux Rolling

OpenSUSE Leap 42

SUSE Linux Enterprise Server v12

Ubuntu 16.04 LTS

Ubuntu 18.04 LTS

Ubuntu 20.04 LTS

In addition, it is worth mentioning that WSLg has been supported for use in preview versions of Win10 21364 and above. If you already have WSL installed, simply type wsl-- update to update to WSLg.

At present, wslg has been on the hot list of Github, so don't miss those who are interested.

The answers to the questions about the role of the new function WSLg in the Win10 WSL Linux subsystem are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report