External Email - Use Caution        


 Did you try the different settings for DISPLAY as shown on this wiki page ?
https://surfer.nmr.mgh.harvard.edu/fswiki/FS7_wsl_ubuntu

Before trying to run freeview, you could try running a test X-Windows program like glxgears

$ sudo apt install mesa-utils
$ which glxgears
/bin/glxgears
$ glxgears

If your WSL environment is setup correctly to communicate with the X-server running on the Windows host, then you should see a window displaying running gears.

Besides Xming - which some people have not been able to get to work - you could also try MobaXterm or VcxSrv instead for X-Windows servers.  There are links to those on the above wiki page.

- R.

On Feb 1, 2025, at 11:43, Paola Di Filippo <paola.difilippo@unifg.it> wrote:

        External Email - Use Caution        


hi everyone,
i have succesfully managed to install freesurfer on my windows computer, with WSL2 and UBUNTU 22.04.
when i open ubuntu this is what i get:

-------- freesurfer-linux-ubuntu22_x86_64-7.4.1-20230614-7eb8460 --------
Setting up environment for FreeSurfer/FS-FAST (and FSL)
FREESURFER_HOME   /usr/local/freesurfer/7.4.1
FSFAST_HOME       /usr/local/freesurfer/7.4.1/fsfast
FSF_OUTPUT_FORMAT nii.gz
SUBJECTS_DIR      /usr/local/freesurfer/7.4.1/subjects
MNI_DIR           /usr/local/freesurfer/7.4.1/mni
paolasofia@OR5909:~$

then when i try to launch freeview, this is what i get:
paolasofia@OR5909:~$ freeview
could not connect to display :0
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl, xcb.

Aborted

i have installed freesurfer on my laptop following the same instructions, the ones on freesurfers website, and freeview is working fine. I searched online for suggestions and solutions but I can't seem to be able to solve the problem. i have tried it all, i am desperate. I hope somebody can help me.


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer