Skip to content

Commit

Permalink
fsl: add info on display variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Mar 25, 2024
1 parent 1e4e763 commit 90800f1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions software/FSL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ https://fsl.fmrib.ox.ac.uk/fsl/fslwiki

A container with a relatively old version (5.0.7) can be build from `fsl5.Dockerfile`.

To run with the correct display options, use:

```console
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist "$DISPLAY" | sed -e 's/^..../ffff/' | xauth -f "$XAUTH" nmerge -

docker run --rm -it \
-e USER="$USER" \
-e DISPLAY="$DISPLAY" \
-e XAUTHORITY="$XAUTH" \
-v $XSOCK:$XSOCK \
-v $XAUTH:$XAUTH \
<image-name>
```

### Neurodocker

Using [neurodocker](https://www.repronim.org/neurodocker/index.html):
Expand Down

0 comments on commit 90800f1

Please sign in to comment.