I'm trying to install KUbuntu 24.04 on WSL on my Windows 11 machine
The idea would be to connect to KUbuntu using the "usual" Remote Desktop client
My configuration is almost done; when I connect, I get the following login screen;
However, after entering my login and password, I get a black screen; then nothing happens
The procedure I follow is strongly inspired from
- https://www.youtube.com/watch?v=iXAWNVgOUrw
- https://www.vps-mart.com/blog/install-kde-plasma-and-xrdp-service-on-remote-ubuntu
I downloaded the standard Ubuntu 24.04 WSL image (I can't remember exactly where but possibly here), then, here is what I exactly do:
wsl --unregister MyWorkstation_24.04wsl --import MyWorkstation_24.04 D:\WSL\Distro\MyWorkstation_24.04 D:\WSL\Downloads\ubuntu-noble-wsl-amd64-24.04lts.rootfs.tar.gzwsl -d MyWorkstation_24.04at this point, I am in a Linux shell (logged as root) in which I do
adduser myuserusermod -aG sudo myuserpasswd myusernano /etc/wsl.confhere I add at the end of the file the following content
[user] default=myuserexit
now I'm back to the dos/batch session and I run
wsl --shutdownwsl -d MyWorkstation_24.04this time, I am in a Linux shell (logged as myuser). I can now run:
sudo apt update && sudo apt upgrade -ysudo apt install neofetch htop net-tools -ysudo apt update && sudo apt full-upgrade -y$ sudo apt install xfce4 xfce4-goodies kde-full -ythis step is quite long; at one point, I am asked to choose the display manager: I use to choose
lightdmsudo apt install xrdp -ysudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.baksudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.inisudo systemctl restart xrdpsudo adduser xrdp ssl-certecho "/usr/bin/startplasma-x11" > ~/.xsessionnano ~/.xsessionrchere write the following content
export XDG_SESSION_DESKTOP=KDEexport XDG_DATA_DIRS=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktopexport XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settingssudo /etc/init.d/xrdp start
Finally, I can get the IP of my WSL:
$ ifconfig eth0 | grep "inet\ " | xargs echo | cut -d" " -f2172.23.65.151Now, I can launch my remote desktop client to the obtained IP and port 3390
However, as explained at the beginning, I do not succeed to get a valid session: any help would be appreciated
Thank you