Installation based on wiki instructions, but Ubuntu has specific issues
...
Ubuntu
Startup
There are multiple startup files in bash. Seems like the one that works is “.bashrc” as opposed .bash_login, .bash_profile etc.
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
...