STATA on Remote Server

This is a brief documentation of how to install STATA packages in a remote workspace for an end user that will not have internet access. This assumes that STATA is already installed on the server.

We will also assume that we can access the server workspace at G:\user_id\, that the user can access it from H:\, and that the directory structure looks like this:

├── applications       <- Applications added by the administrator
│   └── stata
│       └── ado        <- STATA packages
└── user               <- The users files and folders

Install Packages

To install packages to the ado directory, start by specifying the install path in a local STATA session:

net set ado G:\user_id\applications\stata\ado

Next, you can install the packages using your preferred command:

findit package_name
// or
net from package_location
net install package_name
// or
ssc install package_name

Use Packages (for the end user)

For the user to be able to load the packages, they need to point to the PERSONAL
system directory in STATA to the correct folder in every session/script:

sysdir set PERSONAL H:\applications\stata\ado
// You can see that it worked by printing the paths
sysdir

More from Peter Alping
All posts