#How to run Stata on Farmshare

#First step: download, install, and run an X-Windows compatible SSH client. For Windows,

#that would be MobaXterm, which you may find here:

#   https://mobaxterm.mobatek.net/download-home-edition.html

# See this page for links to other options:

#   https://uit.stanford.edu/service/sharedcomputing/moreX

# and see this page for background on how to use statistical software on farmshare:

# https://ssds.stanford.edu/software-resources/getting-started-guides-documents

 

# With your X-Windows enabled SSH client, log in to rice.stanford.edu

# Reminder: You will have to put your dataset and your logs in your AFS space, because that is where your SSH client will be able to find them.

     ┌────────────────────────────────────────────────────────────────────┐

     │                        • MobaXterm 11.1 •                          │

     │            (SSH client, X-server and networking tools)             │

     │                                                                    │

     │ → SSH session to mrosenfe@rice07.stanford.edu                     

     │   • SSH compression : v                                            │

     │   • SSH-browser     : v                                            │

     │   • X11-forwarding  : v  (remote display is forwarded through SSH) │

     │   • DISPLAY         : v  (automatically set on remote server)      │

     │                                                                    │

     │ → For more info, ctrl+click on help or visit our website           │

     └────────────────────────────────────────────────────────────────────┘

 

Success. Logging you in...

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-46-generic x86_64)

 

--------------------------------------------------------------------------------

                   --= Stanford Research Computing Center =--

 

      '||''''|                      .|'''.|'||

       ||  . ....  ... .... .. ..   ||..  ' || ..   ....  ... ..   ....  2

       ||''|'' .||  ||' ''|| || ||   ''|||. ||' || '' .||  ||' ''.|...||

       ||   .|' ||  ||    || || || .     '||||  || .|' ||  ||    ||

      .||.  '|..'|'.||.  .|| || ||.|'....|'.||. ||.'|..'|'.||.    '|...'

 

                      https://srcc.stanford.edu/farmshare2/

--------------------------------------------------------------------------------

           For use in coursework and unsponsored research and subject

                    to Stanford policies on acceptable use.

                https://farmshare.stanford.edu/index.php/Policy

--------------------------------------------------------------------------------

                                  For Support

 

           Visit the FarmShare wiki: https://farmshare.stanford.edu/

 

   Join the community by subscribing to farmshare-discuss@lists.stanford.edu:

        https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss/

 

    Contact SRCC staff with questions, comments, concerns, or error reports:

                           srcc-support@stanford.edu

--------------------------------------------------------------------------------

 

You are logged into rice07, a login node intended for job submission and general

purpose interactive use.  For compute- and/or memory-intensive work please

submit a job.

 

Tue Apr  2 09:57:44 PDT 2019

/home/mrosenfe

                                                                               

mrosenfe@rice07 /home/mrosenfe                                                 

> cd /

                                                                               

mrosenfe@rice07 /                                                              

> ls

afs   etc        initrd.img      lost+found   opt   sbin     sys  vmlinuz

bin   farmshare  initrd.img.old  media        proc  service  tmp  vmlinuz.old

boot  home       lib             mnt          root  snap     usr

dev   home.root  lib64           nonexistent  run   srv      var

                                                                               

mrosenfe@rice07 /                                                              

> cd farmshare

                                                                               

mrosenfe@rice07 /farmshare                                                     

> ls

software  software-dev  software-prod  user_data

                                                                                

mrosenfe@rice07 /farmshare                                                     

> cd software

                                                                               

mrosenfe@rice07 /farmshare/software-prod                                        

> ls

examples  free  modules  non-free  source

                                                                               

mrosenfe@rice07 /farmshare/software-prod                                       

> cd non-free

                                                                               

mrosenfe@rice07 /farmshare/software-prod/non-free                              

> ls

AMPL-2015  GAMS      maple          MATLAB-R2017b  pgi      stata-mp

ANSYS17.1  gaussian  mathematica    MATLAB-R2018a  pymol    stata-se

ANSYS18.2  gurobi    MATLAB-R2016b  MATLAB-R2018b  SAS9.4   stattransfer

cplex      intel     MATLAB-R2017a  nag            sicstus

                                                                                

mrosenfe@rice07 /farmshare/software-prod/non-free                              

> cd stata-se

                                                                              

 mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se                     

> ls

14.2  15

                                                                               

mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se                     

> cd 15

                                                                                

mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se/15                  

> ls

ado       g.pdf          mi.pdf   sp.pdf       stata_pdf  ts.pdf     xt.pdf

auto.dta  inst2          mv.pdf   stata        stata-se   u.pdf

docs      installed.150  p.pdf    stata15.png  stinit     utilities

d.pdf     i.pdf          pss.pdf  stata_br     st.pdf     xstata

fmm.pdf   isstata.150    r.pdf    stata.lic    svy.pdf    xstata-mp

fn.pdf    me.pdf         setrwxp  stata-mp     te.pdf     xstata-se

                                                                               

# Note the “./” before the program name. When you run the command below, you should see

# the Stata windows appear, and you are on your way.

mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se/15                  

> ./xstata-se

                                                                               

mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se/15                  

> 

                                                                               

mrosenfe@rice07 /farmshare/software-prod/non-free/stata-se/15                   >