Skip to content
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

Running surfice in environment without GUI #39

Open
guilhermepovala opened this issue Jan 12, 2024 · 2 comments
Open

Running surfice in environment without GUI #39

guilhermepovala opened this issue Jan 12, 2024 · 2 comments

Comments

@guilhermepovala
Copy link

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.

@neurolabusc
Copy link
Owner

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.

@guilhermepovala
Copy link
Author

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.

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

No branches or pull requests

2 participants