You simply now need to set X410 in Windowed Apps mode and launch your apps directly from any Ubuntu console. Microsoft have announced that an RDP based GUI will be added to WSL2, but it's not currently available. However, if you really want to open the WSL application without installing a distribution, youll see a nice and short help message that you must follow in order to make something useful with WSL: Sometimes a Desktop GUI on top of your WSL2 comes handy. (when is the last time you RDP into localhost? enter localhost:3390 and connect. ubuntu-gnome-desktop includes LibreOffice and it might display warning messages and show some glitches; additionally installing default-jre and libreoffice-java-common should solve those issues. Thanks. Google Summer of Code 2021 Work Product for CatrobatDocumentation, sudo apt-get install -y xfce4 xfce4-goodies, test -x /etc/X11/Xsession && exec /etc/X11/Xsession, # test -x /etc/X11/Xsession && exec /etc/X11/Xsession, How To Enable WSL2 Ubuntu GUI and use RDP to Remote, Install GUI Desktop in WSL2 Ubuntu 20.04 LTS in Windows 10. This IS the real magic we are doing. followed the guide, followed the commented changes. Congrats! WSLg is Microsoft's Offical GUI for WSL2; Running Docker inside Ubuntu with WSL2 - Windows 10; Troubleshoot and Improve RDP Connections with UDP; How To Upgrade Existing WSL/WSL2 Ubuntu 18.04 to 20.04; opinion: The Future of Windows is the meta OS for all platforms and devices At the time of writing, it is Ubuntu 22.04. easy to have a GUI on ubuntu 20.04 of WSL2, Half way through the installation you will be prompt configurating sddm, select lightdm, Comment out the following two lines by adding a # at the beginning of each line, you can see the result like this (image from the reference), It should open and log in with your username and password of WSL2, How To Enable WSL2 Ubuntu GUI and use RDP to RemoteInstall GUI Desktop in WSL2 Ubuntu 20.04 LTS in Windows 10WSLUbuntu18.04arm. Install a graphical user interface (GUI) with Ubuntu 20.04 running within WSL 2 on a Windows 10 computer. Hi, Great method, but Im having a small problem. 2. Click on Get to download and install the application. ubuntu wsl2 gui. Love podcasts or audiobooks? There are other Ubuntu desktop packages (ex. Upon installation, you can click on Open, but it will not do much since there is no Linux . But such approach can cause issues as it differs from how such buses are configured in a full Ubuntu desktop system. install systemd in wsl2; access to desktop from linux wsl; install docker wsl ubuntu; upgrade to wsl2 from wsl1; set wsl 2 default; convert a wsl 1 distro to wsl 2; What you . Ubuntu has a convienient desktop and service component installer called. late to this party. Firefox running in Ubuntu via WSL2 Full Linux Desktop. Click on Get to download and install the application. Enter the WSL update command: PowerShell. In that post, X410 is in Desktop mode, and you can have a full Ubuntu desktop experience. Click on the item Windows Subsystem for Linux Preview to open the corresponding application page. We go through How to Install WSL2 & Ubuntu Linux w/ GUI using GWSL on Windows 11. New to Linux, using WSL2 under Win 10 Pro, Your answer worked for me, about the 8th or 9th attemp. Next, refresh your environment variables: Doing this is like booting Linux again, this time with. At the package list, select your preferred GUI. Use the VNC password set for user gdm, and you should see the login screen appear. You must perform a standard Linux shutdown. To start, you need obviously your WSL2 setup and configured. A tag already exists with the provided branch name. How to deploy a semantic search engine with Streamlit and Docker on AWS Elastic Beanstalk. Opening Ubuntu 20.04 Desktop on WSL2. How To Enable WSL2 Ubuntu GUI and use RDP to Remote Install GUI Desktop in WSL2 Ubuntu 20.04 LTS in Windows 10 WSLUbuntu18.04arm More from Riley Kao Follow Finally, its always good practice to install the latest updates with the following commands, entering your password when prompted. If you don't want to start this daemon and suppress the waring message, you can export NO_AT_BRIDGE=1 and disable using the accessibility bus altogether. Next, lets configure the password for the root user: Finally, lets configure the VNC password for GDM (you need to skip this step if you didnt install GNOME): By default, the display manager calls multiple X instances, one for each user session, including the login screen, all provided by gdm. its like the window server is running, but no windowing agent on the other side so it connects to a blank space. What happened? When you install a full desktop version of Ubuntu, you'll get a customized variant of GNOME Shell as your default DE (Desktop Environment). But the question is why you need to do that if you can run Linux GUI apps side by side of Windows. Congratulations, you now have an Ubuntu terminal running on your Windows machine! Let me describe shortly, what's needed to run the XFCE Linux Desktop environment on top of your Ubuntu WSL. Say "hi" to Zigi - your Slack-based workflow assistant, which pings you only on relevant Jira & GitHub changes, saves time on PRs, and more! Remote connection is getting authorized but immediately getting closed. First, lets make sure that we are fully up-to-date and prepared to begin installation: If you are installing the GUI on a Debian operating system, you will also need the following: Now were ready to begin installing the main dependencies! I retraced all of my commands, they were correct. Click on the item Windows Subsystem for Linux Preview to open the corresponding application page. We assume by now you already have WSL2 running and have at least Ubuntu installed. Drop us a line. Next we are going to install a GUI distro to Ubuntu, Half way through the installation you will be prompt for this configurating sddm, select lightdm, Install and configure XDRP, and change the RDP port to 3390. Where should I add my DISPLAY environment variable? This is the latest LTS version of Ubuntu after the first point release. That didnt work either. Hi, The instructions above worked for me, after combining it with some suggestions in the comments. What I still wonder is whether its necessary to encrypt the connection to the local RDP. First check if you Windows 10 Version supports WSL 2 or not checkout the link. If you found this usful then please share this and follow me! The remote desktop tries to connect and then says: Remote Desktop cannot connect to the remote computer, When running this command it says xrdp is running so not sure what the problem is: service xrdp status * xrdp-sesman is running * xrdp is running, After installing the following: $sudo apt install xfce4 xfce4-goodies follow every step from author then remote desktop works perfectly. You also can use VNC Viewer from other computers or phone. Running Ubuntu Desktop in WSL2 However, if you want to use those Linux GUI apps installed with Ubuntu DE like Windows apps, it's straightforward and easy to do with X410; simply stop after completing the Step 8 in the above post! WSL provides many benefits to developers, such as allowing access to the Windows file system, providing the ability to use Linux-exclusive software, tools, and features, and much more. ubuntu-desktop), but ubuntu-gnome-desktop package seems to be more compatible with WSL2 and includes many popular software packages (ex. Lets get started. I do because I'm weird. Once installed, you can either launch the application directly from the store or search for Ubuntu in your Windows search bar. Upon installation, you can click on Open, but it will not do much since there is no Linux distribution installed. Weve now installed the dependencies and requirements needed in order to begin configuring the system to access the GUI. To install the WSL application from the Microsoft Store, open it and search for Windows subsystem. Thanks. With sudo apt install xfce4 xfce4-goodies, and rest of the guide, everything worked for me. Enabling sound in WSL / Ubuntu - Let It Sing! Once you are done with installation, you can set wsl2 to be default using command: wsl --set-default-version 2. you can check the version of the distro using command (our case ubuntu 2) If you prefer directly opening individual Linux GUI apps and seamlessly use them side by side with Windows apps, you can stop here and ignore the next Step 9 and 10. How To Enable WSL2 Ubuntu GUI and use RDP to Remote, Running Docker inside Ubuntu with WSL2 - Windows 10, Troubleshoot and Improve RDP Connections with UDP, How To Upgrade Existing WSL/WSL2 Ubuntu 18.04 to 20.04, opinion: The Future of Windows is the meta OS for all platforms and devices, How To Allow USB Webcam Passthrough RDP Session, Looking For A Free Unlimited File Sync Tool? Find the best and most talented Laravel developers by posting your job on the official Laravel job board. I have tried all this but I am getting a blank screen, Now you should be able to start the remote desktop session on windows and login with your linux username and password , still having issues connecting via rdp. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Add yourself to Hyper-V Administrators group and freely use Hyper-V related commands without becoming a full system administrator, Enabling SSH X11 forwarding in Visual Studio Code for remote development, Transparently adding native support for VSOCK in X11 apps (patching libxcb), Opening a genuine Linux terminal emulator directly from File Explorer, Built-in SSH X11 forwarding in PowerShell or Windows Command Prompt, Fixing "javaldx: Could not find a Java Runtime Environment!" . This is the login screen for the actual primary user of the OS, the user that you configured during the initial installation. Thats it, you have successfully installed WSL on your Windows 11 desktop and you can start using it! I'll show you how to get a GUI installed and how to connect to the GUI using remote desktop so you can start using that today. Open the control panel and scroll down to Virtual Machine Platform. In this tutorial, we will setup a GUI in WSL2, and access it using VNC. To locate your servers IP address run the following command: After a while (usually around 30 seconds, but it can take more time if you dont have a SSD, around a minute or so), you can test if its working properly. You can check the available Ubuntu services by executing the following command. The following post has more information about Bash login scripts. any error messages? The official Laravel job board. This will always be 20.04 and upgrades won't be proposed. The easiest way to install the Ubuntu Desktop components into WSL2 is to use Tasksel. Hi, I followed all instructions above and I am able to have the login page in the rdp. Additional new features. Before we start; Install WSL2 & Ubuntu; Install a GUI Environment; Set up an X Server. To change this, we are replacing the Xorg script with a new version which calls Xvnc instead of the classic X/Xorg display service. If you encounter any issues or difficulties please dont hesitate to, Attention: if you want to avoid initialization errors that show up upon genie start, or make it start faster, you must check, Copyright 2022 Andrew Henke | Complete Technical Solutions, LLC. R on Feb 23rd, 2022 This is because a new instance of Xvnc was created for the user desktop, listening to port 5901. The WSL2 version of Ubuntu doesn't come with any desktop / GUI components installed. wsl --set-version Ubuntu 2. Hence, you may not be able to access all Ubuntu settings or run certain apps (ex. If you prefer directly opening individual Linux GUI apps and seamlessly use them side by side with Windows apps, you can stop here and ignore the next Step 9 and 10. Now what? We saw in the past tutorial that WSL can be installed from the command line. To access the graphical user interface we need some tools . xfce sudo apt-get install -y kubuntu-desktop # install xrdp sudo apt-get install xrdp sudo cp . Add Answer . Creating Local Server From Public Address Professional Gaming Can Build Career CSS Properties You Should Know The Psychology Price How Design for Printing Key Expect Future. To run a complete Linux desktop, you'll need to change the display settings in VcXsrv. GNOME Calendar). First, lets configure the VNC password current user: Finally, we set the correct permissions for the file and create a link to it: Next, we need to configure the environment variables that the Xorg server is going to read from the user that executes the. Link for Step by step guide:https://github.com/Tech-Bandit/wsl-gui-rdp-Start RDP Service-sudo /etc/init.d/xrdp start_____I'm doing just the basic in. Do I just add startbudgie where startxfce4 is? How a non-engineer used Webhooks and APIs to make something awesome. We go through How to Install WSL2 & Ubuntu Linux GUI (XFCE Desktop) on Windows 10. The OS build number must be higher than 22000. Desktop Environments: Xfce . Just a cyan background. Youre now logged into your GUI-enabled Linux WSL2 operating system! But, unfortunately, WSL2 is only a lightweight virtual machine, and you cannot have all those background processes running like a full Ubuntu OS (ex. May 2022. Views You can either use ~/.profile or ~/.bashrc for adding the commands shown above. In this setup, each user has a different VNC password. Use your favorite VNC Viewer to connect to your localhost port 5900. Windows Subsystem for Linux (WSL) allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving windows. Where should I add my DISPLAY environment variable in WSL? Thus, use the below command: sudo apt install mate-desktop Install tigervnc server. When you log out, the screen at port 5900 will show the login interface again. I'll show you how to get a GUI installed and how to connect to the GUI using remote desktop so you can start using that today. Thats it, you are now connected to your WSL2 Ubuntu with a GUI over Windows native RDP client. Update Ubuntu to support GUI: Update Ubuntu: sudo apt update && sudo apt -y upgrade Wed love to hear from you! Ubuntu will then install on your machine. one major difference for me: lightdm was not a display manager option gdm-3 was. following the guide to install vnc and enable a connection via an ssh tunnel, all I get is an xwindows gray screen and cursor. By default the encryption is high, for performance reasons i would like to make it none. I do not mean to run individual Ubuntu applications on a computer with windows, but to run a full graphical environment -- a full Ubuntu system based on Gnome. However, we recommend starting at least network-manager service. It worked but I cant see anything after logging in. Learn on the go with our new app. Install GUI Desktop in WSL2 Ubuntu 20.04 LTS in Windows 10. We first install WSL2 and make sure we have the latest update of Windows 11. I managed to get it kind of running by executing sudo apt install xfce4-session and then restarting the services. I still have the same problem, but now it only crashes after 30 seconds. where are my files being saved to on my windows pc with this method? Then I have to enter the command; sudo /etc/init.d/xrdp stop and that sudo /etc/init.d/xrdp start to be able to use the remote desktop again. Anyways I hope this video tutor. Before installing ubuntu-gnome-desktop, you should first update apt and upgrade installed packages if necessary. WSL 2 GUI Setup and Config for Ubuntu on Windows 10 SUBSCRIBE for more: https://www.youtube.com/user/Britec09?sub_confirmation=1So you want to setup and In. - Note: lines starting with > are terminal commands -, If xrdp is running, stop it via: > sudo /etc/init.d/xrdp stop, Edit the startwm.sh file: > sudo nano /etc/xrdp/startwm.sh Comment out the following two lines by adding a # at the beginning of each line: test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession, Below the now commented lines, add: startxfce4, Save the file, start xrdp with > sudo /etc/init.d/xrdp start, Now you should be able to start the remote desktop session on windows and login with your linux username and password, Great!!! Ubuntu Ubuntu GUI Ubuntu on windows WSL WSL 2 . Search for Windows features. But you should surely experience the same Ubuntu graphical user interface. My xfce is running ok now with this tip. Choose the distribution you prefer and then select Get. It mostly restarts VcXsrv by closing all the running processes and starting a new process. Connected to port 3350 instead of 3390, despite resetting it to 3390. Everything works as expected now. For automatically starting services, you can use the login script mentioned in Step 2; ~/.bash_sysinit. This is a requirement I won't cover here. systemd). Companies: please stop using free URL shorteners (especially for PII forms)! Work notes: Do you need that ActiveRecord Model? Report Post. Microsoft have announced that an RDP based GUI will. Is it possible to install the Ubuntu default GNOME desktop environment on Windows Subsystem for Linux without a remote desktop program? Ubuntu 20.04.x. You can do one of the alternatives below: Thank you for taking the time to work through this tutorial with me, I greatly appreciate your time and interest in Windows Subsystem for Linux! If you choose VcXsrv; If you choose X410; Further Fixes and Enhancements We prepared the following guide for configuring D-Bus in WSL2 that creates communication buses similar to the ones available in a full Ubuntu desktop system. The conversion can take 1 hour or even more. Try Syncthing, Three Different Methods to Two-Way Transfer Photos Wirelessly from Android to PC, Windows Package Manager Preview Released - You can WinGet apps now, Recover Deleted Files with Windows File Recovery Tool, Download Smashing Magazine Desktop Wallpaper August 2021 Windows 10 Theme, Download Smashing Magazine Desktop Wallpaper July 2021 Windows 10 Theme, https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04, https://askubuntu.com/questions/1335984/stuck-on-login-screen-ubuntu-20-04-xrdp-windows-10-remote-desktop, Paste in Plain Text Natively in Windows 11, How To Move Lightroom Catalog Preview to Another Drive, Windows 11 Centered Taskbar in Windows 10 without third party tools, Adobe Trick: How To Redact PDF Document without Pro License, How To Force Windows 10 To Do A Restart Right Away Without Saving Anything. follow the reference: How to Install and Configure VNC on Ubuntu 20.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04. Some apps running in an Ubuntu desktop assume certain directories are already available and behave strangely if they don't exist. Installation from the store will install the latest version of WSL with all the latest features. sudo adduser username sudo usermod -aG sudo username exit Please help. After installation of the Virtual Machine Platform component, you must restart Windows 11 before proceeding with the installation of WSL components and an Ubuntu application. Installation of WSL from the Microsoft Store, Install Ubuntu on WSL2 on Windows 11 using a GUI, A Windows 11 physical or virtual machine with all the updates installed (Windows 11 will be easier), You are running Windows 11 (build 22000 or higher), Virtual Machine Platform optional feature is enabled. Instead of just setting those environment variables within a desktop launching script, we prepared the following that can be included in ~/.bashrc and shared among Linux GUI apps even when they are running in X410 Windowed Apps mode; by sharing those environment variables, you can have consistent look-and-feel of the Ubuntu desktop even in Windowed Apps mode. After logging in, the screen will be blank. I enter in my wsl2 credentials and click the OK button but it doesnt do anything (it only made the border looked dashed). Below is a sneak peek of the end result. Login using Twitter, GitHub, or Email , Already Have an Account?Click here to Login, and press enter to search for a specific post, and press enter to search for a specific user, and press enter to search for a specific question, or, type a section to quickly jump to that page. 15. launching X410 instead of using its auto start option). In todays guide, we will use Windows native RDP client to remote connect into your local WSL2 Ubuntu on the same machine. The packages for setting up the Mate are already on Ubuntu 20.04 or 18.04 LTS. Launch xfce4 or other desktop in Windows 11 WSLg Ubuntu distro . Install a graphical user interface (GUI) with Ubuntu 20.04 running within WSL 2 on a Windows 10 computer. I have searched around but I found only one question which wasnt answered https://askubuntu.com/questions/1335984/stuck-on-login-screen-ubuntu-20-04-xrdp-windows-10-remote-desktop. Menu: Overview: 0:00 Prerequisites: 1:20 Install WSL: 1:46 Install Ubuntu 20.04: 4:45 Install Ubuntu GUI: 7:25 . You can find them by opening the Microsoft Store app and searching for Ubuntu. If remote desktop stays idle, I receive a black screen. Install Ubuntu Desktop Components. Please use one of the following email addresses to contact us. You should also create a ~/bin directory and put your scripts and tools there for cleaner file management. You should see something like this below. We first install WSL2 and make sure we have the latest update of Windows 1. any idea? Initially, Ubuntu has root-only access, so create a normal account with sudo privileges:. It also launches the Ubuntu Desktop by configuring and starting the GNOME 3 desktop environment. Learn more about the DevDojo sponsorship program and see your logo here to get your brand in front of thousands of developers. The second prerequisite to verify is the Virtual Platform feature. If you dont configure the password, you wont able to access the login screen, or the users desktop you can add as many users as youd like, but there are three that must be added in order to obtain full functionallity. Ubuntu without a version number.