Ubuntu GUI WSL2 Windows, XFCE Desktop, Fix WSL2 Black Screen, How to Install Ubuntu Desktop on Windows, WSL2 XRDP Troubleshooting
Discover exactly how to get a fully functional, stable Ubuntu desktop environment running right on your Windows PC in this detailed tutorial from CyberArb. Many users struggle with graphical interfaces on WSL2, often encountering frustrating black screen errors and disconnections. This video is specifically designed to get you past those common issues and into a complete Linux desktop experience, step-by-step!
We'll cover everything from the initial package installation (including the lightweight XFCE desktop and XRDP connection service) to the crucial configuration changes needed to ensure a smooth graphical experience without common stability problems.
⏳ Timestamps:
(Use placeholders based on your 10:42 video – here are exemplary timings based on typical tutorial flow):
00:00 - Intro & Setup Overview
00:45 - Step 1: Update WSL & Install XFCE/XRDP (Packages)
02:30 - Step 2: Configure XRDP & Port 3390 Fix
03:45 - Step 3: Connecting via Windows Remote Desktop
04:30 - Step 4: Critical Fix for "Black Screen" & Wayland Crashes
06:30 - Bonus: Properly Installing Firefox (Avoiding the Snap Trap)
08:30 - Final Desktop Demo & Outro
💻 Key Commands Used in this Video:
Note: Use the following command to install Ubuntu on WSL:
wsl --install -d Ubuntu-24.04
1. Install XFCE and XRDP:
Bash
'''''''''''''
sudo apt update && sudo apt upgrade -y
sudo apt install xfce4 xfce4-goodies xrdp -y
''''''''''''
2. Configure the Port (Change 3389 to 3390):
Bash
''''''''''
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
'''''''''
3. The startwm.sh Fix (Solves Black Screen & Disconnects):
Run: sudo nano /etc/xrdp/startwm.sh, delete the contents, and paste this exact script:
Bash
'''''''''''''''
#!/bin/sh
xrdp X session start script (c) 2015, 2017, 2021 mirabilos
published under The MirOS Licence
if test -r /etc/profile; then
. /etc/profile
fi
if test -r ~/.profile; then
. ~/.profile
fi
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
unset WAYLAND_DISPLAY
startxfce4
'''''''''''''''''''''''
4. Restart XRDP Service:
Bash
'''''''''''''''''''''
sudo /etc/init.d/xrdp restart
'''''''''''''''''''
If this video helped you get your Linux environment running smoothly, drop a like and subscribe for more tech, cybersecurity, and IT tutorials! Let me know in the comments what tools you plan on running on your new WSL desktop.
#WSL2 #Ubuntu #Linux #XFCE #XRDP #Cybersecurity #TechTutorial #CyberArb #Windows11 #Fix #Troubleshooting