FreeSurfer/Fsl Course Setup

Notes on how to prepare a freesurfer bundle used for the yearly FSL/Freesurfer course. Some general notes:

freesurfer bundle

All binaries, data, slides and static wiki pages need to be assembled into one directory, tarballed, and sent to the FSL guys to put on their image machine. These are steps to assemble this bundle locally:

  1. find a shareable location to which LCN people can write files, or use this dir: /autofs/space/terrier_001/scratch/fsfsl_course

  2. install freesurfer here, use a public tarball, which you can untar from here: /space/freesurfer/build/pub-releases

  3. copy a .license file into the freesurfer dir
  4. determine which tutorial data will be used for the course and put it under the freesurfer/subjects dir, typically this means to copy this dir: /space/freesurfer/subjects/buckner_data but note that its better to create a tar first then untar, since you dont want to copy the data in the symlinks, just the symlinks, or just use this tarball: /autofs/cluster/birn/LEGACY/45/users/BWH/buckner_data/ buckner_data-tutorial_subjs.tar.gz

  5. make the data writable: chmod -R a+rwX freesurfer/subjects

  6. create a slides directory and copy all the slides into that dir

  7. from a CentosOS 6 64b machine, do this /cp -r /usr/lib64/GLoverride freesurfer/

  8. create file called fsfsl_cshrc containing these lines, and in the .cshrc that the FSL guys create for us for the 'freesurfer' account it should source this file:

setenv FREESURFER_HOME /usr/local/freesurfer
setenv LD_LIBRARY_PATH $FREESURFER_HOME/GLoverride
setenv TUTORIAL_DATA $FREESURFER_HOME/subjects
setenv SUBJECTS_DIR $TUTORIAL_DATA/buckner_data/tutorial_subjs
source $FREESURFER_HOME/SetUpFreeSurfer.csh
  1. create a wiki snapshot and copy it to: freesurfer/FsTutorial

  2. edit the index.html page in FsTutorial so that the slide links point at those in the local freesurfer/slides directory

  3. point your browser at that local index.html file
  4. unplug the machine from the network and make sure it all slides and tutorials work
  5. make sure the FSL guys setup Firefox so that its default home page is /usr/local/freesurfer/FsTutorial/index.html