where <username> is replaced by the username you were assigned in the nsc email.
You should set up a passwordless login using SSH keys. A guide on NSC site with a notes on security
In the bottom of the window you see various commands. E.g. “^G Get Help” means that pressing ctrl+G shows you the nano help page.
NSC assigned you a temporary password so you could make your first login, however, for security you are expected to change this password on your own login to something sufficiently secure. For this you use the command passwd. Here is an example session on how to do that:
[x_makro@neolith1 ~]$ passwd Changing password for user x_makro. Changing password for x_makro (current) UNIX password: New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
To submit a job to the queue on the cluster, we will be creating a job script. A job script contains a few instructions to the cluster queueing system + a list of shell commands to execute to start the computation. We will not run any computational code at this point, but merely the command echo that prints out a line.
First make a directory, and make it your current working directory:
mkdir my_first_run cd my_fist_run
Here you edit a text file, e.g.,
Put the following contents into this file (you can use copy+paste into the terminal to enter this):
#!/bin/bash #SBATCH -A liu1 #SBATCH -p green #SBATCH -J MY_FIRST_RUN #SBATCH -N 1 #SBATCH -t 0:10:00 echo "Hello world!"
Now submit this script to the queue:
You can check on the status of the job with:
where <username> is your nsc username.
When the job is finished, you can look in the directory using the command ls and should see the result of the run:
ls slurm-523395.out my_first_run.q
(the number will not be the same). Using the command less you can look at the output of the run:
Where you see some first lines explaining how the job is setup to run, and after that “hello world”. Press 'q' to quit the less command that shows you output.
Congratulations, you have run your first job.