Unable to open TCanvas

I am a beginner and I just finished installing root in my Ubuntu22.04.3 LTS subsystem, and I have downloaded XMing as well. but when I type:

export DISPLAY="localhost:0"
root
root [0] TCanvas c1;

no canvas was presented on the screen,
no error was warned,
just nothing happened.
any problem whith that?

Welcome to the ROOT forum

Are you using ROOT on a remote machine reached via ssh ?
If that’s the case you need to add the option -X to the ssh command.

thanks for the greeting and replying!
I wasn’t operating any remote machine via ssh actually, I run all this directly through a window from ubuntu 22.04.3.

Try installing WSL2, so XMing is not needed

okay I’ll try it, thanks!