GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again.
The tutorial will tell you how to run desktop environment inside Windows Subsystem for Linux. And you don't need to build a developement environment with virtual machines any more. Install the lastest version of VcXsrv. Other settings leave as default and finish the configuration. Install the lastest version of Hack fonts.
Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. A tutorial about how to run desktop environment inside Windows Subsystem for Linux. Branch: master. Find file. Sign in Sign up. Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit. Latest commit 5cf5 Jul 14, Installation In order to run Bash on Windows, you will need to manually: 1.
Turn-on Developer Mode 2. Restart your computer 2. Upgrade ubuntu sudo apt-get update sudo apt-get upgrade. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Add WSL 2 tutorial. Jul 14, Add tutorial. Apr 16, Dec 19, Then, I've also shown you how you can actually run Linux graphical applications in Windows using an X11 server.
Good stuff. Essentially, the early escapades with WSL were mostly, understandably, focused on Ubuntu. However, recently, Microsoft has expanded the range of available distributions in the Windows Store, with Kali being the first edition. But since, several more systems have been added, and this calls for another review.
Start the Store - you do not need to be signed in, actually. Use "linux" as your search query. Ubuntu remains under the generic BASH category. The inclusion of an enterprise flavor is meaningful and important, as it will have implications for those looking to developer cross-platform solutions. Microsoft is doing a lot to make this easier, and entice folks their way - perhaps a lesson from their failed experiments with the mobile world.
Then, of course, you also have Powershell for Linux. All of this makes Windows more attractive to Linux developers, especially since it had absolutely zero appeal until about a year ago. I decided to test with openSUSE. Grab, install, start having fun. Like Ubuntu, there's an initial user setup. You can choose to make your user admin, and thereafter, you have a headless server - currently with limited networking capabilities - running a Microsoft-customized kernel 4.
Zypper, Yast, you name it. If you've used SUSE before, you will know what to do. All in all, similar to the Ubuntu experience. The one complaint is - Windows CLI is a bit cumbersome when it comes to marking, copying or pasting text from the command-line buffer. You need to right-click on the windows bar and whatnot.
No middle-click stuff like you'd expect. At least not yet. The default interface text size is tiny, too. I had to increase it to make it similar to the Windows stuff. Rather than just give you a bland rehash of the release notes, which is something I never do, I decided to update the system, install the full Plasma desktop plus associated KDE applications, fire up the X11 server, and then run the desktop, in parallel to some Ubuntu programs.
Starting KDE from Command Line by startx
Makes for a convincing use case, of course. All in all, this worked fine - if a bit slow.
You can cleanup manually, but that's boring. Of course, the GUI side of things still remains somewhat ugly and such, but that's because you run with no 3D acceleration. It was all right. Some errors here and there, of course. Dependency issues while installing Plasma, for starters.
I mean really? I did mention this in my openSUSE pimping guides and whatnot, and there you often get dependency conflicts when using community repos, but here? All I wanted was to install a fresh desktop in a fresh setup, with no third-party sources whatsoever, and already I'm getting weird dependency problems. Problem: kio-extras Warning: running kernel does not support fscaps. In the end, despite the various issues, we're all one happy family - the sameness of the kernel means easy, common al development.
This makes a lot of sense, and so far, it's stable and robust enough to warrant serious focus and investment.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.
Using the Windows Subsystem for Linux with Xfce 4
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.
In summary, a large swathe of programs currently fail for technical reasons that might well be fixed; another large group fail for mysterious reasons that might or might not get better and simple standalone programs, especially very old ones, mostly work. Why, you may ask? Because I could. There are two kinds of problems that will keep Linux desktop apps from running on Windows: Problems with Windows Subsystem for Linux not being a completely faithful recreation of a running Linux kernel and the Ubuntu system.
Problems with the X for Windows server not implementing everything that modern Linux programs expect. X on Bash on Ubuntu on Windows — unimaginable just two weeks ago! What unholy contraption can you get running on WSL?Officially, at the time of this writing, WSL supports only command-line applications. First step is to install a window manager. From my experience, Xfce works reasonably well with WSL:. Next, you will need to modify the. There are a few text editors that work under WSL.
I suggest to use vim or nanoe. The second command from above will open. Close and restart the console window. Next, you will need to install an X server for Windows. Download and start the installer, you can safely accept the default settings. Some readers reported an error message for the first run of the system, something about VcXsrv fatal error.
This usually means that the VcXsrv installer started a background VcXsrv process at the end. You can stop it from the Windows task manager or simply restart your computer. This happens only the first time you run VcXsrvafter a fresh installation. After reboot, start bash and XLaunch as described above.
Keep in mind that running graphical Linux applications is not officially supported by Microsoft, this means that if you find an error you are on your own.
Subscribe to RSS
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
I have installed kubuntu-desktop on my Windows Bash and xming server on Windows. I can normally start apps like firefoxbut when I try startxI get error:. How can I fix it please? Is there any method, how to create virtual tty0 redirecting to xming server or VNC client? If you're only trying to launch a graphical environment, then you don't need to run startx if you already have xming installed and configured.
Directly launch the application that you want to run.
WSL 使用指南——04 安装桌面环境
Its only for development purpose. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. Ask Question. Asked 3 years, 8 months ago. Active 3 years, 8 months ago. Viewed 3k times. Active Oldest Votes. If you want to run a graphical environment, then you should try "unity".
Thank you. Animesh Patra Animesh Patra 2, 1 1 gold badge 6 6 silver badges 13 13 bronze badges.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account.
I finally managed to run Unity inside WSL, this shows that is fully capable of running an entire Desktop Environment, there is some issues with dbus and sometimes VcXsrv crashes, also you can't logout and the only way of exiting is closing compiz. The fix for dbus is from Reddit Link to post. The only programs that can be opened are in the panel and there is no way of opening the terminal inside unity, for do this you need to open another bash in Windows, export the display and run gnome-terminalafter that the terminal will show up so lock that in the panel for future use.
EDIT 2: This not applies only for Unity, I also tested xfce4 but in this case only the dbus fix is required for running but this has more bugs. Guerra24 hi could you upload some images of you doing it please so we can follow it please. I could not get guake running Guerra Wanna give it a go? It said it failed on come kind of notification plugin for freedesktop not being available. Ok paladox. For Unity: Important: Before doing this apply the fix for dbus that i leaved before.
Install VcXsrv and open XLaunch. Leave it like this:.How to run xfce4 in WSL in windows 10
Other settings leave as default and finish the configuration. Now open bash, install ubuntu-desktopunity and ccsm. Export the display and open ccsm. Inside ccsm mouse pointer may be not visible due to icon not loaded. Enable the following plugins. Now close ccsm and open compiz. Compiz will load and seconds later unity will show up. To exit from unity close bash or kill compiz, the only way of closing unity. Thank you. Guerra24 I'm getting something to do with proxy error now.
Guerra24 hi, I'm getting this error. ERROR unity. WARN unity. Guerra24 If possible could there be a video please. Your steps are clear but seems I might be doing something wrong. Oh Guerra24 thanks, how long did it take for you to load please. Guerra24 ok, it works. How do I get the background and the terminal working please.Run PowerShell as Administrator and type:.
The next step is to install the Linux distribution of your choice. Arch Linux has recently been added to the store. At bash, type:. GUI applications will then display in X But the developers of X have compiled a useful guide that enables sound in WSL. The guide is simple to follow. I opted for Xfce, a popular desktop environments, although there are more feature laden environments available.
Check out our Survey of Desktop Environments for other alternatives. To install Xfce, execute the following command lines in the WSL shell. We also recommend creating a batch file so that X, PulseAudio and Xfce are automatically launched. Next page: Page 3 — In Operation.
Pages in this article: Page 1 — Introduction Page 2 — Installation and Configuration Page 3 — In Operation Page 4 — Other Features Page 5 — Summary Related articles Share this article Pages: 1 2 3 4 5 but why would you pay for an operating system to be able to use a free one within… there is no point….
For example, my work provides me with a Windows laptop. Running an X server lets me use my fav Linux apps on the Windows machine. This site uses Akismet to reduce spam. Learn how your comment data is processed.
Related articles. Share this article. Share your Thoughts Cancel reply.