How to install FreeSurfer ========================= laMEG requires FreeSurfer to process cortical surfaces. Download Freesurfer 6.0.0 ------------------------- .. code-block:: bash wget https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/6.0.0/freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0.tar.gz sudo tar -C /usr/local -xzvf freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0.tar.gz Add ``FREESURFER_HOME`` and ``SUBJECT_DIR`` to /home/````/.bashrc: .. code-block:: bash export FREESURFER_HOME=/usr/local/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.sh export SUBJECTS_DIR= Add a `license.txt` File ------------------------ Go to https://surfer.nmr.mgh.harvard.edu/registration.html and copy it into `/usr/local/freesurfer`.