Skip to content

Commit

Permalink
document need for xvfb/osmesa on headless (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock authored Sep 20, 2024
1 parent 9b35993 commit f9c8177
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/source/getting_started/freesurfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
Preparations for inverse modeling involve the installation of
[FreeSurfer](https://surfer.nmr.mgh.harvard.edu/fswiki/).
If you do not intend to run the source reconstruction steps of MNE-BIDS-Pipeline,
you can skip the instructions below.
you can skip the instructions on this page.

Additionally, to visualize the source reconstruction steps and add those images to
the pipeline reports, the pipeline must be run on a machine capable of 3D rendering
(i.e., not a headless server). If you must use a headless server, you should either
prefix the pipeline command with `xvfb-run` (to use
[xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) to emulate a
display), or alternatively you can install a different version of one of our
dependencies (the 3D library `vtk`) that does offscreen rendering (see
[these instructions](https://mne.tools/stable/install/advanced.html#installing-to-a-headless-linux-server)
on the MNE-Python website).

!!! warning
FreeSurfer does not natively run on Windows. We are currently working on
Expand Down Expand Up @@ -70,3 +80,4 @@ creation.
*[FLASH]: Fast low angle shot
*[MRI]: Magnetic resonance imaging
*[BEM]: Boundary element model
*[xvfb]: X virtual framebuffer
1 change: 1 addition & 0 deletions docs/source/v1.10.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

- Choose the theme (dark of light) automatically based on the user's operating system setting (#979 by @hoechenberger)
- Bundle all previously-external JavaScript to better preserve users' privacy (#982 by @hoechenberger)
- Document the need for offscreen rendering support when running on headless servers (#997 by @drammock)

### :medical_symbol: Code health

Expand Down

0 comments on commit f9c8177

Please sign in to comment.