Rule number 1: Never work alone.
Getting started with FMU is an activity that is best done in a team or at the very least together with a colleague. If you find yourself in a situation where you are trying to figure this out on your own, this will be your first problem to solve.
FMU is backed by a large and collaborative community of helpful, skilled people. You will find help in several open channels on Slack or on FMU Users on Viva Engage. There are also courses and tutorials available.
1. Accesses and pre-requisites
- Basic Unix
- TGX Receiver Windows
- Access to relevant Linux area
If you are participating on an instructor-led FMU course, or if you are following the FMU tutorial, please apply for access to /scratch/fmu - fmu_scratch (Stavanger). Otherwise, apply for access to the project area you will be working in.
- Install the latest version of TGX Receiver from the Company Portal.
- Go to the (RGS/TGX portal). Select "Stavanger", find the "Default" machine type and click "New session".
- A file called "leostream.tgx" will be downloaded. Find and open this file. It will automatically open in TGX Receiver.
- Select which monitors you would like to use (one, or all), and click "Connect". You may need to click "Add Exception" in a dialogue box, if this is the first time you connect to this node.
- Log in with your Equinor credentials.
- When the Linux desktop opens, you need to (once again) log in with your Equinor credentials.
- When getting a black window during the login process, just click with mouse pointer inside the window and hit [space].
- When "Linux Windows Desktop" is opening, right-click and drag the upper-left "map window" in a better position to see the menu hidden behind it.
2. Know the basics of working on Linux
While the Linux environment is well known to many subsurface professionals, many have never worked outside Windows (or Mac). Therefore, it is important that you know that since the majority of FMU is running on Linux, basic knowledge and understanding of Linux is necessary.
If Linux is not known to you, we recommend that you spend some time getting aquinted with it. You will quickly find that while Linux is quite different from e.g. Windows in some respects, mastering it to a certain level will dramatically improve your efficiency and productivity.
[SUB] Linux for Subsurface in Equinor - Basics.
It covers the basics of Linux, and it is a good starting point for further learning.
- Open a new terminal window either via the Linux menu, or using the Ctrl+T keyboard shortcut.
Command | Description |
|---|---|
| ls | List files and folders in the current folder |
| cd <foldername> | Change directory to the folder called <foldername> |
| cd .. | Go up one level in the folder structure |
| cd ~ | Go to your home folder |
| pwd | Print working directory (show which folder you are currently in) |
| mkdir <foldername> | Make a new folder called <foldername> |
| rm <filename> | Remove (delete) the file called <filename> |
| rmdir <foldername> | Remove (delete) the folder called <foldername> |
On Equinor Linux, several text editors are available. Editors is a constant topic of debate, and there are many opinions on which editor you should choose. The right editor for your colleague may not be the right editor for you! For a smooth start we recommend that you use Visual Studio Code.
- In the terminal, open Visual Studio Code using the code command
You can also open a specific file with VS Code by using the command code <filename>, and you can open a specific folder by using the command code <path/to/folder>.
(The command code . will open the folder you are currently in).
We recommend VS Code because it is widely used in the FMU community. If you feel comfortable with other editors, you can of course use them. Getting started will be exponentially more difficult for you if you are using a complicated text editor from the start.
FMU-specific syntax highlighting (ERT) is available for VS Code. Follow (this link) on Linux for information and installation. Kudos to Thorbjørn Horgen 👏
3. Configure your Linux profile for using the Equinor HPC environment
In Equinor, two primary shells are used: C Shell and Bourne Again Shell (bash).
If you do not know which shell you are using, you are most likely using C-shell. You can verify which shell you are using by typing this command:
echo $shell in a terminal window. You can also (change your default shell)
Shell | Configuration file |
|---|---|
| C Shell | /private/<MyUserName>/.cshrc |
| Bash | /private/<MyUserName>/.bashrc |
Shell | Configuration file | Line to insert |
|---|---|---|
| C Shell | .cshrc | source /prog/res/komodo/stable/enable.csh source /prog/res/ecl/script/eclrun.cshrc |
| Bash | .bashrc | source /prog/res/komodo/stable/enable source /prog/res/ecl/script/eclrun.bash |
echo $KOMODO_RELEASEThis should return the version of Komodo you are currently sourcing. If nothing is returned, go back and verify the changes you made to your *rc file. Otherwise, proceed!
If you are currently participating in the FMU introduction course, you can now return to the course documentation and follow the instructions given there.
FMU users in Rio need to setup password-less ssh login by running the following command in a terminal window:
/prog/util/scripts/setup-ssh-keylogin4. Verify by running an FMU workflow once
We will not go into detail on this here, as this varies from location to location. We assume you are following rule number 1 and that you are doing this together with a colleague or a mentor. Ask them to help you getting access to a workflow that you can run, and they will teach you how to 1) set a new case name, 2) launch the ERT application and 3) launch a run.
Tell them that you would like to run your testrun on the cluster (not locally on RGS) (do not choose "Single realization test run in ERT) so that you can verify that all the stuff you have done is working.
Now the real learning can begin. Connect with the FMU community, have a look at the available courses and tutorials if you haven't done so already.
Welcome to FMU, welcome to the community and remember to never work alone! 🥳