External Email - Use Caution        

Hello Maaike,

If you have not already done so, I would try,

$ export DISPLAY=:0.0

See if you get the same IP address you used below from the ip route command.  If you don’t see the ip command is installed with,

$ which ip
/bin/ip

… then sudo (or as root) to install it by doing,

$ sudo apt install iproute2

… when done you should see

$ which ip
/bin/ip

Then see what you get for an IP address with the command below.  Just as an example let’s say the result was 172.40.20.10

$ ip route|awk '/^default/{print $3}'
172.40.20.10

If you get a different IP address as the result from the ip command compared to the IP address you already tried setting in DISPLAY, then try setting DISPLAY with the above address - appending :0.0 to it, e.g., using my pretend IP address result,

$ export DISPLAY=172.40.20.10:0.0

If this does not work with Xming, then try using MobaXterm.  Some people have found MobaXTerm to be more reliable and easier to setup compared to Xming.
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mobaxterm.mobatek.net

FYI, if you are OK with running Freesurfer 7.2.0, then if you have not already done so, I would suggest you try installing and running the Ubuntu 18 Freesurfer debian package on Ubuntu 20.

… download from,
https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.2.0/freesurfer_7.2.0_amd64.deb

… then to install
$ sudo apt install ./freesurfer_7.2.0_amd64.deb

- R.

On May 2, 2022, at 15:32, Maaike Oosterling <maaikeoosterling@hotmail.com> wrote:

        External Email - Use Caution        

Hello everyone,

As I currently do not have any access to university servers, I am trying to install Freesurfer on my own personal Windows laptop, mostly just to experiment in between doing actual studies.

I followed the FS7_wsl_ubuntu guide, running it on WSL2/Ubuntu 20 and as I am not really that good with computers at all, I was already impressed with myself I got this far... until I hit the error predicted in the guide. I followed the guide's steps to edit $DISPLAY and I have also edited the Xming X0.hosts file to represent my own localhost

maaikeo@LAPTOP-EA4GL46K:/mnt/c/Program Files (x86)/Xming$ cat X0.hosts
localhost
172.27.128.1
maaikeo@LAPTOP-EA4GL46K:~ echo $DISPLAY
172.27.128.1:0

Yet I am still getting the same error as before (although I feel the 'No protocol specified' is new...)

maaikeo@LAPTOP-EA4GL46K:~$ freeview
No protocol specified
QXcbConnection: Could not connect to display 172.27.128.1:0
Could not connect to any X display.

I've looked all over and have found numerous threads that slightly relate to this issue, but none of the fixes listed there. I have double checked my Xming install and it is definitely running in the background.. Is there anything I might have missed? Or is this an indicator that my laptop is just not up for the task?

Thanks in advance!
Maaike Oosterling

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer