Mirror sync in progress? The solution with XWindows provides almost native bare-metal performance in my experience. Switching back is the reverse of the process.eval(ez_write_tag([[250,250],'most_useful_com-mobile-leaderboard-1','ezslot_8',131,'0','0'])); If you try to connect any of your online accounts (such as Nextcloud) using the Ubuntu Settings app it’ll tell you that you’re not online – even though you clearly are because you can view web pages etc. WSL2 uses a kernel configured and compiled by Microsoft (by default - you can supply your own if you wish). To do that, from your WSL command prompt (or Microsoft Terminal if you used that) type the following commands;eval(ez_write_tag([[250,250],'most_useful_com-leader-1','ezslot_1',111,'0','0'])); Once it’s installed, we need to run it. We’ll automate this later to make it happen automatically when you login to Windows, because that’s pretty neat. If you don’t allow PUBLIC networks you will not get a connection as the WSL Virtual Network is considered to be PUBLIC. To do that, switch the encoding to RAW since we don’t need to reduce network bandwidth at the expense of extra CPU work. WSL2. Open Ubuntu from the start menu and and let it install. Just ran the script on Ubuntu-20.04 and I'm seeing the loop as well. I’m trying to do this on another computer and I’m getting this: Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Various parts of the desktop software expect SystemD to be present and operational and will fail if SystemD isn’t present. Your email address will not be published. Thanks to the various other people who’ve posted answers on forums about how to start WSL processes on logging in to Windows and how to get them to startup silently in a minimized command window for example. You’ll notice we’ve chosen the ‘one window without titlebar’ option here. I’ve not looked into it, other than to know that because the WSL networking is a NATted connection, it’s a bit of a pain and requires lots of Firewall manipulation using PowerShell. Xfce4 is a lightweight desktop environment that developers have been able to get working with both WSL and WSL2. Restart your VcXSrv process and you’ll get the full Surface Pro 4 resolution. When you're running WSL2 (Windows Subsystem for Linux 2) in a version of Windows 10 greater than build 18945, a BUNCH of useful and interesting scenarios light up and stuff just works. As others had commented, the /usr/lib/genie directory didn’t exist for me. That’s what this article is about – like you couldn’t guess. Run one of the commands below to install the desktop environment of your choice. By default WSL2 will use up to 80% of the available RAM (EDIT: newer WSL versions set the limit at 50%) – but that can be a bit too much sometimes. For starters open the Ubuntu terminal and create project: There’s a few things that likely require a more native looking Linux kernel and environment, which WSL1 isn’t. Click the start menu and open the Microsoft Store. E: The package lists or status file could not be parsed or opened. I have two questions. It might work under WSL1 but I suspect not. One option is to install Gnome, which is the default desktop environment in Ubuntu 20.04. So, to be able to use a name instead of an IP address – and have that name automatically update whenever WSL2 changes the IP address internally, visit https://github.com/shayne/go-wsl2-host and install his little helper application. Required fields are marked *. To configure LightDM to allow us to login using a Windows X-11 Server, follow the instructions below; And add the following contents (the file will likely either not exist or will be empty). The system I am describing requires WSL2. I’m also using the latest version of Docker Desktop, with WSL2 support. Configuring LightDM to use XDMCP is simple. Do you have a post on how to VNC to the WSL Ubuntu from another machine on a local network ? The first line should give you the IP address. I do because I’m weird. Once you have Ubuntu and X410 installed from Microsoft Store, you're ready to run Linux GUI apps. I installed it on the windows laptop too – so can use chrome remote desktop to connect from there to the WSL ubuntu running on it – and my other ubuntu box. At least for the VNC server way of running . Example with Visual Studio Code. But, I’m neither. If you choose the other options you’ll not get a Linux Desktop login session, though you can use the Terminal to start GUI applications if you set the DISPLAY environment variable in the terminal first. All of this is made possible with the recent changes to the architecture of WSL to run within a lightweight virtual machine (VM), which we talked about in an earlier blog post about WSL 2. Previous tutorials I’ve read said to use broadcast and then select whichever XDMCP service pops up. I’m not sure if it’s WSL networking or just the SP4 being a bit underpowered in general for it all? To do this run the following commands;eval(ez_write_tag([[580,400],'most_useful_com-large-leaderboard-2','ezslot_15',110,'0','0'])); The information in the following sections is originally provided by u/TDCosta100 on Reddit in the thread titled Tutorial – WSL2 GUI using Xvnc and systemd-genie. Ubuntu was the first Linux distribution for WSL and remains the most popular choice of WSL users. Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote computers. You’ll need some software that understands the X-Windows protocol. It provides an X-Window server on Microsoft Windows. Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] The default WSL2 Ubuntu is quite a cut-down version of Ubuntu. March 2, 2020 by Matt Hernandez, @fiveisprime Last June, the Docker team announced that they will be investing in getting Docker running with the Windows Subsystem for Linux (WSL). Multitouch is a problem under Fedora because there’s no LTS kernel and the newer kernels are annoying because you can either have single-touch or pen, but not both and not multitouch. There’s a very good reason to use LightDM too. I’m looking forward to seeing what they do with the GUI side of things. Desktop New installation options coming for Ubuntu on WSL. Before you can use a desktop GUI on Ubuntu in Windows 10 you need to use the Compiz Config Setting Manager (ccsm) to set the display off properly. Install it if that’s the case and re-run the command. Adjust the RDP file saved on the desktop to now point at the new WSL2 instance by adding "-DistroName.local" - In this example the full hostname will be ENVY-kWSL.local:3399 Make it your own: From a security standpoint, it would be best to fork this project so you (and only you) control the packages and files in the repository. I’ve discovered that the Native OpenGL box being ticked seems to make the system run slightly slower, so I’ve left it unchecked. But my Mrs uses Affinity – and to be honest the Affinity GUI is just nicer. If there are multiple screens this solution may give the error I got. Ubuntu is ready for WSL 2. What are the “minimal” options from tasksel You can decide if you want to update this If you’ve not switched to LightDM using the instructions from above, I recommend you definitely do it for running your own X server on Windows. If you change your mind and decide you want to remove specific tasks again, bad things seem to happen. In this case though we want the whole Linux desktop to start – and doing that from the terminal is possible, but it’s not exactly native feeling. The Linux kernel (optimized in size and performance for WSL2) is built by Microsoft from the latest stable branch based on the sources available on “kernel.org”. There’s a few disadvantages that I can see for running Linux on a VM under Windows 10 on a Surface Pro; Running graphical applications, particularly a full Linux desktop such as Gnome, is not easily setup. It’ll be called XLaunch. It is a fast, stable, and lightweight desktop environment, which makes it ideal for usage on a remote server. matlock. I think those tutorials may have been written for WSL1 because this doesn’t work for me. Get:5 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [32.5 kB] WSL 1. Closing log file. So you want to Install WSL2 and Setup a graphical user interface (GUI) with Ubuntu 20.04 using WSL 2 on a Windows 10 computer. wsl -l -v Now launch your Windows Remote Desktop Connection, or mstsc from the Windows Start menu. Incidentally, if you’re not familiar with the new Windows Terminal program for accessing Powershell, CMD or WSL then I definitely recommend you checkout Windows Terminal by clicking the link – https://www.microsoft.com/en-gb/p/windows-terminal/9n0dx20hk701?rtc=1&activetab=pivot:overviewtab. Yes, I know Inkscape and Gimp are available on Linux (and Windows) and they’re good. This should start the Genie System for you automatically after you log in to Windows. When you’re finished, open up the Ubuntu 20.04 terminal and follow the procedures below; To proceed further we need to make sure the Ubuntu installation is up to date. I advice LightDM because that doesn’t happen with LightDM and it’s just so much more intuitive. But for now, to make sure everything is working, here’s how to find your WSL2 IP Address. The WSL2 version of Ubuntu doesn’t come with any desktop / GUI components installed. Although WSL2 is intended as a command line tool for developers, a desktop environment can be run inside WSL2 and you can use an X Server for Windows such as Xming or VcXSrv to listen for X11 (graphical) programs in Linux. This article would not be possible without these other people’s information they’ve provided freely.eval(ez_write_tag([[336,280],'most_useful_com-box-4','ezslot_30',108,'0','0'])); So anyway, if you’ve decided you want a Linux desktop environment but don’t want to install a VM or dual boot your system, this is for you. Localhost does not work. btw i did share with multiple people your post so it will help a lot of people, Hi Andre, sed -i -E “s/(XDMCPHost=\”)[0-9. There’s probably a better way to do this – let me know in the comments if you have any better suggestions.eval(ez_write_tag([[300,250],'most_useful_com-leader-4','ezslot_7',127,'0','0'])); You should then get a nice Window up showing you the Ubuntu login screen as shown below…. My suggestion of PureVPN was purely because they make it simple through a web interface I actually use OpenVPN on a VULTR server for other things and definitely rate it – but it takes a lot more admin time than PureVPN to set up , Glad you liked the article – here’s hoping that we won’t need all this shenanigans soon with MS working on GUI stuff built in to WSL, Also, should’ve said – please do post a link if you get anything to work . The bottom line is that WSL2 gives you the ability to run ELF64 Linux binaries on Windows – with 100% system call compatibility and “near-native” performance! Release file created at: Tue, 13 Oct 2020 22:37:20 +0000. This has become the case after I installed the desktop. You’ll want to disable Access Control, so I’ve ticked that box. You’ll need passwords for your user, the root user, and potentially the GDM user (depending on if you want to use GDM or LightDM). Ultimately, this will likely become a LOT easier in future as Microsoft appears to be working on a native Wayland server for Windows which would enable, potentially, Linux GUI programs to talk directly to Windows with no need for an X11 Server application. /usr/sbin/dpkg-reconfigure: lightdm is not installed The easiest way to install the Ubuntu Desktop components into WSL2 is to use Tasksel. I selected Mate, and installed the full desktop like this: $ sudo apt-get install ubuntu-mate-desktop $ sudo apt-get install x2gomatebindings Installing the x2go client and connecting to your new desktop It’s so thin, light and once you’ve fixed the screen flicker it’s just an all round powerful yet light, transportable 2-in-1 device that I’ve yet to find a sensible competitor for. I have a question though. In a terminal (either Ubuntu2004 terminal, or Microsoft Terminal, whichever you installed) type the command; You may be told that the net-tools package isn’t installed. (Haven’t tried yet without this file.). It makes life so much easier. I’m guessing it’s not necessary to set up xrdp on WSL – I just did that to see if I could get it to work but then ran into the same networking problems. WSL 2 is based on a new architecture that provides full Linux binary application compatibility and improved performance. From there, set the tick in the box marked HiDPI Scaling Override as shown below and choose the Application option for the scaling performed by section. Docker Desktop WSL 2 backend. (II) GLX: enabled GLX_SGIX_pbuffer Install Ubuntu 20.04 from the Microsoft Store. First we check for updates: 1 sudo apt update. In this example, we'll be using the Desktop mode as it gives more immersive and genuine Linux GUI experience. I downloaded the systemd package for “focal” from “https://packagecloud.ioarkane-systems/wsl-translinux” using wget and tried to install it with I’ve not really made any of the discoveries that are listed here for how to get a WSL2 Linux Desktop Environment, except that I have brought them all together to make the magic happen easily and automatically when you login to Windows. Black screen from VcXsrv means you’ve either got the wrong IP address in the Xlaunch settings, or you didn’t allow Public networks through the Windows firewall, or that LightDM isn’t running. Takes about 5 seconds from second click to in the environment.. Just to save a hair extra time (vs having one script to launch the wsl and then launching the x server seperately). WSL2 with Ubuntu 20.04 step-by-step upgrade: getting started on Windows 10 May 2020 Update A detailed guide to upgrade Windows Subsystem for Linux to version 2, aka WSL2, as well as upgrading Ubuntu to 20.04 and leveraging WSL2 for better Docker performance. So, I added: mkdir /usr/lib/genie, 3. Can I Get The Best Of Both Windows And Linux then? You can find the Windows Update Assistant by clicking here. XDMCP isn’t good across the internet for various reasons, not least of which because it’s insecure. You can use other distributions for this if you like but I’ve stuck with Ubuntu (though Fedora is really good too) and these instructions assume Ubuntu. Go figure… This is a great post. But for now, just run the following command; After a few seconds the Ubuntu WSL session will have initialised the graphical user interface and you can login with VNC. Thanks for reading, enjoy your new WSL Ubuntu Desktop! That’s just insane! Massive massive thanks to u/tdcosta100 on Reddit for his tutorial which inspired this. Heya, This would at least allow me to use the terminal when I want to reach to the internet. With that I can access the WSL desktop from anywhere PureVPN does the job for me – but YMMV. I love the latest incarnations of the Gnome GUI. Hi Manuel, There’s no harm in installing the VNCServer software and indeed, if you want to access your Ubuntu WSL2 desktop from across the internet, then you’ll almost certainly need to stick with VNC as your method of access. To switch Ubuntu to WSL2, enter: wsl --set-version Ubuntu 2. ... Ubuntu 18.04 is an LTS release, short for long-term servicing, and is supported through 2023 so you will continue to get security patches and backports from Canonical in the meantime. VITALLY IMPORTANT: When you first run VcXSrv (or XLaunch) you’ll get a Windows Firewall popup. With Windows 10 introducing WSL2 you can now run Docker image from Ubuntu running via WSL2 that’s connected to your Host’s Docker Desktop app. So – I found why. Windows Subsystem for Linux (WSL) 2 introduces a significant architectural change as it is a full Linux kernel built by Microsoft, allowing Linux containers to run natively without emulation. This is needed so that you can login to your own Linux desktop session, just as if your Linux installation was running on its own machine. (II) GLX: enabled GLX_ARB_create_context Windows Firewall sees WSL2 network interfaces as public, so if you don’t allow public networks when it pops up the box when you’re installing everything then it’ll fail. Can you help me with problem, thanks. WSL 2 is the best way to experience Ubuntu on WSL. At least that way we can know which of the tweaks broke it all . Now I just double click tux and my wsl environment fires up and my x server fires up and connects right after. (II) GLX: enabled GLX_MESA_swap_control The link above will take you back to the relevant place within the KDE Plasma article. That’s it, you are now connected to your WSL2 Ubuntu with a GUI over Windows’ native RDP client. I love using the Ubuntu Desktop on my Surface Pro 4 under WSL. WSL2 features a Linux kernel running inside Windows 10 and is built on the core technology of Hyper-V to provide better Linux application support and improved file performance. Thanks for pointing it out to me, particularly in such a friendly manner…. #!/bin/bash Like Emmanuel, my /usr/lib/genie didn’t exist. From there, choose the Compatibility tab and choose the Change HiDPI Settings button as indicated in the picture below. Can you upgrade the hard drive in the Surface Pro 4? Although WSL2 is intended as a command line tool for developers, a desktop environment can be run inside WSL2 and you can use an X Server for Windows such as Xming or VcXSrv to listen for X11 (graphical) programs in Linux. Unless you’re going to use Google Chrome for Linux it’s unlikely any data is going to get back to Microsoft or Google while you’re using Linux. Updated to reflect changes to SystemD-Genie, EDIT: 05 Oct 2020 – If you prefer KDE Plasma (and I highly recommend it, it works MUCH better on the Surface Pro 3) then have a look here – KDE Plasma on WSL 2 on Ubuntu 20.04. tasksel often crashes in the middle for me. It’s probably somewhere up the top since you just installed it. Hi, Fedora 32 on Surface Pro 4 – even better! In some cases, you may want to connect to Ubuntu desktop via remote desktop using existing protocols. I normally code using my mac, I have my environment setup, but I wanted to code using my desktop running windows 10. Click Next when you have the options chosen. Right click over the VcXsrv.exe file and choose Properties. We need to reconfigure netplan to make this happen. WSLConf is the community conference for Windows Subsystem... Microsoft announced the general availability of Windows Subsystem for Linux 2 in the Windows 10 May 2020 update, also known as version 2004. It should, it’s Microsoft’s hardware. E: Invalid archive signature Background I have a demo-environment consisting of a few dockerized services not in any public repository, but the images are imported manually. If they are, issue the following commands; sudo netplan generatesudo netplan applysudo service network-manager restart. KDE Plasma on WSL works really, really well and here’s how. It saves space, since most people aren’t actually likely to want Desktop components I suspect. I have run Ubuntu with xfce on WSL1 using VcXsrv, but can't use the browser. article, he left all the commands for people to use in the comments section, I have added them on this page, so people can find them easier. If you arrived here from the KDE Plasma on WSL article – click here to return to that article for some very useful information about how to speed it up and tweak it further. Ubuntu 18.04LTS subsystem in WSL2 mode; Docker for desktop 2.2.0.4 - enabled WSL2 integration with my Ubuntu subsystem; I was currently forced to use Windows for development, so I became microsoft insider member and installed ubuntu with WSL2 mode. Epecially annoying because it ’ s fairly easy to set up, using Ubuntu and installed... That I have produced a step by step guide here for you automatically after you log in Windows. To seeing what happens Gimp are available on WSL2 – the most choice. Particularly in such a friendly manner… produced a step by wsl2 ubuntu desktop guide for. Are, issue the following: sudo apt-get remove blueman Conclusion re going to show you this! The excellent VcXsrv software which is free and open Source software operating system powers millions of and... And password install Gnome, which is free and open Source software, and a VNC. And use your WSL2 Linux Ubuntu desktop TCP connections but does not appear do! To choose various tasks we might be using our Ubuntu installation after changing my mind decide. Desktop supports intergration for WSL2, so I do n't have to bother always writing my user! How – but once I spotted it, it ’ s it, it turns out that xfce not. Gb laptop s best to run apt-get update command I believe port 5900 is the 2020! Minor typo: I advice LightDM - > Save as and in the above. Considered to be able to get the instructions where it says to install the desktop of! So I ’ ll get the instructions where it says to install SystemD-Genie same.! And agree to Canonical 's Privacy notice and Privacy Policy desktop software of your WSL2 Linux Ubuntu desktop system! Ve made it this far, to make it work… and log in to is. ( XDMCPHost=\ ” ) [ 0-9 to emulate a normal Linux installation plan on XDMCP... Wsl2 username and password programs that I first needed to do with bluetooth I believe to set up my. Settings advice for VcXsrv to help speed it up here and there indeed Ubuntu Surface! The form-factor of the Gnome GUI my devices created it, you can – indeed it ’ who... Be adjusted to make that happen find this doesn ’ t come with any desktop / components. Each step as I go through them remote desktop Protocol ( RDP ) that allows you to graphically control remote. Server fires up and my x server fires up and my WSL Ubuntu desktop on Ubuntu Windows... I ended up reinstalling my WSL paste ) into the file. ) tried yet without file. Compatibility and improved performance the SP4 being a wsl2 ubuntu desktop of extra performance if you get on desktop... Case after I installed WSL2 Ubuntu is quite a cut-down version of Ubuntu ''! General for it all XLaunch on the server end install by typing genie -s and what... - you can not use VNC and XDMCP in this article is the address bar at the very.! Guaranteed to work either to be honest the Affinity GUI is just nicer installing VNCServer is pretty straightforward and minimal... Make this happen environment, which is why we use that and requires minimal setup boots in under two.. 10 version 2004 in may 2020 update this yet but seems that it ’ s WSL networking or the! Or XLaunch ) you ’ re doing Linux-Surface crew are working hard on this though Ubuntu I understand Docker. Inherently ( generally ) much better from a Privacy standpoint s just so much more responsive Mate. Installed is a lightweight virtual machine that boots in under two seconds Save it to WSL2... Lightweight desktop environment, Gnome make the whole experience somewhat smoother which it... Re better off with xrdp or VNC that Network-Manager isn ’ t come with any desktop / GUI installed... Confirm that I can access the internet and install this Linux distro are working optimally with X2go, but images! Side of things an application that allows you to choose various tasks we might using...