Also see our About R and R Studio Server help page.
...
Step by step instructions for settin setting up UT's VPN software are described here: https://wikis.utexas.edu/pages/viewpage.action?spaceKey=networking&title=Connecting+to+the+UT+VPN+Service. In addition, this remote_computing_software_download_instructions.pdf PDF provides detailed information about how to configure the UT VPN service, set up Duo 2-factor authenticaion, and installing software for remote SSH access in Windows.
Briefly, the setup process is as follows:
- Create a Duo two-factor authentication (2FA) account at the Duo self-registration portal: https://utdirect.utexas.edu/apps/duo/register/
- Install the Cisco AnyConnect client.
- We recommend downloading the client software and installing it directly rather than connecting to the VPN service in a browser.
- When access to UT network resources is needed, connect the Cisco AnyConnect client to vpn.utexas.edu.
- Supply your UT EID and password as the 1st factor
- Acknowledge the Duo 2nd factor request
...
From your X11-enabled terminal, use ssh -Y to connect to the POD compute server (the -Y enables forwarding of the X11 commands to the X-terminal). Once logged in, type matlab. This will (slowly) open a graphical window to run matlab in.
Here's how to create a script in matlab.
- In the "Command Window" in the middle of the matlab window, type "1+1" and hit return, it should say "2".
- Click the "New Script" button at the upper left (or the "New" Button, then select "Script" if you don't see "New Script").
- This will open an editing window for a script.
- This will open an editing window for a script.
- Type "1+1" in the window, then click "Save" from the upper menu.
- Name it anything with a ".m" extension (such as untitled.m, the default).
- Name it anything with a ".m" extension (such as untitled.m, the default).
- You can then use then "Open" menu, or the "Current Folder" pain, to open that file in the future.
- Once open in the Editor, you can use the "Run" command from the Editor menu to run it.
- Exit matlab (using either the "exit" or "quit" command)
To open matlab without the graphical interface, type the not-so-short or intuitive command: matlab -nodisplay -nosplash. This should give an interactive command prompt. To exit, type quit or exit. Other sometimes-useful options for the non-GUI matlab include -nojvm (might speed things up a bit) and -wait (wait until your jobs finish before exiting).
To run the "script" we created above (called untitled.m in your home directory) and exit, you can do something like:
Code Block | ||
---|---|---|
| ||
matlab -nodisplay -nosplash -r "run('~/untitled.m');quit" |
To add some error checking, you can use:
Code Block | ||
---|---|---|
| ||
matlab -nodisplay -nosplash -r "try, run('~/untitled.m'), catch, exit, end, exit" |
Another simple example script could be created and executed from the command line as shown below. (It should tell you the answer is "7.3529".)
Code Block | ||
---|---|---|
| ||
echo "5^3/(2^4+1)" > ~/untitled2.m matlab -nodisplay -nosplash -nojvm -r "run('~/untitled2.m');quit" |
...