AFNI GUI doesn't open

Hello,

I have been following the instruction to install AFNI. When I tried to launch the AFNI GUI by running the “afni” command, I get an error message. Please check the attached screenshots and share your advice on the next step. Thanks.

Hi-

Right now, your $DISPLAY variabile is not set in your system. Can you please do step #4 here (copy+pasting a few commands into the terminal) and then open a new terminal to try again:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_windows10.html#install-vcxsrv-windows-x-server
?
That should set up your terminal $DISPLAY variable. Note that Step #3 there describes how to set up easier copy+paste capability on the Windows Subsystem Linux. Note also Step #2 that describes how to set up your X server each time you open the Linux environment (which is necessary, as well).

-pt

Hello Pt,

I followed your instruction by running the commands and restarting the Ubuntu terminal, but I still get the same error message. Can you make other suggestions?

Sungjin

Hi, Sungjin-

After running those suggested changes, when you start your VcXsvr and then open a new terminal, what is the output of the following:


echo $DISPLAY

?

After running the command, I see “:0.0” ( 0 is a zero).

Sungjin

So, running “afni” still gives you an error message? Can you run:


afni_system_check.py -check_all

and copy+paste the full results?

Also, just to make sure-- did you double click the VcXsrv icon on your desktop before starting the Ubuntu terminal session?

–pt

Hello Pt,

You are right. I forgot to install the VcXsrv server, and after the installation, both AFNI and suma are working fine. Thanks for your help!

Sungjin

Hi, Sungjin-

OK, cool, glad that has sorted it.

–pt