Freesurfer Installation

Download software

Download the linux software version.

Run the following command:

sudo tar -C /usr/local -xzvf /mnt/c/Users/*[your_username]*/Downloads/freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0.tar.gz

You will also need to install some dependancies:

sudo apt-get install tcsh
sudo apt-get install libglu1
sudo apt-get install libxss1

Post-Install Configurations

Add Freesurfer to your path:

echo "FREESURFER_HOME=/usr/local/freesurfer" >> ~/.bashrc
echo 'source $FREESURFER_HOME/' >> ~/.bashrc

If you have run the install correctly you will see this output:

Setting up environment for FreeSurfer/FS-FAST (and FSL)
FREESURFER_HOME /usr/local/freesurfer
FSFAST_HOME     /usr/local/freesurfer/fsfast
SUBJECTS_DIR    /usr/local/freesurfer/subjects
MNI_DIR         /usr/local/freesurfer/mni

Define subjects_dir

FreeSurfer requires an environment variable called SUBJECTS_DIR. This is the directory where subject data is stored.

export SUBJECTS_DIR=<path to subject data>

Obtain license

You will need to obtain a license key.

Once you obtain the license.txt key file, copy it to your FreeSurfer installation directory. This is also the location defined by the FREESURFER_HOME environment variable.

sudo mv /mnt/c/Users/*[your_username]*/Downloads/license.txt $FREESURFER_HOME