Skip to content

Update README.md: Add --web=off for graphics #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sangbaek
Copy link

@Sangbaek Sangbaek commented Jun 21, 2025

Trouble

My machine prints out the following message when I executed the suggested command, docker run -it -v ${PWD}:/home/${USERNAME} -e DISPLAY=host.docker.internal:0 rootproject/root:latest root, under Enabling Graphics at README.md:

Find more info on https://root.cern/for_developers/root7/#rbrowser
Info in <THttpEngine::Create>: Starting HTTP server on port 127.0.0.1:9642

ROOT web-based widget started in the session where DISPLAY set to host.docker.internal:0
Means web browser will be displayed on remote X11 server which is usually very inefficient
One can start ROOT session in server mode like "root -b --web=server:8877" and forward http port to display node
Or one can use rootssh script to configure port forwarding and display web widgets automatically
Find more info on https://root.cern/for_developers/root7/#rbrowser
This message can be disabled by setting "WebGui.CheckRemoteDisplay: no" in .rootrc file
sh: 1: xdg-open: not found

Solution

This can be avoided by replacing root with bash -c 'root -l --web=off'.

## Trouble 

My machine prints out the following message when I executed the suggested command, `docker run -it -v ${PWD}:/home/${USERNAME} -e DISPLAY=host.docker.internal:0 rootproject/root:latest root`,  under `Enabling Graphics` at [README.md](https://github.com/root-project/root-docker/blob/master/README.md):

```
Find more info on https://root.cern/for_developers/root7/#rbrowser
Info in <THttpEngine::Create>: Starting HTTP server on port 127.0.0.1:9642

ROOT web-based widget started in the session where DISPLAY set to host.docker.internal:0
Means web browser will be displayed on remote X11 server which is usually very inefficient
One can start ROOT session in server mode like "root -b --web=server:8877" and forward http port to display node
Or one can use rootssh script to configure port forwarding and display web widgets automatically
Find more info on https://root.cern/for_developers/root7/#rbrowser
This message can be disabled by setting "WebGui.CheckRemoteDisplay: no" in .rootrc file
sh: 1: xdg-open: not found
```

## Solution

This can be solved by updating the `root` with `bash -c 'root -l --web=off'.
@Sangbaek Sangbaek requested a review from dpiparo as a code owner June 21, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant