Connect to the course server
For this course, we will be working on a remote server, HPC2N. You should already have applied for a user account there. If you haven’t, do it now.
Here, you will access the server for the first time.
You will need:
- a terminal,
- your HPC2N user name and
- the temporary password you will have gotten from HPC2N.
If you have forgotten your password, or it’s no longer valid, you can re-set it using the Password reset service.
For the sake of simplicity we will teach you the way to use tools on Linux subsystems only. Hence, if you have a Windows PC or laptop you need to set up a way to access a Linux terminal. You can find plenty of tutorials online to do this, but here are some steps that should be easy enough to follow:
- type in the bottom left search bar “powershell”, right-click on the result and select “run as administrator”
- copy-paste in the window you opened the following command:
wsl --install- reboot your system
- open the Microsoft store and search for Ubuntu
- install Ubuntu 22.04.3 LTS
- launch it, set a username and a password
Access server via the Terminal
- Open the Terminal on your computer.
- Type
ssh username@kebnekaise.hpc2n.umu.se, where you substitute “username” with your HPC2N user name. - type in your temporary password.
In the welcome mail you got when your HPC2N account was created there was a link to create a first, temporary password. When you have logged in using that, you need to change your password.
From the HPC2N documentation:
This is done using the passwd command:
passwdUse a good password that combines letters of different case. Do not use dictionary words. Avoid using the same password that you also use in other places.
- It will first ask for your current password. The first time you login, that will be the temporary password you created with the HPC2N password reset service.
- Type in that and press enter.
- Then type in the new password you want, enter, and repeat.
- You have changed the password.
You are now on connected to the login node of the cluster.
Read here more about HPC cluster architecture. Read until the header MPI.
This location is the home folder of your account.
You can check the path to your working directory with:
pwdand the content with:
lsServer access: on demand
HPC2N offers a on demand log-in, where you can start a visual interface to interact with the server.
You can access the on-demand log-in here.
- Click on “Login to HPC2N OnDemand”.
- Sign in to your account with your HPC2N user name and password.
- On the top, select “Interactive Apps” and “VScode”.
Now you can set up the interactive session.
- Select our compute project in the drop-down menu under “Compute Project”.
- Select the appropriate number of hours.
- Type in the path to the course directory in “Working Directory” (replace XXX with the actual project ID - you can find that when you log in to SUPR/NAISS):
/proj/nobackup/hpc2nstor2025-XXX- Click Launch.
Your session will start, once it is running you can click the blue “Connect to VS Code” button in the bottom. The VS Code interface will open up in your browser.
- Look around the storage project:
ls- Create a directory with your name (replace
<your-name>below with your actual name):
mkdir <your-name>- Check that the directory was created successfully:
ls