| 3 | | Coming soon |
| | 3 | |
| | 4 | == Login using port forwarding == |
| | 5 | |
| | 6 | See for example [[https://wiki.hpc.tulane.edu/trac/wiki/cypress/JupyterNode | Jupyter notebook]]. |
| | 7 | |
| | 8 | Make note of your choice of ports in the above for your use in the following. |
| | 9 | |
| | 10 | Here we assume the choices '''8888''' and '''12345'''. |
| | 11 | |
| | 12 | == Start the interactive session - with port forwarding == |
| | 13 | |
| | 14 | First, start an interactive session. |
| | 15 | |
| | 16 | '''For Workshop''' : |
| | 17 | If your account is in the group '''workshop''', please use the following. |
| | 18 | |
| | 19 | {{{ |
| | 20 | [tulaneID@cypress1 ~]$idev --partition=workshop7 -c 2 --port=12345:8888 # request 2 cores in the partition workshop7 |
| | 21 | Requesting 1 node(s) task(s) to normal queue of workshop7 partition |
| | 22 | 1 task(s)/node, 2 cpu(s)/task, 0 MIC device(s)/node |
| | 23 | Time: 0 (hr) 60 (min). |
| | 24 | 0d 0h 60m |
| | 25 | Submitted batch job 3287405 |
| | 26 | JOBID=3287405 begin on cypress01-060 |
| | 27 | --> Creating interactive terminal session (login) on node cypress01-060. |
| | 28 | --> You have 0 (hr) 60 (min). |
| | 29 | --> Assigned Host List : /tmp/idev_nodes_file_tulaneID |
| | 30 | Last login: Tue Jan 13 11:58:39 2026 from cypress1.cm.cluster |
| | 31 | [tulaneID@cypress01-060 ~]$ |
| | 32 | }}} |
| | 33 | |
| | 34 | '''Non-workshop''' |
| | 35 | {{{ |
| | 36 | [tulaneID@cypress1 ~]idev --partition=centos7 --port=12345:8888 # start an interactive session in the partition centos7 |
| | 37 | Requesting 1 node(s) task(s) to normal queue of centos7 partition |
| | 38 | 1 task(s)/node, 20 cpu(s)/task, 0 MIC device(s)/node |
| | 39 | Time: 0 (hr) 60 (min). |
| | 40 | 0d 0h 60m |
| | 41 | Submitted batch job 3288388 |
| | 42 | JOBID=3288388 begin on cypress01-066 |
| | 43 | --> Creating interactive terminal session (login) on node cypress01-066. |
| | 44 | --> You have 0 (hr) 60 (min). |
| | 45 | --> Assigned Host List : /tmp/idev_nodes_file_tulaneID |
| | 46 | Last login: Tue Jan 13 14:09:07 2026 from cypress2.cm.cluster |
| | 47 | [tulaneID@cypress01-066 ~]$ |
| | 48 | }}} |
| | 49 | |
| | 50 | |
| | 51 | == Construct and check the image file for RStudio == |
| | 52 | Then proceed as follows to construct the container image file '''rstudio_latest.sif''' and check the R version. |
| | 53 | |
| | 54 | {{{ |
| | 55 | [tulaneID@cypress01-060 ~]$module load singularity/3.9.0 # load the singularity module |
| | 56 | [tulaneID@cypress01-060 ~]$singularity pull docker://rocker/rstudio:latest # takes a few minutes to construct file r-base_latest.sif |
| | 57 | ... |
| | 58 | [tulaneID@cypress01-060 ~]$singularity exec rstudio_latest.sif R --version # check the version of R |
| | 59 | R version 4.5.2 (2025-10-31) -- "[Not] Part in a Rumble" |
| | 60 | Copyright (C) 2025 The R Foundation for Statistical Computing |
| | 61 | Platform: x86_64-pc-linux-gnu |
| | 62 | |
| | 63 | R is free software and comes with ABSOLUTELY NO WARRANTY. |
| | 64 | You are welcome to redistribute it under the terms of the |
| | 65 | GNU General Public License versions 2 or 3. |
| | 66 | For more information about these matters see |
| | 67 | https://www.gnu.org/licenses/. |
| | 68 | |
| | 69 | [tulaneID@cypress01-066 ~]$ |
| | 70 | }}} |
| | 71 | |
| | 72 | == Start the RStudio server == |
| | 73 | |
| | 74 | |
| | 75 | * Setup local authentication |
| | 76 | |
| | 77 | In order to run the RStudio server, you'll first need to construct a local database for authentication - one time only - as in the following. |
| | 78 | |
| | 79 | {{{ |
| | 80 | echo "auto-create=1" > database.conf |
| | 81 | }}} |
| | 82 | |
| | 83 | * Start the RStudio server |
| | 84 | |
| | 85 | Start the RStudio server, '''rserver''', via the following. |
| | 86 | |
| | 87 | Note the use of the option '''--www-port''' to match your choice of local port number in the above. |
| | 88 | |
| | 89 | |
| | 90 | {{{ |
| | 91 | [tulaneID@cypress01-066 ~]$singularity exec -B /lustre:/lustre --scratch /run,/var/lib/rstudio-server --workdir $(mktemp -d) tidyverse_latest.sif rserver --www-address=0.0.0.0 --www-port=8888 --server-user=$(whoami) --database-config-file $PWD/database.conf |
| | 92 | }}} |
| | 93 | |
| | 94 | == Use RStudio on your browser == |
| | 95 | |
| | 96 | * Go to your browser |
| | 97 | |
| | 98 | With the RStudio server running in your Cypress interactive session, you can now use the RStudio interface on your browser |
| | 99 | |
| | 100 | Open a browser window or tab on your local machine and type the following. |
| | 101 | |
| | 102 | Be sure to match your choice of local port number from above, substituting for '''8888''' as needed. |
| | 103 | |
| | 104 | {{{ |
| | 105 | localhost:8888/ |
| | 106 | }}} |
| | 107 | |
| | 108 | * Use RStudio in your browser |
| | 109 | |
| | 110 | Here is RStudio starting in your browser. |
| | 111 | |
| | 112 | Note that this and all future responses may be slow due to your network latency. |
| | 113 | |
| | 114 | [[Image(RStudioInBrowserStartup.png)]] |