在windows系统下安装PANDA的详细全步骤
1、在windows系统下安装虚拟机(Linux)
安装一个虚拟机.下载一个VMWare Player并安装
2、在Linux虚拟机中安装FSL
(1)在FSL官网中,下载的FSLvm,MD5summer, fsl-5.0.8-centos6_64.tar.gz(如果是为
了使用PANDA下载fsl,我们建议使用fsl网站上前面两个Centos版本,这个版本在ubuntu下也是可以的,不要使用Debian/Ubuntu版本,使用这个版本是用不了PANDA的)
将下载的FSLvm,MD5summer并解压
运行MD5summer,选择FSLVm6_64文件夹,点击Create sums.
选择FSLVm6_64文件夹,点击Create sums.
Select All -> Add -> OK. 形成一个FSLVm6_64.md5文件
运行VMWare Player -> Open a Virtual Machine.
选择FSLVm6_64,然后Play.第一次运行的时候会问if the VM was moved or copied,选择I copied it.然后可能要更新.
如果没有自动跳出FSLVM6_64,则选择打开虚拟机,选择刚才生成好的
登陆,密码是fsluser.
(2)进入linux的界面中,
1)将fsl-5.0.8-centos6_64.tar.gz拷贝到/home/fsl下,打开一个终端(Ctrl + Alt + T)2)进入/home/fsl目录下
cd /home/fsl
3)解压压缩包
tarzxvffsl-5.0.8-centos6_64.tar.gz
4)切换到root用户下
su输入密码fslroot
5) 将fsl的环境变量写到系统文件中(只需将下面命令拷贝到终端执行)
echo "FSLDIR=/home/fsl/fsl" >> /etc/profile
echo ". \${FSLDIR}/etc/fslconf/fsl.sh" >> /etc/profile
echo "PATH=\${FSLDIR}/bin:\${PATH}" >> /etc/profile
echo "export FSLDIR PATH" >> /etc/profile
重启机器,即可
6)使用fsl
打开一个终端,输入fsl,即可
3、在Linux虚拟机中安装Matlab
1)下载一个Linux的matlab安装包
例如'MatlabR2012a.ISO'(/topics/2919294/)
2)复制到虚拟机中如:/home/fsl目录下
Matlab的文件路径就是'/home/fsl/MatlabR2012a.ISO'
3)切换到根用户下 ,打开终端输入:
sudo su
(input passwd of the user):fsluser
4)在home/fsl/ 路径下新建一个文件夹mnt, 然后将matlab的安装文件挂载到mnt文件夹中,在终端输入:
mount -o loop /home/username/MatlabR2012a.ISO /home/fsl/mnt
5)退出su模式(关闭终端)
6)再重新打开终端。
输入
cd home/fsl/mnt
./install
A GUI for installation will open,
Click 'Next'
Click 'Next'
Open a terminal:
Ctrl+Alt+T
View content of install.txt :
cat /home/fsl/mnt/crack/install.txt
For example:Content of R2012 was as listed,
we offer you two ways to license matlab r2012a:
standalone
1) choose "install manually without using the internet"
2) enter the "file installation key"
38699-60149-36808-21840-05491
3) use "license_standalone.dat" when asked for license file
network
1) choose "install manually without using the internet"
2) enter the "file installation key"
40736-02586-02713-46114-19557
3) if neccessary install "license manager"
4) use "license_server.dat" when asked for license file
We use the first case 'standalone', Copy '38699-60149-36808-21840-05491' to the GUI Then click 'Next'
Click Next
Click 'Next', and input '/home/fsl/MATLAB/R2012a/'注意不要放在root用户下,后续安装PANDA会产生问题
Click 'Next'
Click 'Yes'
Click 'Next'
Click 'Next'
Click 'Finish'
Enter the path of MATLAB
cd /home/fsl/ MATLAB /R2012a/bin Open matlab
./matlab
A GUI for activating Matlab will open,
Click 'Next'
Click 'Browse'
Enter path '/home/fsl/mnt/crack' Select file lic_standalone.dat,
Click 'Select'
Click 'Next'
Then, the installation and activation of Matlab were finished.
进入root模式
Su,输入密码:fslroot
Add the path of Matlab to the Linux evnironment variable 'PATH'
echo "PATH=/home/fsl/MATLAB/R2012a/bin:\${PATH}" >> /etc/profile
echo "export PATH" >> /etc/profile
Reboot the computer.
Enter 'matlab' in the terminal, and then matlab will open.
4、在matlab中安装PANDA
1)先下载一个panda的压缩包,如:PANDA_1.3.0_64.tar.gz,复制到虚拟机中
如路径为/home/fsl/PANDA_1.3.0_64.tar.gz
2)将压缩包解压
在终端中输入:
tarzxvf/home/fsl/PANDA_1.3.0_64.tar.gz
3)在matlab中设置路径
File -> Set path -> Add with Subfolders (select PANDA folder ‘PANDA-
1.3.0_64’) -> Save
Then, entering ‘PANDA’ in Matlab command window will openPANDA’s GUI.。