Logging on to pupil system

From 22126
Jump to navigation Jump to search

Overview

In this exercise, we will prepare our computers to log on to our servers called "pupilX", where X is 1/2/3/4/5. These are small but reliable machines. Please read the instructions carefully.

Please be aware: there is no backup. All of your data will be deleted when the class concludes.

Are you physically at DTU?

First, make sure you are connected to the internet. If you are on campus, you do not need to do anything extra, however, if you are outside campus, you need a Virtual Private Network (VPN) which simulates that you are on campus. Please refer to https://www.inside.dtu.dk/en/medarbejder/it-og-telefoni/it-support-og-kontakt/it-systemer-og-vaerktoejer/it-systemer-ait/vpn



Details

Student accounts

To be able to perform the exercises and project you will need an account to log in to the cloud computers. Open the doc, find the student id and determine which server you need to use. This will be your server that you must use for the rest of the course.

User ID/username

Your cloud username or user ID is one entered in the username column (ex: s123456).

Server (host)/CPU/RAM

The names/CPU/memory of the hosts:

Server Full host name CPUs RAM
pupil1 pupil1.healthtech.dtu.dk 40 252G
pupil2 pupil2.healthtech.dtu.dk 24 110G
pupil3 pupil3.healthtech.dtu.dk 24 94G


Password

The password is the same as the DTU one. Remember: If you lose your DTU password we can not help you! Check with DTU.

2 factor authentication

You will be prompted for a 2-factor authentication code, using the same system as for logging in to your DTU mail. Look at your phone.

Windows computer

Terminal

You have 3 choices here:

  1. MobaXterm. Described here. Install MobaXterm. Download here
    Once installed you must create an ssh session in Mobaxterm and log on to your cloud server (Look at the Google docs depending on user ID and use the IP above). Easy choice if you do not plan for more programming in the future.
  2. WSL2 + Ubuntu install. Described here. Best choice if taking a course like 22113 later.
  3. PuTTY + Xming. A small terminal can be downloaded here and an X-server to be downloaded here.

The cookie-cutter solution is MobaXterm, which gives you the terminal and X-server functionality right out of the box.



Mac computer

Terminal

Open your terminal. It is located in: /Applications/Utilities. Or search for "Terminal"

Depending on the server you will be using (see the google sheet), write:

ssh -XC [USER_ID]@[FULLHOSTNAME]

replace the [USER_ID] with the username you have been assigned to and [ID ADDRESS] is the IP of your server (see above).

Enter the password..

Open the "XQuartz" and "Terminal" in the "Applications/Utilities" folder. You can close the window that the XQuartz program opens, but leave the program running in the background. If you dont have XQuartz installed you can install it from here. In the terminal write the command below and enter your password when asked for it. Depending on what you have installed you may have to install "Developer Tools" from Apple. You can also install the program "iTerm2" which is a very neat terminal.
Log on to your cloud server using ssh and your cloud username (studXXX) and password (see above).



Ubuntu/Linux

Terminal

Open your terminal and ssh using:

ssh -XC [USER_ID]@[FULLHOSTNAME]


ssh without any keys

Are you tired of typing your password and the 2-factor authentication code? If so you can automate the process using this on Ubuntu/Linux/MacOS:

ssh-copy-id [USERID]@[FULLHOSTNAME]

It will seem like a normal login, which logs you out again immediately. However, in the future, you do no need to supply DTU credentials.