Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

Back screen with Remote Desktop when setting up KUbuntu 24.04 on WSL 2.3.26.0 (Windows 11)

$
0
0

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;enter image description here

However, after entering my login and password, I get a black screen; then nothing happens

The procedure I follow is strongly inspired from

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:

  1. wsl --unregister MyWorkstation_24.04

  2. wsl --import MyWorkstation_24.04 D:\WSL\Distro\MyWorkstation_24.04 D:\WSL\Downloads\ubuntu-noble-wsl-amd64-24.04lts.rootfs.tar.gz

  3. wsl -d MyWorkstation_24.04

    at this point, I am in a Linux shell (logged as root) in which I do

    1. adduser myuser

    2. usermod -aG sudo myuser

    3. passwd myuser

    4. nano /etc/wsl.conf

      here I add at the end of the file the following content

       [user] default=myuser
    5. exit

  4. now I'm back to the dos/batch session and I run wsl --shutdown

  5. wsl -d MyWorkstation_24.04

    this time, I am in a Linux shell (logged as myuser). I can now run:

    1. sudo apt update && sudo apt upgrade -y

    2. sudo apt install neofetch htop net-tools -y

    3. sudo apt update && sudo apt full-upgrade -y

    4. $ sudo apt install xfce4 xfce4-goodies kde-full -y

      this step is quite long; at one point, I am asked to choose the display manager: I use to choose lightdm

    5. sudo apt install xrdp -y

    6. sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak

    7. sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini

    8. sudo systemctl restart xrdp

    9. sudo adduser xrdp ssl-cert

    10. echo "/usr/bin/startplasma-x11" > ~/.xsession

    11. nano ~/.xsessionrc

      here 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-settings
    12. sudo /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.151

Now, I can launch my remote desktop client to the obtained IP and port 3390enter image description here

However, as explained at the beginning, I do not succeed to get a valid session: any help would be appreciated

Thank you


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>