packer init ./src
packer fmt ./src
packer validate ./src
packer build ./src/jdp-wsl-ubuntu.pkr.hcl
Comment out and add line in /etc/xrdp/startwm.sh
:
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession
# exec /bin/sh /etc/X11/Xsession
startxfce4
Start XRDP:
/etc/init.d/xrdp start
Connect in RDP to localhost:3390
.