Skip to content

Commit 4f7f44b

Browse files
committed
Remove Enabling Graphics section from README
1 parent a917aa7 commit 4f7f44b

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -59,39 +59,6 @@ The `-v` option tells Docker to mount the home directory (`~`) to `/userhome` in
5959
[Configuring Docker for Windows Shared Drives / Volume Mounting with AD](https://blogs.msdn.microsoft.com/stevelasker/2016/06/14/configuring-docker-for-windows-volumes/)
6060
[More about mounting host directories in the container.](https://docs.docker.com/engine/tutorials/dockervolumes/#mount-a-host-directory-as-a-data-volume)
6161

62-
### Enabling graphics
63-
64-
##### Linux
65-
To use graphics, make sure you are in an X11 session and run the following command:
66-
67-
```
68-
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --rm -it --user $(id -u) rootproject/root root
69-
```
70-
71-
On some platforms (e.g., Arch Linux) connections to the X server must be allowed explicitly by executing `xhost local:root` or an equivalent command (see e.g. [this page](https://wiki.archlinux.org/index.php/Xhost) for more information on `xhost` and its possible security implications).
72-
73-
##### OSX
74-
To use graphics on OSX, make sure [XQuarz](https://www.xquartz.org/) is installed. After installing, open XQuartz, and go to XQuartz, Preferences, select the Security tab, and tick the box "Allow connections from network clients". Then exit XQuarz. Afterwards, open a terminal and run the following commands:
75-
```
76-
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
77-
```
78-
This will grab your IP address on the local network. Run `echo $ip` to make sure it was successful. If nothing is displayed, replace `en0` with `en1` or a higher number in the command.
79-
```
80-
xhost + $ip
81-
```
82-
This will start XQuartz and whitelist your local IP address. Finally, you can start up ROOT with the following command:
83-
```
84-
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$ip:0 rootproject/root root
85-
```
86-
87-
##### Windows
88-
To enable graphics, you must have [Xming](https://sourceforge.net/projects/xming/) installed. Make sure Xming is whitelisted in the Windows firewall when prompted. After installing Xming, white-list the IP-address of the Docker containers in Xming by running the following command in PowerShell as administrator:
89-
``Add-Content 'C:\Program Files (x86)\Xming\X0.hosts' "`r`n10.0.75.2"``
90-
Restart Xming and start the container with the following command:
91-
```
92-
docker run --rm -it -e DISPLAY=10.0.75.1:0 rootproject/root
93-
```
94-
9562
## Examples
9663
[See GitHub for example Dockerfiles.](https://github.com/root-project/docker-examples)
9764

0 commit comments

Comments
 (0)