TBrowser error on remote server via ssh

Hi there!

I’m trying to use ROOT to display some data files on a remote Linux system, via ssh in VS code, but have encountered the following error:
connect localhost port 6023: Connection refused
Warning in TBrowser::TBrowser: The ROOT browser cannot run in batch mode

My local system is Windows, so I have installed VcXsrv on my local server and set up the configurations according to some posts (I can’t put links here because I’m a new user). There are values for DISPLAY variable on both local and remote server, but I failed at running xeyes (although I’m not sure if I’m running it correctly, because the error message was “-bash: xeyes: command not found”). Also, when I check VcXsrv, it shows that “0 clients is connected”.

Thanks in advance for any help!

Hi,

thanks for the post and welcome to the ROOT Community!

Did you try to ssh -X to the remote Linux system from a regular shell, i.e. wsl? Did the TBrowser work?
If yes, I would suggest to look into how to forward X from within VSCode.

Cheers,
D

Hi Danilo,

Thanks for your reply! I tried ‘ssh -X’, but the same error message comes up again.

L

Hi,

That’s unfortunate. This seems a misconfiguration on your system: I would at first try to connect to the remote machine and visualise anything, not necessarily a root graphics primitive, any window could do. Then we can try ROOT again.

Cheers,
D