How To Install and Configure Matlab on remote Windows client
Step 1. Create Kerberos5 credential tickets
Ask for the Network Identity Manager to be installed on your managed desktop. Open the Network Identity Manager, create a new credential for the realm EASE.ED.AC.UK, set it to be default.
Step 2. Create a Putty session
Open Putty (n:\Putty\putty.exe). In the Session category, type your_uun@eddie.ecdf.ed.ac.uk into the Host Name field. Tick the two kerberos5 related checkboxes in Connection->SSH->Auth. Then save this session as eddie
If you have any question about using Putty or Plink, go to the PuTTY user manual at:
Step 3. Test command line login
Open a command line console using Start->Run->cmd, and execute the following command:
n:\Putty\plink eddie hostname
If you get the result of either frontend01 or frontend02 without a password prompt, your passwordless login is successful. If you get asked for your password, something has gone wrong. Check you have a valid kerberos ticket using the Network Identity Manager.
Step 4. Access shared directory
You'll be provided a disk share by the ECDF systems team. You can explore and write to this shared directory using the command line as follows.
In this example, we use a share named is_iti_ug (normally we will share your work space), and it already contains a subdirectory ywan
# to browse the content in the subdirectory dir \\nas01.ecdf.ed.ac.uk\is_iti_ug\ywan # to write a file into this directory echo "Hello" > \\nas01.ecdf.ed.ac.uk\is_iti_ug\ywan\test.txt more \\nas01.ecdf.ed.ac.uk\is_iti_ug\ywan\test.txt "Hello"
If you cannot access your shared directory, contact science support at:
Step 5. Install Matlab
To submit Matlab jobs to eddie, you need to install Matlab plus the Distributed Computing Toolbox on your desktop. The version we have tested is 3.1 R2007a. You may need administrator privileges to install Matlab, ask your school computing officer for help. You'll be prompted for a Personal License Password during the installation, which should have been given to you by Mathworks when you purchased your licenses.
Note: Matlab and the Distributed Computing Toolbox (DCT) are served by different licenses. You will need buy a seperate DCT license if you were a traditional Matlab user.
You can ask for installation files and trial licenses from Mathworks through the following link:
http://www.mathworks.com/products/distribtb/tryit.html
The following instructions show how to install Matlab and the Distributed Computing Toolbox on a Windows desktop:
http://www.mathworks.com/support/product/DM/installation/ver_current/instructions/s3_PTw.pdf
Step 6. Start Matlab
When you finish the installation, start Matlab with Start->All Programs->MATLAB->R2007a->MATLAB R2007a, you should see the familiar Matlab user interface. In the command window prompt, type:
>> help findResource
If you see help info for this function, that means the Distributed Computing Toolbox has been installed.
Step 7. Matlab Configuration
To allow Matlab and the Distributed Computing Toolbox to cooperate with the Matlab Distributed Computing Engine on eddie, you need install the following files:
For Matlab distributed jobs:
sgeSubmitFcn.m (windows) - installed under any Matlab path. (i.e. C:\Program Files\Matlab2007a\work)
sgeWrapper.sh (windows) - installed in your shared directory (i.e. \\nas01.ecdf.ed.ac.uk\is_iti_ug\ywan\sgeWrapper.sh <on the shared folder in Windows> or /exports/work/is_iti_ug/ywan/sgeWrapper.sh <on eddie directly>)
For Matlab parallel jobs:
sgeParallelSubmitFcn.m (windows) - same as sgeSubmitFcn.m
sgeParallelWrapper.sh (windows) - same as sgeWrapper.sh
Step 8. Submit jobs to eddie It's time to verify all above work by running a Matlab job. The following two samples show how to submit a Matlab distributed job and a Matlab Parallel job to eddie, and retrieve results from a client session.