Introduction
This article aims to help users who have recently installed Ubuntu 24.04 on their brand-new computers running Windows 11 Home and encounter issues starting the Linux distribution via WSL (Windows Subsystem for Linux), specifically with Remote Desktop.
Prerequisites
Before proceeding with the troubleshooting steps, ensure the following prerequisites are met:
- A working installation of Windows 11 Home with the latest updates.
- Ubuntu 24.04 installed via WSL.
- Remote Desktop Protocol (RDP) client installed on your local machine.
Symptoms
Users may experience various issues when trying to start Ubuntu via WSL and using Remote Desktop, such as:
- Connection refused or timeout errors.
- Black screen or frozen desktop.
- Authentication failure.
Possible Causes
The following are some possible causes for the observed issues:
-
Firewall or Network Issues
The default firewall settings on Windows 11 Home may block the necessary ports for Remote Desktop connections. Additionally, network configurations might cause connection issues.
-
Display Driver Compatibility
Some display drivers might not be compatible with the Linux kernel used by WSL, causing graphical issues or black screens.
-
WSL Configuration
Incorrect WSL configuration or missing dependencies might prevent Remote Desktop connections from working.
Solutions
Solution 1: Firewall and Network Settings
%windir%\System32\wscui.cpl
Open the Windows Defender Firewall with Advanced Security. Go to the "Inbound Rules" tab and search for "Remote Desktop - User Mode (TCP-IN)" and "Remote Desktop - User Mode (UDP-IN)". Ensure these rules are enabled.
Additionally, check your network settings to ensure the correct DNS server is configured and that there are no issues with your network connection.
Solution 2: Display Driver Compatibility
If you're experiencing graphical issues, try updating your display driver to a version that is known to work with WSL and Ubuntu 24.04. You can download the latest drivers from the manufacturer's website.
Solution 3: WSL Configuration
wsl --shutdown
Shut down WSL by running the command above. Next, open the WSL settings by typing "wsl" in the Windows search bar and selecting "Windows Subsystem for Linux settings". Go to the "Advanced" tab and ensure the following settings are configured:
- Use the Linux login instead of the default Windows user account.
- Enable "Allow the Linux kernel to control the NDIS drivers".
After making these changes, restart your computer and start Ubuntu via WSL. Attempt to connect via Remote Desktop again.
Conclusion
If you've followed the steps outlined in this article and still encounter issues with starting Ubuntu 24.04 via WSL and using Remote Desktop on Windows 11 Home, consider reaching out to Microsoft Support for further assistance.