Before using Princeton Virtual Desktops (PVD) you need to set up your Princeton OneDrive. Ignore the step if you already have Princeton OneDrive. OneDrive is a cloud storage from Microsoft where you can access your files from any device. OneDrive will be the main link between your computer and the virtual desktop where Stata is running. OneDrive works like any other folder on your computer.
Steps to set up Princeton OneDrive:
Click on the following link and follow the prompts to log in (if any):
Once you are in, you should see the following:
Click on StataSE 17 - two windows will pop-up in sequence, the first one looks as follows:
Click on "Allow"
The second one to log in, replace “yourid” with your actual netID:
Click on "Submit"
Once you log in it will take you to the virtual machine running Windows. For Mac users, this may sound strange but yes, you are in Windows environment.
The Stata window will show up, it may take a little while depending on your internet connection speed.
Once it opens, it should look like as follows:
To open Stata files (try not to double-click) …
Go to File → Open
Look for the Stata file.
Importing files to Stata …
Go to File → Import
Select the type of file and follow the prompts.
If you need to change the working directory…
Go to File → Change Working Directory
Select the folder where your files are stored. This will ensure that anything you create in Stata will be saved in that folder.
1. If you close the browser, the session will end and you will lose any unsaved work. Make sure to save your work frequently.
2. After 60 minutes of inactivity your PVD session will end. Again, save your work frequently.
3. You can only open one virtual session at a time. If you try to open a second one, the first one will close. Save your work frequently.
4. You cannot print from the PVD to the local printer. You need to access the file from your laptop and print it from there. From the PVD you can print files to PDF, save in OneDrive, open them on your laptop, and print them.
5. If you save files on the desktop or the documents folder in the virtual machine, those files will be deleted 30 days after the final exams for the current semester. Make sure to save your files to the Princeton OneDrive, and have backups in your laptop, Google Drive, and a portable drive.
For more information, please visit: https://princeton.service-now.com/service?id=kb_article&sys_id=KB0012822#section5
If you are working with big files and Stata in PVD is running too slow or not running at all, you have some options:
- The Data and Statistics Services (DSS) lab has Windows PCs that can handle big datasets. The DSS lab also has a mini-super computer that can run really big datasets. These machines can be accessed in person or remotely. For information on current access, and policies contact DSS at firstname.lastname@example.org.
- Princeton Research Computing has high-performing computer clusters that can handle really big datasets.
- See here for instructions on how to access Stata in Adroit: https://dss.princeton.edu/training/MyAdroitStata.pdf. For more information contact Research Computing at email@example.com.