RDS: Using Stata on Linux server
1
Research Data Services (RDS)
Using Stata on Linux server
Stata
on the Linux server can be run with either graphical user interface or the
command line interface.
• With the graphical interface, Stata looks and runs very similarly to how the
program runs on a Windows PC. The limitation of the graphical interface is
that when the connection to the Linux server ends, Stata stops.
• With the command line interface, Stata can be run in batch mode. Stata can
continue to run even after the connection to the Linux server ends.
The last page of these notes has the commands for invoking Stata on Linux.
Using the Linux server to run Stata requires three pieces of software: an SSH
program, an SFTP program and an X11 program. Windows PCs require additional
software. Macintosh and Linux computers have built-in SSH, SFTP and X11.
• SSH (Secure SHell) is a protocol for making a connection to the Linux server.
SSH provides an encrypted terminal session on the server. RDS recommends
PuTTY
to make SSH connections; PuTTY is freeware. PuTTY is available at:
http://www.chiark.greenend.org.uk/~sgtatham/putty/
An alternative to PuTTY is
SecureCRT
; SecureCRT is available through Penn. In
the PuTTY window, you will invoke Stata.
• SFTP (SSH File Transfer Protocol) is a protocol for copy files between the
desktop or laptop computer and the Linux server. RDS recommends
WinSCP
;
WinSCP is freeware and interacts with puTTY. WinSCP is available at:
http://winscp.net/eng/index.php
An alternative is
FileZilla
; FileZilla is also freeware. In the WinSCP window, you
can copy data files, do files and results files to and from the server.
• X11 is the protocol for rendering graphics on the Linux server. An X11 program
is necessary in order to use the graphical user interface. RDS recommends
Xming
; Xming has a freeware version. Xming is available at:
http://www.straightrunning.com/XmingNotes/
An alternative is
Cygwin/X
; Cygwin/X is also freeware. Commercial X11
programs may also be purchased.
The server running Stata is:
pils.ssc.upenn.edu