PhD Resources

Software Documentation – Links to Online Resources

Matlab

Matlab documentation web site

Matlab Central

Mathematica

Wolfram Website

R

R Book

R Documentation

SAS

SAS Documentation online

Stata

Stata site

Library and Journal Resources

Duke Library Databases and E-jounals

JSTOR

NBER – National Bureau of Economic Research

SSRN – Social Science Research Network

WRDS – Wharton Research Data Services

Connecting to PhD UNIX Server – Via X-Win32

Applications such as Matlab, SAS, or Stata can be run in a graphical environment from the PhD UNIX server, Latte.

Starting X-Win32

Xwin-32 will give you a GUI (graphical user interface) like Windows instead of a command line only interface. When you first launch Xwin, you will most likely receive some messages about allowing it through the firewall and activating the license for it. Check the box(es) to allow anything to do with Xwin and when the activation window pops up:

  1. Select License Server from the drop down menu
  2. Enter xwin-lic.oit.duke.edu for the Hostname
  3. Enter 5053 for the Port

To configure Latte on Xwin

  1. Open Xwin configuration
  2. Click on Wizard on the right side of the window
  3. Type Latte in the field and click on ssh, then Next
  4. In the Host field enter: latte.fuqua.duke.edu and Next
  5. Enter your normal Fuqua credentials
  6. In the Command field, simply click on Linux (the top option in the list) and finish

You should see your new Latte option in the list under “My connections” which you can now single click on, then click Launch. It should now ask for your password connecting you to Latte.

Running Applications on Latte

To run statistical applications on the Unix server “latte”:

  1. Start Xwin 32, Then start the application of your choice:
    • To run Matlab, type matlab &
    • To run SAS, type sas &
    • To run Stata, type xstata

The graphical version of the application will launch on your Windows desktop.

Latte Applications on MacBook

Connecting to PhD Linux server – via XQuartz

Matlab, SAS & stata can be run on a local graphical environment from the PhD Linux server, latte.fuqua.duke.edu (AKA, pippin.fuqua.duke.edu). Additionally, rStudio and SASStudio are available via webUI. To log in to latte, you must have the Duo login system configured for your netID & phone number. See https://oit.duke.edu/service/duo/ if you have not done so.

Starting XQuartz

From the Launchpad, navigate to Other folder and select XQuartz. This should cause a terminal to open on your macbook. If it does not, select the “Terminal ⌘N” option from the XQuartz “Applications” menu. If you exit this terminal, your XWindows session will be ended.

Making the remote connection

In the terminal window opened by XQuartz in the previous step, issue the following commands to enable free X11 access to your macbook, log in to latte (pippin) and verify XWindows connection:

  1. xhost +
    • this should output “access control disabled, clients can connect from any host”
  2. ssh -X -Y your-netID@latte.fuqua.duke.edu
  3. You may be prompted by the Duo login system, if not skip this step
    1. (your-netID@pippin) Duo two-factor login for your-netID
      Enter a passcode or select one of the following options:
    2. Duo Push to XXX-XXX-9023
    3. Phone call to XXX-XXX-9023
    4. SMS passcodes to XXX-XXX-9023
      Passcode or option (1-3): 1Success. Logging you in...
  4. You may quickly test your connection by running “xclock &”. If everything is OK you will see:

In the terminal window opened by XQuartz in the previous step, issue the following commands to enable free X11 access to your macbook, log in to latte (pippin) and verify XWindows connection:

Starting the latte applications

It is advisable to start up an X terminal from latte to run your applications from, so that there is less risk of exiting the primary shell. In the terminal started above, enter the command “xterm &”, and minimize the original terminal window.

Available X windows applications are:

  • /usr/local/bin/matlab
  • /usr/local/bin/xstata
  • /usr/local/bin/sas

You can also use the command-line version of Stata: /usr/local/bin/stata, which does not require an XWindows display.

Miscellaneous XQuartz settings (⌘,)
Exiting from latte XWindows desktop

Close the initial terminal started by XQuartz.

WebUI Applications