Display
For WSL1:
shellexport DISPLAY=127.0.0.1:0
For WSL2:
shellexport DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
If required by your setup, also export LIBGL_ALWAYS_INDIRECT=1
.
Package
Install dbus, terminal and some other basic tools:
shellsudo apt install dbus-x11