MIPLAB

FAQ:

Q [Serafeim] How can I copy my data from the server to my local machine without entering my password every single time?

A [Serafeim] Use sshpass (see here) inside a matlab/python/bash script to automatically perform a scp

    Example in python:   os.system( 'sshpass -p "MYPASS" scp MYNAME@SERVER.epfl.ch:' +          data_path +'/T1reo_bet.nii.gz ' + save_to_path) 

 

Q [Daniela]: How to visualize brain data?

A [Daniela]: Check out a few options here.

 

Q [Lorena]: How can I ssh to the server (or between servers) without having to type my password everytime?

A [Lorena]: Install an ssh key between them. See this link for a tutorial.

 

Q [Lorena]: How do I leave matlab running on the server even after I disconnect?

A [Lorena]: use Screen.

 

Q [Naghmeh]:Why I got error when I work on SPM.mat files that I changed their path?

A [Naghmeh]: the address to the nifti images is saved in the file so u need to change the address in the data structure too. the function is called "spm_change_paths". you can find it in files/codes section of this wiki.

 

Q [Naghmeh]:How can I copy files with subfolders from one server to another server in terminal?

A [Naghmeh]: cp -r destination-server-name@your-username.epfl.ch source-server-name@your-username.epfl.ch

A [Daniela]: you can also use rsync -auh --progress <source> <destination> (rsync). It only works from server to local or local to server, but it compares the versions in the directories and updates the new files.

 

Q [Naghmeh]:How to copy paste in Matlab on linux Serverl?

A [Naghmeh]: cmd+c Ctr+y