9/26/2023 0 Comments Ubuntu desktop![]() Initially, Ubuntu has root-only access, so create a normal account with sudo privileges: sudo adduser usernameįrom now on, start WSL using that account: wsl.exe -d distroname -u username VcXsrv by installing the GNOME Desktop the ubuntu-wsl2-systemd-script and then appending a script to my ~/.bashrc file. I managed to get the full Ubuntu 20.04 Unity desktop GUI running using Make sure Xorg is selected as the Session type. The computer to connect to will be localhost:3390. # Optional if you only have one desktop environment installedĬreate ~/.xsessionrc with the following: export GNOME_SHELL_SESSION_MODE=ubuntuĮxport XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktopĮxport XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdgĪs with Xfce4, you should be able to connect to your Gnome Desktop using the built-in Remote Desktop Connection app. The next few steps are similar to those for Xfce: # Block ACPI features, which cause issues in WSL2, from being installed with Gnome After restarting Ubuntu, ensure that Systemd is running via sudo systemctl status I'm not sure I'd "recommend it", but it's certainly possible.įirst, enable Systemd. With the recent ability for WSL to use Systemd, this has become much more viable "out of the box". # Optional, if you only have one desktop environment installedĪnd that's it - You should be able to connect to your WSL Desktop using the built-in Remote Desktop Connection app. # Prevent Wayland from being used in XrdpĮcho "export WAYLAND_DISPLAY=" > ~/.xsessionrc # Windows Pro and higher are often already running RDP on 3389 # If asked, select lightdm, although it probably doesn't matter Note that this updated answer has been tested on Ubuntu 22.10 with WSL2 version 1.0.3. Xfce is the easier of the two, since it does not require Systemd. The original question mentions both "Ubuntu Desktop" (assuming Gnome) as well as Xfce, so I'll provide steps for both. ![]() ![]() On the downside, it's a bit slower than using native WSLg. This avoids conflicts in hotkeys between Ubuntu and Windows. My preferred approach for getting a "full desktop" under WSL is to use xrdp and then simply run Windows Remote Desktop Connection to enter the desktop manager. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |