Remote Access to MATLAB and other Linux software

Although students may purchase their own copy of MATLAB for $99 (http://www.mathworks.com/academia/student_version/), the College offers free access to MATLAB through the ENG-Grid, accessible from anywhere at anytime.

To access Matlab or any other Linux application from the ENG-Grid, please see the Grid instructions. If you have trouble following those instructions, here are very simplified, detailed instructions for just running Matlab:

Instructions for Windows Users

Download and Install X-Win32

Configure X-Win32

  • For security reasons, the Grid denies off-campus connections. From off-campus, you should first run the VPN from http://www.bu.edu/tech/accounts/remote/vpn

  • Under the Start Menu --> Programs, choose the X-Config under the X-Win32 program

  • We will only be working under the “Connections” tab

matlab1.bmp

Choose to setup a new connection by clicking on the “Manual…” button

matlab2.bmp

Choose “ssh” as your connection method

Now, input the following settings:

Host: eng-grid.bu.edu OR eng-grid2.bu.edu
Command: /usr/bin/xterm -ls

Use your normal Kerberos username and password. Note that there are two login nodes -- and if you have trouble with one, you can always choose to use the other.

  • NOTE: Make sure to type the Command exactly as seen here: /usr/bin/xterm -ls

Click on the “Launch” button to open your terminal to the ENG-GRID. If you are asked to “accept this key” do so and choose to “Remember this key” so you are not asked again on that computer.

Now, in the terminal window that comes up, type:

/mnt/nokrb/sge/etc/qloginwrap

and hit enter. Accept the key if asked, and type your normal Kerberos password. Now you are logged into a node.

  • NOTE: It is very important that you do the qloginwrap step to get to a compute node before running matlab, so as not to clog up the login nodes enggrid1 and enggrid2 with matlab jobs!

Now you can run:

matlab &
  • The default version of MATLAB will now load. To use newer or older versions, type "matlab" and hit the "tab" key twice to see what other versions are available.
  • Because it running on a remote computer, screen refresh rates may be slow. You can follow the instructions at http://collaborate.bu.edu/moin/VNCoverSSH if you need faster remote video performance, but this is much more complicated, so we recommend simply using XWin32 as described above.

  • MATLAB will use your X: drive as its working directory so anything you save in class will be available at home and vice versa. See http://collaborate.bu.edu/engit/MountingNetworkDrives for information on accessing the network drives.

Instructions for Mac or Linux Users

Open up Terminal Open a Terminal window by going to Applications --> Utilities --> Terminal.app

In the terminal window type:

ssh –X -C yourUsername@eng-grid.bu.edu
OR
ssh -X -C yourUsername@eng-grid2.bu.edu

Once you are at the enggrid prompt, type

/mnt/nokrb/sge/etc/qloginwrap

This will log you into a node. Accept the key if asked, and type your password again when it is requested.

  • NOTE: It is very important that you do the qloginwrap step to get to a compute node before running matlab, so as not to clog up the login nodes enggrid1 and enggrid2 with matlab jobs!

Now, at the node prompt, you can type:

matlab &

to launch MATLAB.

  • The default version of MATLAB will now load. To use newer or older versions, type "matlab" and hit the "tab" key twice to see what other versions are available.
  • Because it running on a remote computer, screen refresh rates may be slow. You can follow the instructions at http://collaborate.bu.edu/moin/VNCoverSSH if you need faster remote video performance, but this is much more complicated, so we recommend simply using XWin32 as described above.

  • MATLAB will use your X: drive as its working directory so anything you save in class will be available at home and vice versa

Eng-IT: MatlabRemoteAccess (last edited 2013-09-23 10:22:08 by jesse08)