diff --git a/materials/02-ssh.md b/materials/02-ssh.md index e21cdac..3642a3a 100644 --- a/materials/02-ssh.md +++ b/materials/02-ssh.md @@ -106,7 +106,7 @@ After registering for a HPC account, you were sent the following information by > > - Username: emailed separately > - Password: emailed separately -> - Host: `train.bio` +> - Host: `login.hpc.cam.ac.uk` > > You were automatically allocated 40GB in `/home/USERNAME/` (backed storage) and 1TB in `/home/USERNAME/rds/hpc-work` (non-backed high-performance "scratch" space for computations). @@ -122,10 +122,10 @@ Can you identify and navigate to your high-performance compute directory? To login to the HPC we run the following from the terminal: ```bash -ssh USERNAME@train.bio +ssh USERNAME@HOSTNAME ``` -Replacing "USERNAME" by your HPC username. +Replacing "USERNAME" by your HPC username and "HOSTNAME" with the name of the server you are accessing. After typing it, you will be prompted for your password. Note that as you type the password nothing shows on the screen - that's normal! The password is still being input. diff --git a/materials/05-arrays.md b/materials/05-arrays.md index db3c5b9..78be481 100644 --- a/materials/05-arrays.md +++ b/materials/05-arrays.md @@ -289,7 +289,7 @@ Our objective is to automate running these models in parallel on the HPC. - Fix the `#SBATCH -a` option - this array should have as many jobs as we have parameter combinations in our CSV file. - Fix the `head` command further down the script. This command intends to fetch each line from the CSV parameters file, using the `$SLURM_ARRAY_TASK_ID` variable. 2. Launch the job with `sbatch` and monitor its progress (`squeue`), whether it runs successfully (`scontrol show job JOBID` or `seff JOBID`), and examine the SLURM output log files. -3. Examine the output files in the `results/turing/` folder. Note: to view image files on the HPC, you have to enable X11 forwarding. You can do this by loging in to the HPC using `ssh -Y username@train.bio` (note the `-Y` option). Then, you can preview a PNG file using the `eog` program (for example: `eog results/turing/f0.03_k0.055.png`). +3. Examine the output files in the `results/turing/` folder. Note: to view image files on the HPC, you have to enable X11 forwarding. You can do this by loging in to the HPC using `ssh -Y username@login.hpc.cam.ac.uk` (note the `-Y` option). Then, you can preview a PNG file using the `eog` program (for example: `eog results/turing/f0.03_k0.055.png`). :::{.callout-hint} The array should have as many numbers as there are lines in our CSV file. However, make sure the array number starts at 2 because the CSV file has a header with column names. diff --git a/materials/07-files.md b/materials/07-files.md index 384fc03..bf0575d 100644 --- a/materials/07-files.md +++ b/materials/07-files.md @@ -31,7 +31,7 @@ This program has a graphical interface, for those that prefer it and its use is To connect to the remote server (see Figure 3): 1. Fill in the following information on the top panel: - - Host: train.bio + - Host: login.hpc.cam.ac.uk - Username: your HPC username - Password: your HPC password - Port: 22 @@ -51,10 +51,10 @@ The syntax is as follows: ```bash # copy files from the local computer to the HPC -scp -r path/to/source_folder @train.bio:path/to/target_folder +scp -r path/to/source_folder @login.hpc.cam.ac.uk:path/to/target_folder # copy files from the HPC to a local directory -scp -r @train.bio:path/to/source_folder path/to/target_folder +scp -r @login.hpc.cam.ac.uk:path/to/source_folder path/to/target_folder ``` The option `-r` ensures that all sub-directories are copied (instead of just files, which is the default). @@ -69,10 +69,10 @@ The most common usage is: ```bash # copy files from the local computer to the HPC -rsync -auvh --progress path/to/source_folder @train.bio:path/to/target_folder +rsync -auvh --progress path/to/source_folder @login.hpc.cam.ac.uk:path/to/target_folder # copy files from the HPC to a local directory -rsync -auvh --progress @train.bio:path/to/source_folder path/to/target_folder +rsync -auvh --progress @login.hpc.cam.ac.uk:path/to/source_folder path/to/target_folder ``` - the options `-au` ensure that only files that have changed _and_ are newer on the source folder are transferred @@ -112,10 +112,10 @@ Notice that these commands are **run from your local terminal**: ```bash # with scp -scp -r ~/Desktop/hpc_workshop_files.zip username@train.bio:rds/hpc-work/hpc_workshop/ +scp -r ~/Desktop/hpc_workshop_files.zip username@login.hpc.cam.ac.uk:rds/hpc-work/hpc_workshop/ # with rsync -rsync -avhu ~/Desktop/hpc_workshop_files.zip username@train.bio:rds/hpc-work/hpc_workshop/ +rsync -avhu ~/Desktop/hpc_workshop_files.zip username@login.hpc.cam.ac.uk:rds/hpc-work/hpc_workshop/ ``` Once we finish transfering the files we can go ahead and decompress the data folder. diff --git a/materials/images/terminal_mobaxterm.svg b/materials/images/terminal_mobaxterm.svg index 4b05a0e..ef6ea99 100644 --- a/materials/images/terminal_mobaxterm.svg +++ b/materials/images/terminal_mobaxterm.svg @@ -155,7 +155,7 @@ style="font-size:4.93889px;line-height:0.65px;fill:#ffffff;fill-opacity:1;stroke-width:0.264583" id="tspan1055">20/06/2022 14:56.17 /home/mobaxterm ssh participant@train.bio20/06/2022 14:56.17 /home/mobaxterm ssh participant@login.hpc.cam.ac.uklocal-username@personal-laptop:~$ ssh participant@train.bio~$ ssh participant@login.hpc.cam.ac.uk$ ssh participant@train.bio + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13.33333302px;line-height:1.25;font-family:monospace;-inkscape-font-specification:monospace;text-align:start;text-anchor:start;fill:#606060;fill-opacity:1">$ ssh participant@login.hpc.cam.ac.uk