...
Open terminal
Go to home directory (cd ~)
gedit .bashrc
add these three lines:
Code Block language bash export FREESURFER_HOME=/usr/local/freesurfer # Do custom SUBJECTS_DIR first, as FS startup will set to default if missing export SUBJECTS_DIR=/mnt/hgfs/LinuxShare/subjects4freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.sh
save and restart terminal; test by running “freeview”
...
Permissions
brain@ubuntu:~$ sudo chmod -R a+w $SUBJECTS_DIR
...