Dear Root users,
I am discovering ROOT and I have been dealing with problems when trying to open the TBrowser :
I have seen that this problem has been “solved” using xhost + but this seems to be a very bad idea in terms of security.
I’m a little lost but could there be computer package dependency problems ?
If this speaks to someone, many thanks for the help!
Sarah
ROOT Version: 6.36.04
Platform: Ubuntu 24.04.3 LTS
It looks like an issue that @linev could help with
linev
November 7, 2025, 6:54am
3
Hi Sarah,
In batch mode web-based browser is not invoked.
Seems to be you have problems with X11 settings.
But you can try to run web-based TBrowser on such remote node.
In such case you can avoid X11 forwarding problems completely and
just use normal web-browser on your desktop machine.
See short info here: ROOT 7 - ROOT
Regards,
Sergey
In your “${HOME}/.bash_profile”, or “${HOME}/.bash_login”, or “${HOME}/.profile” (whichever you use) add (and then re-login):
# for X11-forwarding SSH connection and snap applications
if [ -z "${XAUTHORITY}" ] ; then export XAUTHORITY="${HOME}/.Xauthority" ; fi
Thank you for your response!
Unfortunately I still have the same problem…
Have you completely logged out and then logged in again (i.e., not just opening a new terminal window)?
Yes, I completely restarted my computer!
Well, if you are the only user, try (should be “safe”):
xhost +local:
or, if there are more users:
xhost +SI:localuser:${USER}
I obtain a huge segmentation violation. There might be several problems, I’m sorry, this is not at all my area of expertise.
This requires the expertise of a “ROOT Snap package ” specialist (e.g., the person responsible for it).
Just to make sure … what do you get from: echo ${XAUTHORITY}
echo ${XAUTHORITY} returns:
/run/user/1000/.mutter-Xwaylandauth.XRJIF3
Thank you very much for taking the time to help me!
That’s the problem (that I suspected) … “XAUTHORITY” should be: “${HOME}/.Xauthority”.
Snap cannot access “/run/...” (it can access “/home/...”).
But the “segmentation violation” is another issue, I think.
I do understand better the problem. All I have to do now is solve it. Then I can move on to the problem of segmentation…
I wonder why your suggestion
if [ -z "${XAUTHORITY}" ] ; then export XAUTHORITY="${HOME}/.Xauthority" ; fi
is not working. I did add it to my ${HOME}/.profile. I do not have a ${HOME}/.bash_login.
You could try the “brutal way” (“ohne Wenn und Aber”). Add:
export XAUTHORITY="${HOME}/.Xauthority"
Dear Wile_E_Coyote,
This weekend I decided to completely reinstall my Ubuntu. There were several problems with my machine, it didn’t hurt. My TBrowser works fine now!
Thank you so much for your help.
Regards,
Sarah
Dear linev,
Many thanks for your response! There were to much problems with my computer, this week-end I decided to completely reinstall my Ubuntu. My TBrowser works fine now!
Regards,
Sarah
2 Likes