1) Switch to root user
sudo su
2) Create a folder named 'Software' under /opt
mkdir /opt/software
3) Copy fsl to /opt/Software
For example, the path of fsl is /home/username/fsl-5.0.0-centos5_64.tar.gz
cp /home/username/fsl-5.0.5-centos6_64.tar.gz /opt/software
4) Go to /opt/Software directory
cd /opt/software
5) Extract the package
tar zxvf fsl-5.0.5-centos6_64.tar.gz
6) Write the environment variables to system file (Copy the commands to terminal)
echo "FSLDIR=/opt/software/fsl" >> /etc/profile
echo ". \${FSLDIR}/etc/fslconf/fsl.sh" >> /etc/profile
echo "PATH=\${FSLDIR}/bin:\${PATH}" >> /etc/profile
echo "export FSLDIR PATH" >> /etc/profile
7) Reboot the computer
sudo su
2) Create a folder named 'Software' under /opt
mkdir /opt/software
3) Copy fsl to /opt/Software
For example, the path of fsl is /home/username/fsl-5.0.0-centos5_64.tar.gz
cp /home/username/fsl-5.0.5-centos6_64.tar.gz /opt/software
4) Go to /opt/Software directory
cd /opt/software
5) Extract the package
tar zxvf fsl-5.0.5-centos6_64.tar.gz
6) Write the environment variables to system file (Copy the commands to terminal)
echo "FSLDIR=/opt/software/fsl" >> /etc/profile
echo ". \${FSLDIR}/etc/fslconf/fsl.sh" >> /etc/profile
echo "PATH=\${FSLDIR}/bin:\${PATH}" >> /etc/profile
echo "export FSLDIR PATH" >> /etc/profile
7) Reboot the computer