External Email - Use Caution
Try running the bash shell i.e., exec a new bash shell in the terminal window,
$ bash
I assume you installed the .deb file,https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.4.1/freesurfer_ubuntu18-7..4.1_amd64.deb
… from where you downloaded it to with the command ...
$ sudo apt install ./freesurfer_ubuntu18-7.4.1_amd64.deb
But if you did not run that command, then please do so.
Make sure this package is installed. If it is already installed, the system should report there is nothing to do.
$ sudo apt install mesa-utils
If these 2 environment variables are not already set in your environment, i.e., there is no output listed for them using the echo command,
$ echo $XDG_RUNTIME_DIR
$ echo $DISPLAY
…. then I would try setting them to be ...
$ export XDG_RUNTIME_DIR=$HOME/.xdg
$ export DISPLAY=:0
Then try running glxgears,
$ glxgears
If glxgeaqrs does not display rotating gears then there is something still not right with your graphics, display, system settings.
If glxgears worked, then setup the freersurfer environment,
$ export FREESURFER_HOME=/usr/local/freesurfer/7.4.1
$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
<output deleted>
$ which freeview
/usr/local/freesurfer/7.4.1/bin/freeview
… then try opening an empty window with freeview …
$ freeview
If that worked, close the freeview window and try opening one of the provided volumes,
$ freeview $SUBJECTS_DIR/bert/mri/brain.mgz
If that worked, then try opening one of your own files with freeview.
If opening the bert volume file did not work, try setting this environment variable and re-run that command to open that volume,
$ export QT_DEBUG_PLUGINS=1
$ freeview $SUBJECTS_DIR/bert/mri/brain.mgz
… you will see quite a bit of output. Look towards the end of the output and try to identify what it says is missing or what was not found on the system.
- R.
On Feb 13, 2025, at 22:55, Gonzalo Rojas Costa <gonzalo.rojas.costa@gmail.com> wrote:
External Email - Use Caution
Hi:
it is freesurfer-linux-ubuntu18_x86_64-7.4.1-20230614-7eb8460, under Ubuntu 18.04.4 LTS. In a real physical ubuntu.
Sincerely,
Gonzalo M. Rojas-Costa
Adjunct Assistant Professor
School of Medicine
Finis Terrae University
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer