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

Pass XAUTHORITY env? #328

Open
rhancockn opened this issue Nov 15, 2024 · 1 comment
Open

Pass XAUTHORITY env? #328

rhancockn opened this issue Nov 15, 2024 · 1 comment
Assignees

Comments

@rhancockn
Copy link

I had trouble running a GUI over untrusted (ssh -X) X11 forwarding. The container was launched as a slurm job, which may interact with this. The container was launched with

singularity --silent exec --cleanenv --env DISPLAY=$DISPLAY  --bind $TMPDIR:/tmp $neurodesk_singularity_opts --pwd "$PWD" PATH/neurocommand/local/containers/bidscoin_4.4.0_20241003/bidscoin_4.4.0_20241003.simg bidseditor bids

Passing in the XAUTHORITY environment variable fixed this:

singularity --silent exec --cleanenv --env DISPLAY=$DISPLAY --env XAUTHORITY=$XAUTHORITY --bind $TMPDIR:/tmp $neurodesk_singularity_opts --pwd "$PWD" PATH/neurocommand/local/containers/bidscoin_4.4.0_20241003/bidscoin_4.4.0_20241003.simg bidseditor bids

Could the transparent singularity wrapper include XAUTHORITY env by default? Or is there another way of the user manipulating the singularity options (I couldn't find this in the docs)?

@stebo85
Copy link
Contributor

stebo85 commented Nov 18, 2024

Dear @rhancockn,

Thank you for reporting this. We have to do a few tests to make sure we can include it as a default.

A workaround is to use the neurodesk_singularity_opts environment variable to set this option for your system:

export neurodesk_singularity_opts="--env XAUTHORITY=$XAUTHORITY"

@stebo85 stebo85 moved this from New to Active in NeuroDesk Dec 3, 2024
@stebo85 stebo85 self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Active
Development

No branches or pull requests

2 participants