I am trying to get a desktop environment up and running on my ubuntu system running with WSL2 on Windows 11. I ran these commands in ubuntu to get everything installed:
sudo apt update && sudo apt -y upgradesudo apt-get purge xrdpsudo apt install -y xrdpsudo apt install -y xfce4sudo apt install -y xfce4-goodiessudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.baksudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.inisudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.inisudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.iniecho xfce4-session > ~/.xsessionsudo nano /etc/xrdp/startwm.sh!comment these lines to:#test -x /etc/X11/Xsession && exec /etc/X11/Xsession#exec /bin/sh /etc/X11/Xsession!add these lines:# xfcestartxfce4sudo /etc/init.d/xrdp start
After this, I tried connecting to localhost:3390 on Remote Desktop, but it cannot connect.
I tried making sure ubuntu, xrdp, and xfce4 were all up to date. No matter what I try, nothing can be found on port 3390. Can anyone help with this?