Skip to content

Conversation

@SLundregan
Copy link
Contributor

No description provided.

ssh user@danhead01fl.unicph.domain
tmux new-session
srun -c 2 --mem=30gb --time=0-10:00:00 -w dancmpn02fl --pty bash
source ~/.bash_profile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed, move all the bashrc profile logic to bashrc instead.
See example below

$ cat .bashrc
### Source standard KU IT's global bashrc
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

### Source DanGPU definitions
if [ -f /maps/projects/dan1/apps/etc/bashrc ]; then
        . /maps/projects/dan1/apps/etc/bashrc
fi

### Source Brickman definitions
if [ -f /maps/projects/dan1/data/Brickman/config/brickman.bashrc ]; then
        . /maps/projects/dan1/data/Brickman/config/brickman.bashrc
fi


**IMPORTANT!** When using `code tunnel` the connection between your local VScode instance and the compute node is bridged by a Microsoft server. This means `code tunnel` should not be used to work with sensitive human data. However, the connection is secured and authenticated using your Microsoft account and all data is encrypted during transit.

## code-server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this more clear, no one will know what is the code-server

Comment on lines 54 to 56
## Downloads

Do only once to make modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Comment on lines 58 to 63
### VScode CLI

```bash
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this under installation

Comment on lines 65 to 69
### VScode code-server

```bash
curl -fL https://github.com/coder/code-server/releases/download/v4.90.2/code-server-4.90.2-linux-amd64.tar.gz | tar -C /maps/projects/dan1/data/Brickman/shared/modules/software/code-server/4.90.2 -xz
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, different heading structure would make this easier to read

- Open the link and enter the given code to authenticate
- Chose your KU microsoft account and click continue
- Open the link in your web browser and accept the connection
- ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection
- **ALTERNATIVELY**: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection

- Chose your KU microsoft account and click continue
- Open the link in your web browser and accept the connection
- ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection
- You can now run R interactively on the chosen compute node using VScode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- You can now run R interactively on the chosen compute node using VScode
- Go back to terminal and hit ENTER on questions about tunnel name
- go to vsc > settings > Rterm:Linux and paste the following `/opt/software/R/4.3.1/bin/R`

A solution to run R scripts on computing nodes dancmpn01fl and dancmpn02fl using VScode code tunnel

This is much faster than the current RStudio solution, and frees up danGPU for those who actually need GPU resources :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe here we should add that the first time you open R in vsc you will most likely have to re-install all your libraries

tmux new-session
srun -c 2 --mem=30gb --time=0-10:00:00 -w dancmpn02fl --pty bash
source ~/.bash_profile
module load vscode_cli
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module load vscode_cli
module load vscode_cli gcc/11.2.0 R/4.3.1

SLundregan and others added 4 commits July 5, 2024 13:22
Co-authored-by: Silvia_R <silvia.rnr@gmail.com>
Co-authored-by: Silvia_R <silvia.rnr@gmail.com>
@nazsalehin nazsalehin merged commit 7663f06 into master Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants