WSL enables Windows users to run native, unmodified Linux command-line tools and apps directly in Windows, alongside all their favorite Windows apps and tools. WSL usage has grown enormously from initially just a few thousand people downloading the first preview build to more than 3.
However, we wanted WSL to do more — to run all Linux apps and tools, and to run apps and tools faster. This means that WSL 2 delivers full system call compatibility with a real Linux kernel and is x faster compared to earlier versions of WSL. Following a successful preview period, Docker has announced that Docker Desktop for Windows will now default to run atop WSL 2 when installed on the Windows 10 May update, which will bring Docker Desktop to Windows Home users as well.
Soon you will be able to simply install WSL by entering: wsl. This command will be added to every Windows machine so that all you need to do is open a Terminal window elevated with administrator privileges and run wsl.
From there the WSL optional components will be enabled, and your specified distro will be downloaded and installed for you automatically upon restart. You can expect to see initial releases of this feature in the next few months in the Windows Insiders Fast Ring.
WSL 2 brings significant improvements and we found that the majority of our users on Insider branches are using WSL 2 distros.
When developing wsl. This change will be released to the Windows Insiders Fast ring in the next few months. For all the details of what this change means and how it was made possible, please read the DirectX Developer blog post.
One of our other most prolific requests is to support not just command-line apps, but Linux GUI apps as well. Our goal is for you to be able to run Linux GUI apps on your desktop seamlessly alongside your Windows apps.
This will enable you to use Linux apps to edit, build, and run your code, visualize data plots in Python, or even use applications that are optimized for a Linux environment. You can follow me on Twitter craigaloewen or members of the WSL team that are on Twitter for any news there as well. Thank you for supporting WSL! Comments are closed. Great news! I usually use wsl2 with sshfs to get SFTP Support in the explorer, not the best solution but it works!
In Windows, the full GPU memory is not available to a process, unlike Linux which has full access to the memory. Has anyone even tried this thing in reallife development? I really tried with 2 clean installations, the result was the same.If you want to know how to install WSL on Windows 10please check the following post:.
The first step is to install the third-part display manager called VcXsrv Windows X Server available at:. During setup is important to disable the access control to avoid the permission denied error when trying to run a GUI application:. It is necessary to run the following bash command to load the correct IP address on launch:. For more details about how to enable the xfce-panel steps, please check:. X X Server App supports sound on Ubuntu If you are using X, please following the steps available at:.
I only had to change the third step to use auth-anonymous instead of the auth-ip-acl :. The first thing that you need to do is to install a Linux Desktop Environment. I will user Xfce as it is a lightweight one.
If you are using both the approaches described here, i. Please switch to xfce4 and close the opened Apps or do a sign out to close the Apps. Please let me know if it helped. However, be very careful about security because in this case vulnerabilities in Linux could affect Windowsso be careful and make sure you always have the latest update. I faced this once, but for me this happened because I forgot some Apps opened in the xrdp session. Other thing that you could try to do, is to restart the XLauncher App.
I've reinstalled the VcXsrv and it's working now. But there are still some minor problems, such as network access failures. However, RDP login still has a problem, enter the account password will be ejected and no error message. I noticed someone else was having the same issue, I tried reinstalling VcXrsv, but I still get the same error.
Kali Linux gets a GUI desktop in Windows Subsystem for Linux
I went into Windows Firewall and gave VcXrsv an exception to both public and private networks. I am really glad that you made it work! I will update the post with this information. I have confirmed that VcXsrv is running and working enough to start xcalc from the windows tray menu. Running ip a from within WSL, I see an inet address for eth0.
Is this the one you're referring to? To clarify, xcalc only works when run directly from VcXsrv menu in windows tray, not when run from WSL prompt. I am currently using ConEmu if that's relevant. Updating the. I'm a dummie. Just to save time on googling to other Ubuntu newbies like me: I had only terminal with no GUI originally. Note that I had to switch to super user rootbecause of the 'permission denied' error for my regular user student :.The Kali Linux Team is harnessing the power of the Windows Subsystem for Linux 2 by spawning a graphic desktop environment that is shown directly within Windows.
When the Windows Subsystem for Linux was first released, it utilized a Linux-compatible kernel that translated Linux systems calls into system calls that could be executed by the Windows kernel. In addition to providing native compatibility and performance benefits, WSL2 also allows the launching of Windows executables directly from within an installed WSL Linux distribution. Getting started with Win-Kex is super easy, but you first need to install the Windows Subsystem for Linux and be running on Windows 10 version When done, open a command prompt and confirm that the Kali Linux distro is using WSL version 2 by entering the following command:.
If the above command shows Kali Linux as version 1, you need to upgrade it first to version 2 using the following command:. When upgrading the distro to WSL2, you may be prompted to download and install the latest Linux Kernel, which you should do. You can then enter the wsl -l -v command again to confirm that Kali Linux is now configured as a WSL2 distribution.
Now launch Kali Linux and run the following commands to prep the distribution with the latest updates and required files. The above command will install many packages, so please be patient while it performs the install. Now that the system is prepped, you will have a new ' kex ' command that you can use to access the Kali Linux GUI desktop.
From there, you can launch whatever penetration testing or research tools you wish, directly from the GUI desktop running within Windows. Microsoft fixes WSL 2 breaking bug in new Windows 10 update. Windows Subsystem for Linux 2 bypasses the Windows 10 Firewall.
Microsoft: Fix for Windows Subsystem for Linux 2 error coming soon. Windows 10 now lets you mount Linux ext4 filesystems in WSL 2. I did this, and it ran awesome at first, then I tried to exit Kali.
Microsoft is bringing Linux GUI apps to Windows 10
I logged out because the shutdown button was greyed out. Then the screen went black. I was able to ctr-alt-del and get the task manager to exit out of TigerVNC.
Now when I try to get back in to the kex, I get an error saying "unable to connect to socket: No connection could be made because the target machine actively refused it.
Ran into a similar issue. When you close the client, the server is still running.
First do 'kex stop' and then you run 'kex' by itself to restart the server and conect to it again. But how can we configure it so that it starts as windowed instead of full screen?
I tried setting it up when you press F8 but it doesn't seem to want to retain my changes. I just keep running into dpkg issue after dpkg issue. Time for Round 2 Failed again. I give.If you use Linux without a Desktop Environmentyou just have a terminal to communicate with Linux kernel which is good when you work with servers but when you are developing software you almost always need IDE, web browser, and several other tools and utilities, because of these GUI applications you need to install a Desktop Environment like Gnome, KDE and … which provide a window manager and some other important components like Windowing systemDisplay server and … to show the GUI and manage interaction with users.
By WSL 2 Windows Subsystem for LinuxYou have a real Linux kernel inside a lightweight utility virtual machine VM that completely integrated with windows and you can install your favorite Linux distribution on top of it and run Linux binary on Windows.
WSL 2 is fast you can see my benchmark in my previous post:. For now, we have two choices:. What do we have to do if we don't want to run Linux GUI applications from the command line? You can pass Linux commands directly to the wsl. We are going to reuse this script to create several shortcuts. This file has to create beside the wsl-app-runner. This Visual Basic script file is executable and also allows us to hide the command line.
In this script, we use wsl-app-runner. If you want you can select an icon for this shortcut in the file properties. Now you can search this application in the Start menu and open it by just one click.
If you just repeat steps 2 to 4 for any new Linux GUI application that you have installed on your WSL 2 distribution, you can run it easily. As you can see in the following photo I run gnome-system-monitor application and you can see firefox memory usage in it. If you a going to use Linux GUI applications like Firefox or IntelliJ Idea which you have installed on your WSL 2 distribution every day this approach allows you to integrate those applications with Windows 10 Desktop Environment and you can easily run and use them.
Sign in. Saeed Zarinfam Follow. Written by Saeed Zarinfam Follow. More From Medium. Angular Refactoring Examples. Go Modules Done Better.
Effective Automation Tests. Ten Commandments of Git Commit Messages. Discover Medium. Make Medium yours. Become a member. About Help Legal.Running Linux alongside Windows has proven to be increasingly useful over the years. But dual-booting can be difficult to manage while setting up a virtual machine comes some stability issues. One solution is to use the Windows Subsystem for Linux, but this comes without a desktop environment. So, why not just install the Linux distribution you own?
This is an optional feature that can be easily installed, which supports the installation of the Linux operating systems available in the Windows Store. It basically means that you can open a Linux terminal in Windows and install and run Linux software.
The problem with Windows Subsystem for Linux, however, is that it is purely a command line experience. There is no desktop. For power users, this probably won't be a problem, but as Linux has a wide selection of desktop environments, it does seem a bit of an oversight. Fortunately, you can now install a Linux desktop in Windows, as long as you have first set up the Windows Subsystem for Linux.
Before proceeding, here's the important bit: you need to be running a bit version of Windows. To proceed, this should read "bit operating system". If not, and you're running bit hardware, you'll need to upgrade Windows 10 from bit to bit. Is your Windows 10 installation limited to 3. We show you how to upgrade to bit, so you can finally enjoy advanced features and performance.
Another prerequisite is that you need to be running Windows 10 build or later. You can check this in the same About screen, listed under Windows specifications. If not, simply run a Windows Update.
Once Windows 10 is compatible, it's time to follow our guide to installing the Windows Subsystem for Linux. If you have set up the Windows Subsystem for Linux already, click Start and enter bash.This blog post highlights the WSL updates being made over the past few months, in addition to some sneak previews of our upcoming features and future plans.
Read more about these updates, including how to ensure your machine has them, in the blog post announcement. We are getting closer to an initial preview and happy to announce a preview release for Windows Insiders within the next couple of months.
We have included lots of fit and finish details, such as showing the icons for Linux apps in the task bar and support for audio with your microphone and yes, that really is the Linux version of Microsoft Teams running in WSL. Stay tuned for more details about this feature coming soon. The first iteration of this feature is currently available in Windows Insiders.
Within the next couple of weeks, the --install argument will include the ability to install WSL distros, meaning you will be able to fully set up WSL on your machine, along with your chosen distro, with just one command.
You can also navigate to these files inside of Windows File Explorer. To learn more about this feature read the WSL 2 mount disk doc or announcement blog post. Read more about this change and how to get started in our docs: GPU accelerated machine learning training. You can learn more about this change on the announcement blog post. Earlier this year, we announced that the Linux kernel in WSL 2 will be serviced out of the Windows image.
This means you can have greater control over your Linux kernel version, as well as your Windows version, enabling you to stay safe and secure as Windows keeps you up to date. The new kernel versions are no longer only for Windows Insiders, now any device that has WSL enabled and has opted in to Microsoft Updates will automatically receive the latest kernel version!
Find our Linux kernel release history on the WSL docs. Let us know what you think about these changes via Twitter, you can follow me craigaloewen and find all the WSL team members in this twitter list. If you run into any issues, or have technical feedback and feature requests for our team please file an issue on our WSL repo in Github. Log in to join the discussion.
Or am I being too pessimistic here? Today I got an update to the Linux kernel on one PC but not on the other. Is the rollout staged or could there be some other issue? I would like to know if Chinese input methods for windows can be used directly in Linux GUI applications?
The windows explorer screenshot with the tall giant disgusting uwp address bar is just awful. Please share your experiences with me through the 3sotweb. Serial and USB serial support is still high on my wish list. I see this also has many up votes any updates on E. There are lots of new upgrades and features while in the Windows Subsystem for Linux that I did not have the time to say within this short post. However, these characteristics are very useful to anyone who makes use of Linux as their main operating system.
By way of instance, should you use Linux and use your own email program, you are aware the apps will start quickly whenever they start. The programs will load very quickly and there is absolutely no delay whatsoever.
This is quite distinct in the Windows OS, at which there is a great deal of delay before it loads whenever you open a file. Another terrific feature is the power to run numerous copies of Windows in your own system and also to do so securely. The reason why that this works is the fact that all time you reboot your personal computer, your Linux machine is running in another partition.
It only takes a minute to sign up. I searched around, and currently there are two methods suggested; installing an enhancement for Windows Subsystem for Linux and installing an XServer. I want to know which method is the most hassle-free easy to install AND to useand which one is less memory-heavy.
The short answer is you can not as WSL does not yet support this function. I did not copy that tutorial here as it is fairly ubiquitous X over ssh and I would expect some apps simply will not work even with this technique. Installation is straight forward. As of March 17, you can simply accept the defaults.
This then allowed me to run gedit and nautilus. When I want to try many of my Ubuntu bash scripts within WSL VcXsrv must be installed so zenity and yad x-windows dialog boxes are displayed for user input. I did not focus on running Unity desktop as it is useless and resource consuming. Install VcXsrv from here on Sourceforge. Run the VcXsrv app directly, do not launch XLaunch. You should see localhost If someone knows how to run gnome-terminal on XServer instead of XTerm please share S You can add VcXsrv as a Win10 bootable.
Although you will run "Steam" under "Unix" the shell is still "Windows" which allows you to launch "Steam" on "Unix" ….
Using WSL 2 to run Linux GUI applications in Windows 10 with a shortcut
Here you need to go through the list of sub-keys to locate the network adapter entry that is used to connect to the Internet. Double-click the value afterwards and set its Decimal value to 1.
Double-click it afterwards and change its Decimal value to 1. To restore the key at a later point in time change it to 0 or delete the key. This is designed to improve throughput efficiency of data transmission.
To implement this tweak, modify the following registry keys. Windows implements a network throttling mechanism, the idea behind such throttling is that processing of network packets can be a resource-intensive task.
It is beneficial to turn off such throttling for achieving maximum throughput. In the same Registry hive as the above tweak, you can also change the priority of Games.