From e9a2de01a438b23ef8123066d26a699ea502ff6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tonn=20R=C3=BCter?= Date: Tue, 14 Jan 2025 18:03:42 +0100 Subject: [PATCH] Updated tutorial section on .profile/.bashrc --- tutorials/02_RunningREMIND.md | 54 ++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/tutorials/02_RunningREMIND.md b/tutorials/02_RunningREMIND.md index f94acc5bb..5952e1431 100644 --- a/tutorials/02_RunningREMIND.md +++ b/tutorials/02_RunningREMIND.md @@ -1,13 +1,13 @@ Start running REMIND with default settings ================ -Felix Schreyer (), Lavinia Baumstark (), David Klein () +Felix Schreyer (), Lavinia Baumstark (), David Klein (), Tonn RĂ¼ter () 30 April, 2019 - [Start running REMIND with default settings](#start-running-remind-with-default-settings) - [1. Your first run](#1-your-first-run) - [Default Configurations](#default-configurations) - - [Accessing the cluster](#accessing-the-cluster) - - [Adjust the .profile](#adjust-the-profile) + - [Accessing the HPC](#accessing-the-cluster) + - [HPC terminal configuration: Adjust `.profile` & `.bashrc`](#adjust-the-profile) - [Starting the run](#starting-the-run) - [Restarting runs](#restarting-runs) - [2. What happens during a REMIND run?](#2-what-happens-during-a-remind-run) @@ -20,7 +20,7 @@ Felix Schreyer (), Lavinia Baumstark (Ctrl + X and confirm with Enter. Please note that `umask 0002` needs to be the first line in the `.profile`! This lines makes sure the files you create on the cluster will be writable by your coworkers. The subsequent lines load the `piam` environment, ensuring that all system libraries necessary to run REMIND are available. + +For compatibility reasons you'll also need to add a `.bashrc` file in your home folder. It's the same procedure as with `.profile`: Open the file + +```bash +nano ~/.bashrc +``` + +and add `umask 0002` as the first line. A typical `.bashrc` file might look like + +```bash +umask 0002 # Must be the first line + +# Additional typical .bashrc configurations like aliases must come after +alias ll="ls -la" ``` -The first line loads the `piam` environment once you log onto the cluster via console the next time. This environment will enable you to manage the runs that you do on the cluster. The second line makes sure the files you create on the cluster will be writable by your coworkers. Next, you need to specify the kind of run you would like to do. + +Again save the file by pressing Ctrl + X and confirm with Enter. ## Starting the run -Open a console session on the cluster and create a folder on the cluster where you want to store REMIND. It is recommended not to use the `home` directory. For your first experiments you can use a subfolder of the `/p/tmp/YourPIKName/` directory (only stored for 3 months). +Open a console session on the cluster and create a folder on the cluster where you want to store REMIND. It is discouraged to use the `home` directory. For your first experiments you can use a subfolder of the `/p/tmp//` directory, but keep in mind that unused files are deleted after three months. -In case you are using console and are not familiar with shell commands, google a list of basic shell commands such as `mkdir` to create a folder or `cd /p/tmp/YourPIKName/` to switch to your folder. Download REMIND into a directory in this folder via `cloneremind` (see tutorial [00_Git_and_GitHub_workflow](00_Git_and_GitHub_workflow.md)). +In case you are using console and are not familiar with shell commands, google a list of basic shell commands such as `mkdir` to create a folder or `cd /p/tmp//` to switch to your folder. Download REMIND into a directory in this folder via `cloneremind` (see tutorial [00_Git_and_GitHub_workflow](00_Git_and_GitHub_workflow.md)). Go to your REMIND main folder (i.e. it contains subfolders such as `config`, `core`, and `modules`) and start a REMIND run by typing: