Think Xfce looks dated? Want a conventional Ubuntu experience? GNOME is one of the more complex — and that means more difficult to run — desktop environments, so for years people couldn't figure out how to run it on WSL 2. Any forlorn attempts to run it on WSL 2 only resulted in a smoldering heap of error messages.
Subscribe to RSS
Something along the lines of this, but a ton more errors:. The trick is to enable systemd : note that this does break a lot of stuff such as Visual Studio Code Remote. First, fire up your X server on Windows. Make sure you let it through your firewall and disable access control. If you don't get any error messages, you should be good. If you can't get this to work, try Xfce. We use optional third-party analytics cookies to understand how you use GitHub.
Learn more. You can always update your selection by clicking Cookie Preferences at the bottom of the page. For more information, see our Privacy Statement. We use essential cookies to perform essential website functions, e. We use analytics cookies to understand how you use our websites so we can make them better, e. Skip to content. Instantly share code, notes, and snippets.
Code Revisions 21 Stars 4. Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. But now you can! Requirements: WSL 2 Ubuntu Sign up for free to join this conversation on GitHub.
Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Accept Reject. Essential cookies We use essential cookies to perform essential website functions, e.
Analytics cookies We use analytics cookies to understand how you use our websites so we can make them better, e. Save preferences.A tutorial about how to run desktop environment inside Windows Subsystem for Linux. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Work fast with our official CLI. Learn more. 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. We use optional third-party analytics cookies to understand how you use GitHub. You can always update your selection by clicking Cookie Preferences at the bottom of the page. For more information, see our Privacy Statement. We use essential cookies to perform essential website functions, e.
We use analytics cookies to understand how you use our websites so we can make them better, e. Skip to content. A tutorial about how to run desktop environment inside Windows Subsystem for Linux stars 55 forks. Dismiss Join GitHub today GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up. Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit. Git stats 20 commits.
Failed to load latest commit information. View code. Installation In order to run Bash on Windows, you will need to manually: 1. Turn-on Developer Mode 2. Restart your computer 2.GitHub is home to over 50 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:. 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. The background will be working by default, i didn't nothing to that. Guerra24 thanks, it shows this error. Error constructing proxy for org.
For me only shows this: But if not load try using another terminal like xfce4, etc. Guerra24 I wonder why gnome-terminal wont start for me.Future Linux kernel updates will be released as Windows 10 software updates — which is kinda crazy when you think about it!
And the best way to do that? Add full system call compatibility, i. The crazy shows no sign of abating just yet as Microsoft will make possible to run desktop Linux apps on Windows 10 and leverage GPU-intensive tasks later this year! For now, WSL 2 is something you use from the command line in a terminal emulator like the open source Windows Terminal app Microsoft has built.
The Windows 10 May update was released in May obviously but not every device is able to upgrade right away.
Advanced and impatient Windows users can force install the Windows 10 May update, just keep in mind that you may encounter missing drivers, GUI glitches, or other hardware hiccups if you go this route. You can check your Hyper-V support to be sure. Regardless of which version of WSL you want to use you first need to enable it.
To do this open the PowerShell tool as an Administrator and run the command below. Be careful not to mistype or leave out any character in the command:. This is separate from Hyper-V and hands some of the more interesting platform integrations available in the new version of the Windows Subsystem for Linux. With WSL and the necessary virtualisation tech all in place all that is left for you to do is pick and install a Linux distro from the Microsoft Store.
But my personal recommendation is naturally Ubuntu Ubuntu Whilst you in the Microsoft Store I highly recommend that you also install the open source Windows Terminal app. This tool is designed to give you the best possible WSL experience:.
How to Install WSL 2 on Windows 10 (Updated)
Windows Terminal on the Microsoft Store. When you installed Ubuntu or a different Linux distro a shortcut was added tot he Start Menu. The first time you run the distro things will seem a little slow. You will also be promoted to set a username and password for use on the distro. Let me know if this guide worked for you in the comments! How To microsoft windows windows 10 WSL.Windows Subsystem for Linux has two different versions to choose between during the installation process.
WSL 2 has better overall performance and we recommend using it. If your system does not support WSL 2, or you have a specific situation that requires cross-system file storage, then you may want to stick with WSL 1. You must first enable the "Windows Subsystem for Linux" optional feature before installing any Linux distributions on Windows.
We recommend now moving on to step 2, updating to WSL 2, but if you wish to only install WSL 1, you can now restart your machine and move on to Step 6 - Install your Linux distribution of choice. To update to WSL 2, wait to restart your machine and move on to the next step. Or enter the ver command in Windows Command Prompt.
Update to the latest Windows version in the Settings menu. Your Build number must be See the troubleshooting instructions. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo find "System Type". Run the update package downloaded in the previous step. Once the installation is complete, move on to the next step - setting WSL 2 as your default version when installing new Linux distributions. Skip this step if you want your new Linux installs to be set to WSL 1.
The update from WSL 1 to WSL 2 may take several minutes to complete depending on the size of your targeted distribution. Follow these instructions to uninstall and remove any legacy distributions.
If wsl --set-default-version results as an invalid command, enter wsl --help. If the --set-default-version is not listed, it means that your OS doesn't support it and you need to update to versionBuild or higher. If you see this message after running the command: WSL 2 requires an update to its kernel component. You still need to install the MSI Linux kernel update package. Open the Microsoft Store and select your favorite Linux distribution.
The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for a minute or two for files to de-compress and be stored on your PC.
All future launches should take less than a second. You will then need to create a user account and password for your new Linux distribution. You've successfully installed and set up a Linux distribution that is completely integrated with your Windows operating system! Learn more. Install Windows Terminal. You can check the WSL version assigned to each of the Linux distributions you have installed by opening the PowerShell command line and entering the command only available in Windows Build or higher : wsl -l -v.
You can change back to WSL 1 at anytime by running the same command as above but replacing the '2' with a '1'. Additionally, if you want to make WSL 2 your default architecture you can do so with this command:. Below are related errors and suggested fixes. Refer to the WSL troubleshooting page for other common errors and their solutions.
If you set it as you did, then you will get Error: Can't open display: 0.
There is no need to use the IP address. This may affect performance, and have other undesired affects. Sign up to join this community. The best answers are voted up and rise to the top. Asked 2 months ago. Active 2 months ago. Viewed times. Sameer Iyengar Sameer Iyengar 1 1 1 bronze badge.
I have added an answer. If you want more then you will have to show us what you did: add a transcript of what you typed, and of the results. Active Oldest Votes.
You should not need the IP address, and there may be undesired effects of using it. There was a type in the original, that was fixed when you switched to IP form.
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. Podcast Ben answers his first question on Stack Overflow. The Overflow Bugs vs. Featured on Meta. Responding to the Lavender Letter and commitments moving forward. Related 4. Hot Network Questions.
Question feed.We were very happy to find that all of our transportation was on time (mostly early) and comfortable. The guides were friendly and answered any questions that we had. They were very knowledgeable about the area of the tour. All of the needed paperwork was in order and we had no problem with any of the vouchers. We had a lot of fun while visiting Iceland and we would definitely recommend your services to friends and family.
Christine really liked the horseback riding and the rafting that we did. I also enjoyed those activities but my favorite was the highland tour (our guide was awesome!. Sorry I don't remember his name) and I also enjoyed the ATV tour. Thank you for standing by your services and delivering what was promised. If you are a first time visitor to Iceland, and are unsure the best way to go about booking your hotels, must see views, and for peace of mind, this company is the way to go.
The hotel was clean, comfortable and had friendly staff. The tours were very well organised and informative without overloading us with information. Nordic Visitor ensured that we had a smooth uneventful stay.
We were greeted warmly by Harold at the airport and taken to the Blue Lagoon. Harold also gave us our Welcome Pack and took us to our hotel. All the tours that were booked ran to time and the drivers and guides were very friendly and helpful.
It was simple to book our return trip to the airport so there were no worries. Overall a very satisfactory short break. We booked a 9 day full circle self drive. Having someone book everything for you was a big help. We were met at the airport by a very helpful driver with a welcome pack and mobile phone.
The car rental company picked us up the next morning and then off we went. Route 1 was easy to drive around and we saw some amazing scenery on our route. Accomodation was basic with shared bathrooms on the package we chose but they can be pgraded to private. We felt the experience to be a very good experience.
From the start of our query re: taking a holiday in Scandinavia Irja was very helpful - she was quick to respond to our queries and was always polite and helpful. Our trip was organised to our expectation and in some cases exceeded our expectationTickets, everything went without a hitch and we were able to find our way around all the countries that we visited and thoroughly enjoyed ourselves.