No account, login, license server negotiation, nor payment required. Some of these you can even get running on top of WSL. On Linux, graphical programs are historically drawn by talking to a display and windowing server simply called X or X However, third-party open-source developers are awesome and have had working X servers running on top of Windows for years! Because X can do that.
No one has had time to iron out the bugs caused by the unique nature of this setup. On the X server-side, I ended up using Cygwin Xbut you should have similar luck with the much simpler vcXsrv. Download and install the window server like any other Windows program, then find and start vcXsrv from the Start menu. Then jump over to Bash and let it know about the new X server by running the command:. This is enough to run some of the simpler programs: Classic toys like xclockxcalcand xeyes work fine.
Even some modern and classic GNOME programs will run mostly fine if you attempt to start them two—three times. Including, most surprisingly, the gnome-control-center! The venerable xeditor and SciTE text editors also run fine. Things start to fall apart if you try to get more ambitious, though. R works until you try to plot anything, then crashes. Xemacs21 pops up a window for a fraction of a second, then crashes. The Liferea RSS reader manages to fetch feeds, but crashes when you try to look at one.
No KDE programs work — they are all completely dependent on dbus. I should mention that several of the aforementioned crashes were generic Linux segfaults and the like.
I tried to look into those with gdb the GNU debuggerbut it was unable to properly start the process to be debugged — I suspect it would work on single-threaded programs, but anything graphical is likely to be multithreaded.When Microsoft first announced bash on Windows and brought Linux inside Windows as Windows Subsystem for Linux popularly known as WSLfew would have thought that the next step would be to bring the real Linux kernel inside Windows operating system.
But Microsoft has just done that. Among several other announcements at the Microsoft Build conference, it announced bringing the real Linux kernel to Windows 10 for WSL. It allows many Linux programs mainly the command line ones to run inside Windows.
These Linux distributions are available in Windows 10 Store. It has been optimized for size and performance to give an amazing Linux experience on Windows.
We will service this Linux kernel through Windows updates, which means you will get the latest security fixes and kernel improvements without needing to manage it yourself. WSL 2 also allows Windows to run docker containers natively. You probably already know that Docker and Linux containers are the backbone of the IT industry these days and most of the software deployments take advantage of the Linux containers.
The Linux kernel will get security fixes, kernel improvements and other updates through Windows updates. Does this mean Linux kernel will start upgrading in the middle of work like Windows updates? That remains to be seen. WSL 2 will be available through Windows insider program by the end of June. Windows insider program is sort of a beta program for early adapters and developers to try out the upcoming Windows features before its final release.
Microsoft is infamous for its Embrace, Extend, Extinguish policy. The Linux community is behaving like a teen-aged girl madly in love with a brute. Who benefits from this Microsoft-Linux relationship? Clearly, Microsoft has more to gain here. The WSL has the capacity of shrinking desktop Linux to a mere desktop app in this partnership. By bringing Linux kernel to Windows 10 desktop, programmers and software developers will be able to use Linux for setting up programming environments and use tools like Docker for deployment.
Linux kernel will continue to grow in the IT infrastructure, thanks to the efforts of Linux Foundation backed by the enterprise giants for their own interests. The desktop Linux will unfortunately see a decline. Out of the millions it gets, literally nothing goes for the development of desktop Linux as far as I know. Microsoft loves Linux. Microsoft loves Open Source. Not enough demand? So, were people signing petitions or holding yellow jacket protests for open sourcing Windows calculator?
Microsoft is one of the biggest contributors to open source project on GitHub platform now owned by Microsoft. I am an avid Linux lover and open source enthusiast.
I use Ubuntu and believe in sharing knowledge.This blog post is a preview of life with the Windows 10 Fall Update. I hate, hate, hate the touch bar. I need a good keyboard and gosh darn it, an escape key. The Surface Book 2 has a stylus, touch, and a great keyboard. But it runs Windows.WSL2: Code faster on the Windows Subsystem for Linux! - Tabs vs Spaces
Cue me wasting my free time trying to get Ubuntu working natively on Windows. Or iTunes. Or OneNote and the stylus. Plus you should never store your files in the Linux side on WSL 1. The WSL 1. So most of the time I ran in native Ubuntu for my day job and flipped over to Windows to read something on my Kindle, take notes, etc.
A bit of a mess. WSL 2. It provides a more native Linux experience for windows developers than WSL 1, with the following major upgrades:.
Installation Instructions for WSL 2
The ability to natively edit files under Linux, launch Docker for Ubuntu, even run Linux development tools is so much better than running Docker for Windows and getting bogged down in the Windows development universe.
The speed overall is just about what it is in native Linux for me for the most part. For example, that time when I had a talk to give at a conference and somehow the Windows build started crashing on a graphics card related issue.
On a Surface Book 2. Let that sink in: in lateMicrosoft blew up the Graphics Card driver for GTX on its own laptop line while building the next generation of Windows. So your mileage may vary. Do you…want it to hurt me, Kevin? To set up WSL 2, first you have to join the Fast Ring of Windows updates, which delivers a version of Windows compatible with this feature.
Ok, go for it. This will require you to install the Hyper-V Platform and tooling and reboot first. In that CMD dialog, type the following:.
Next, install a Linux instance from the Windows Store yes, you read that right, from the Windows Store.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. I have successfully installed WLS ubuntu 18 on windows 10 machine.
I want to access its UI features using TightVnc. With default settings the. I installed gnome and changed xstartup file to the following suggested by someone on the web. But when I start vncserver after making these changes, I am able to connect but it shows a grey screen with no visual controls like Please note that I had no.
Xresources file on my machine so I created an empty one manually but it made no difference. I can see some errors in. Below are the contents of this file. This is indicated in this similar question.
Note: This subsystem WSL is not capable of running all Linux software, such as bit binaries, or those that require specific Linux kernel services not implemented in WSL. It is possible to run some graphical GUI applications such as Mozilla Firefox by installing an X11 server within the Windows host environment such as VcXsrv or Xmingas mentioned above although not without caveats, such as the lack of audio support or hardware acceleration resulting in poor graphics performance.
IMHO this exercise is more work than it's worth. It's far prefereable to simply run Ubuntu on a VM or dual-boot than to deal with the possibility that the Linux system calls an application requires may not be fully supported by the Windows Subsystem for Linux.
I use VcXsrv because it's free and is frequently updated. See my answer here:. Ubuntu Community Ask! Sign up to join this community.
The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. Asked 1 year ago. Active 11 months ago. Viewed 3k times. I installed gnome and changed xstartup file to the following suggested by someone on the web! What can I do to make default ubuntu 18 deskto work with TightVnc viewer from windows? Active Oldest Votes. It's been reported that you can obtain possibly successful results by 1 Installing an Xserver like Xming or VcXsrv. Elder Geek Elder Geek I was more interested in having something similar to VM environment.
I don't care if some applications don't work. What I am interested in is 64 java and python with anaconda. For now, I am running anaconda from bash shell and accessing it using jupyter notebook.
I hope this answer was useful to you. I was hoping to get something like VM environment. As you can see from my question, I was able to get a desktop that is perhaps default for tightvnc. I would like to have gnome-desktop there if possible. Alternately, I would prefer more decent desktop than you can see in my question.Full documentation about WSL 2 is available on our docs page.
Here are the two most important changes in this initial preview. Make sure to put the files that you will be accessing frequently with Linux applications inside of your Linux root file system to enjoy the file performance benefits. We understand that we have spent the past three years telling you to put your files into your C drive when using WSL 1, but this is not the case in WSL 2. To enjoy the faster file system access in WSL 2 these files must be inside of the Linux root file system.
We have also made it possible for Windows apps to access the Linux root file system like File Explorer! Try running: explorer. WSL 2 includes a huge architecture change using virtualization technology, and we are still working on improving the networking support.
We aim to include the ability for WSL 2 to access network applications with localhost as soon as we can! You can find full details and steps on how to do this in our documentation here.
There could be cases where you would want to shut it down manually, and this command lets you do that by terminating all distributions and shutting down the WSL 2 VM. This command is useful for scripting since it will only output the names of distributions you have installed without showing other information like the default distro, versions, etc.
This command lists the name of each distro, what state the distro is in, and what version it is running. It also shows which distributions is default with an asterisk. You can expect to get more features, bugfixes, and general updates to WSL 2 inside of the Windows Insiders program.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Installation Instructions for WSL 2
Or do I need to use a different distro? First, you have to install a "X Window System" port for Windows. I recommend you to use VcXsrv. After that's done, you should make sure that gnome is installed because, as far as I know, the wsl version of Ubuntu doesn't ship with any gui apps, including gnome, and you do that by typing sudo apt install gnome gnome-session in the terminal.
Open Xlaunch which you installed earlier on your Windows host and select "One large window" or alternatively "Fullscreen" and replace the -1 with a 0.
Subscribe to RSS
Then just hit enter a few times until a big, black window opens. Wait a bit and you should be able to see the desktop in the xlaunch.
Sign up to join this community. The best answers are voted up and rise to the top.
Home Questions Tags Users Unanswered. Asked 2 years ago. Active 7 months ago. Viewed 8k times. Lightman Lightman 41 1 1 silver badge 3 3 bronze badges. Sort of. It is possible. Me submitting an answer is impossible for another 2 weeks. Somebody with 10k reputation can generate an answer from my previous comments to the now deleted answer.
Active Oldest Votes. Install the packages if you don't have them already. SkyyySi SkyyySi 11 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.Being able to seamlessly run Linux on Windows is making a bunch of common development tasks easier.
It's a utility VM, but it's one you're aware of. However, if WSL2 runs a real Linux kernel in Windows 10 and it's managing a virtual machine platform underneath and not visible to Hyper-V client tools, then why not just let WSL2 handle containers for us? And just like WSL 2, it's fast. It takes less than 2 seconds to start the Docker daemon when compared to tens of seconds in the current version of Docker Desktop. You can see there's two contexts, and I've run "docker context use wsl" and that's now my default.
They are the same! Here I am using PowerShell Core which is open source and cross-platform, natch to manage my builds which are themselves cross-platform and I can run both a docker build or a metal build on both Windows or Linux, all seamlessly on the same box. Also note, Simon from Docker points out "We are using a non default dataroot in this mode to avoid corrupting a datastore you use without docker desktop in case something goes wrong.
Stopping the docker desktop wsl daemon and restarting the one you installed manually should bring everything back. So far I'm super impressed. Linux on the Windows Desktop feels right. It's Peanut Butter and Chocolate. Sponsor: Looking for a tool for performance profiling, unit test coverage, and continuous testing that works cross-platform on Windows, macOS, and Linux?
Check out the latest JetBrains Rider! Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author. Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. Blog Home Dotnet Depends is a great text mode deve About Scott Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee.