Set Up Your Stata Network for Remote Access with a VPN on Mac Computers

As more and more people are working from home, you may find it necessary to set up off-site access to your Stata network. If you have Stata set up for access through an online VPN connection this allows people to work from home easily, however your analysis and program response times may be considerably slower because you are running everything over the internet. However, you can install Stata on individual computers without compromising the licence. This will still require VPN access for Stata to open, however Stata will run from the computer rather than over the internet.

To do this you will need to make sure a copy of the stata.lic licence file is stored on the server where the user has access, and make sure you know the correct volume mapping and directory information. Then you will need to install Stata on the individual machines, but do not open the program to provide licence details. Instead, once you have installed Stata follow the instructions below:

1. Make sure you are logged in as the system administrator for the computer

2. Mount your VPN disk as a volume

3. Open the Mac terminal found in ~\Applications\Terminal. It opens a window similar to below

4. Type the following text and press enter - cd /Applications/Stata

5. Make sure there is not a stata.lic licence file there already. If there is simply rename it using the following text in the terminal - mv stata.lic stata.old

6. Make a link to the VPN volume using the following text and press enter, replacing ServerName with the name of your VPN volume - ln -s /Volumes/ServerName/stata.lic stata.lic

7. Close the Terminal

8. Make sure your VPN is mounted as a volume, and then run Stata. Stata will ask you to access some files from a mounted volume, click OK

These instructions can also be used to achieve the same result on Linux computers. Just copy the unix code and use it in the Linux command line.

272 views0 comments

Recent Posts

See All

This command was user-written, and was used as an example in our recent "Introduction to Programming" webinar. The files for this command are below. There are three files, extract them from the .zip a