|
| 1 | +# Getting Started with Euler |
| 2 | + |
| 3 | +This guide helps new users access and begin working on the **Euler Cluster** at ETH Zurich, specifically for members of the **RSL group (es_hutter)**. |
| 4 | + |
| 5 | +## 📌 Table of Contents |
| 6 | + |
| 7 | +1. [Access Requirements](#access-requirements) |
| 8 | +2. [Connecting to Euler via SSH](#connecting-to-euler-via-ssh) |
| 9 | + - [Basic Login](#basic-login) |
| 10 | + - [Setting Up SSH Keys](#setting-up-ssh-keys-recommended) |
| 11 | + - [Using an SSH Config File](#using-an-ssh-config-file) |
| 12 | +3. [Verifying Access to the RSL Shareholder Group](#verifying-access-to-the-rsl-shareholder-group) |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +## ✅ Access Requirements |
| 17 | + |
| 18 | +In order to get access to the cluster, kindly fill up the following [form](https://forms.gle/UsiGkXUmo9YyNHsH8). If you are a member of RSL, directly message Manthan Patel to add you to the cluster. The access is approved twice a week (Tuesdays and Fridays). |
| 19 | + |
| 20 | +Before proceeding, make sure you have: |
| 21 | + |
| 22 | +- A valid **nethz username and password** (ETH Zurich credentials) |
| 23 | +- Access to a **terminal** (Linux/macOS or Git Bash on Windows) |
| 24 | +- (Optional) Some familiarity with command-line tools |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +## 🔐 Connecting to Euler via SSH |
| 29 | + |
| 30 | +You'll connect to Euler using the Secure Shell (SSH) protocol. This allows you to log into a remote machine securely from your local computer. |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +### Basic Login |
| 35 | + |
| 36 | +To log into the Euler cluster, open a terminal and type: |
| 37 | + |
| 38 | +```bash |
| 39 | +ssh <your_nethz_username>@euler.ethz.ch |
| 40 | +``` |
| 41 | + |
| 42 | +Replace `<your_nethz_username>` with your actual ETH Zurich login. |
| 43 | + |
| 44 | +You will be asked to enter your ETH Zurich password. If the login is successful, you'll be connected to a login node on the Euler cluster. |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +### Setting Up SSH Keys (Recommended) |
| 49 | + |
| 50 | +To avoid typing your password every time and to increase security, it is recommended to use SSH key-based authentication. |
| 51 | + |
| 52 | +#### Step-by-Step Instructions: |
| 53 | + |
| 54 | +1. **Generate an SSH key pair** on your local machine (if not already created): |
| 55 | + |
| 56 | + ```bash |
| 57 | + ssh-keygen -t ed25519 -C "<your_email>@ethz.ch" |
| 58 | + ``` |
| 59 | + |
| 60 | + - Press Enter to accept the default file location (usually `~/.ssh/id_ed25519`). |
| 61 | + - When prompted for a passphrase, you can choose to set one or leave it empty. |
| 62 | + |
| 63 | +2. **Copy your public key to Euler** using this command: |
| 64 | + |
| 65 | + ```bash |
| 66 | + ssh-copy-id <your_nethz_username>@euler.ethz.ch |
| 67 | + ``` |
| 68 | + |
| 69 | + - You'll be asked to enter your ETH password one last time. |
| 70 | + - This command installs your public key in the `~/.ssh/authorized_keys` file on Euler. |
| 71 | + |
| 72 | +Now, you should be able to log in without typing your password. |
| 73 | + |
| 74 | +--- |
| 75 | + |
| 76 | +### Using an SSH Config File |
| 77 | + |
| 78 | +To make your SSH workflow easier, especially if you frequently access Euler, create or edit the `~/.ssh/config` file on your local machine. |
| 79 | + |
| 80 | +#### Example Configuration: |
| 81 | + |
| 82 | +```sshconfig |
| 83 | +Host euler |
| 84 | + HostName euler.ethz.ch |
| 85 | + User <your_nethz_username> |
| 86 | + Compression yes |
| 87 | + ForwardX11 yes |
| 88 | + IdentityFile ~/.ssh/id_ed25519 |
| 89 | +``` |
| 90 | + |
| 91 | +- Replace `<your_nethz_username>` with your actual ETH username. |
| 92 | +- Save and close the file. |
| 93 | + |
| 94 | +Now, instead of typing the full SSH command, you can simply connect using: |
| 95 | + |
| 96 | +```bash |
| 97 | +ssh euler |
| 98 | +``` |
| 99 | + |
| 100 | +--- |
| 101 | + |
| 102 | +## 🧾 Verifying Access to the RSL Shareholder Group |
| 103 | + |
| 104 | +Once you are logged into the Euler cluster, it's important to confirm that you have been added to the appropriate shareholder group. This ensures you can access the computing resources allocated to your research group (in this case, the RSL group). |
| 105 | + |
| 106 | +--- |
| 107 | + |
| 108 | +### 🔍 How to Check Your Group Membership |
| 109 | + |
| 110 | +1. While connected to Euler (after logging in via SSH), run the following command in the terminal: |
| 111 | + |
| 112 | + ```bash |
| 113 | + my_share_info |
| 114 | + ``` |
| 115 | + |
| 116 | +2. If everything is correctly set up, you should see output similar to the following: |
| 117 | + |
| 118 | + ``` |
| 119 | + You are a member of the es_hutter shareholder group on Euler. |
| 120 | + ``` |
| 121 | + |
| 122 | +3. This message confirms that you are part of the `es_hutter` group, which is the shareholder group for the RSL lab. |
| 123 | + |
| 124 | +4. Create your user directories for storage by using the following command |
| 125 | + ```bash |
| 126 | + mkdir /cluster/project/rsl/$USER |
| 127 | + mkdir /cluster/work/rsl/$USER |
| 128 | + ``` |
| 129 | + |
| 130 | +--- |
| 131 | + |
| 132 | +### ❗ If You Do NOT See This Message: |
| 133 | + |
| 134 | +- Double-check with your supervisor whether you've been added to the group. |
| 135 | +- It may take a few hours after being added for the change to propagate. |
| 136 | + |
| 137 | +--- |
| 138 | + |
| 139 | +## Next Steps |
| 140 | + |
| 141 | +Once you have verified your access: |
| 142 | +- Learn about [Data Management](data-management.md) on Euler |
| 143 | +- Set up [Python Environments](python-environments.md) |
| 144 | +- Start [Computing](computing-guide.md) with interactive sessions or batch jobs |
0 commit comments