Instructions based on those from the Biowulf team
You must be on the NIH network on campus, or connected to VPN.
Then, start an interactive session from the command-line on Biowulf:
# On BIOWULF:
sinteractive --mem 20G --time 8:00:00 --gres lscratch:20 --tunnelWait for the interactive node to be allocated, at which point it will tell you which port to use for SSH tunneling.
Copy and paste the ssh command into terminal (for mac) or powershell (for windows).
# On YOUR LAPTOP, run the command printed to the terminal.
# It will look something like the following, with numbers
# instead of Xs, and your computing ID instead of USER.
ssh -L XXXXX:localhost:XXXXX USER@biowulf.nih.govIt will authenticate your connection to biowulf. You may need to type your Biowulf password.
Now, back on the original Biowulf connection (where you first requested an interactive node):
# Load the module
module load rstudio-server/2023.03.0-386
# Start rstudio-server
rstudio-serverYou will be given a URL to paste into your browser window. It should automatically authenticate after loading.
You will start in your default home directory. The location you're
currently working in can be seen with getwd() and can be changed
with setwd().
# in R:
getwd() # Prints current Working Directory
setwd('/data/userid/projectname/') # changes current working directory