surf-ice icon indicating copy to clipboard operation
surf-ice copied to clipboard

Running surfice in environment without GUI

Open guilhermepovala opened this issue 2 years ago • 2 comments

Good morning,

I'm trying to run Surfice with the command line in an environment that doesn't have an available display or GUI. Are there any workarounds that I could use to make it work?

The problem of not having an available GUI is that even using the -S option, it stills opens up the Surfice GUI and runs the script in the interface.

Thank you very much for any help.

guilhermepovala avatar Jan 12 '24 17:01 guilhermepovala

You may want to see this NITRC issue. You can certainly call Surfice and MRIcroGL from the context, but they will require a OpenGL context to generate graphics. I would expect you can run https://stackoverflow.com/questions/33787542/force-existing-opengl-application-to-render-offscreen-on-a-headless-machine and use mesa to emulate a graphics card if you do not have one.

neurolabusc avatar Jan 13 '24 13:01 neurolabusc

Good to know, I will give it a try. Not sure if this will work on an automated pipeline that process PET images to the MNI space and uses Surfice to plot the PET on a surface.

guilhermepovala avatar Jan 13 '24 14:01 guilhermepovala