External Email - Use Caution
It would be good to know what version of Ubuntu you are running in WSL. You can see that in the Ubuntu linux terminal window with the command below, and you should see something like the following ...
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
- which in this case indicates Ubuntu 22.
I would also check you used the Ubuntu 22 .dev installer package from,
https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.4.1/freesurfer_ubun... - and installed it from wherever you downloaded it to on the Ubuntu system with the command,
$ sudo apt install ./freesurfer_ubuntu22-7.4.1_amd64.deb
If you didn't use that installer, then the system may be missing xcb related files it needs to run Qt, etc.
If you got that Qt error even after the freesurfer .deb package install completed with no errors, then you could try the commands,
$ xhost +local:
$ sudo apt-get install --reinstall libxcb-xinerama0
Please note you need a license.txt file for freeview to find. You can put that in your $HOME directory on linux and set the environment variable FS_LICENSE to point to it
$ export FS_LICENSE=$HOME/license.txt
$ head -1 $FS_LICENSE
you@somewhere.com <----- email address you used to reigster via the form,
Then try running freeview again (with no arguments to see if it can open an empty window). $ freeview
- R.
On 9/19/24 17:31, Barsotti, Ercole (john-barsotti@uiowa.edu) wrote:
External Email - Use Caution
Just re-upping this message in case anyone has any ideas. :)
Hi all,
I've successfully downloaded Freesurfer version 7.4 and can run its commands, with the exception of Freeview. I downloaded and installed Xming, like the FreeSurfer instructions tell you (https://freesurfer.net/fswiki/FS7_wsl_ubuntu), but this does not seem to work, either. I am using Ubuntu on a Windows computer. I get the following error when I run the freeview command :
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, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted
Best,
John
From: Barsotti, Ercole <john-barsotti@uiowa.edu>
Sent: Thursday, September 19, 2024 12:21 AM
To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Subject: Running Freeview from Ubuntu
Hi all,
I've successfully downloaded Freesurfer version 7.4 and can run its commands, with the exception of Freeview. I downloaded and installed Xming, like the FreeSurfer instructions tell you (https://freesurfer.net/fswiki/FS7_wsl_ubuntu), but this does not seem to work, either. I am using Ubuntu on a Windows computer. I get the following error when I run the freeview command :
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, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted
Any ideas?
Best,
John
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline%3E; . Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
freesurfer@nmr.mgh.harvard.edu