I have already installed Xlaunch previously and used that for FSL without issue. However, when I type “afni” in the shell, I am met with the below error. Does anyone know of a solution? Thanks!
Initializing: X11Error: Can’t open display: :0.0
++ AFNI is detached from terminal.
An alternative to running AFNI in WSL with a local Xserver is to use our open-source Neurodesk project It provides many neuroimaging tools (including afni) in a single software container and makes it all easily accessible
Thank you both! Installing AFNI was still giving me issues on WSL, so I’m going to try Stebo’s open source version. I appreciate both of your responses.
The NeuroDesk docker solution looks good, and I just tried the guest demo version. It’s a bit laggy for me, but it’s still completely usable.
If you’re having problems with the Xwindows display, setting the wsl version to version 1 seems to help for some systems. MobaXterm, X410, Win32 are alternative X servers that work well too.
It looks like docker isn’t running? Can you check if you started docker, then try to run the docker command in Windows Powershell to exclude any issues with your wsl setup.