For FCM, contact METOMI. You need FCM for compiling JULES later on:
STEP 1: Check whether FCM is already installed using fcm --version . If you get a version number, then go to step XXX; if you get Command not found, then you need to install FCM.
STEP 2: *** SKIP THIS STEP IF FCM ALREADY INSTALLED ***:
You need to link your FCM Subversion repository to the MOSRS (this is explained here). Two possibilities here - type:
ls ~/.subversion/servers
If this says ‘No such file or directory’ then you have not used Subversion before on this system so you need to create that ~/.subversion/servers file:
mkdir ~/.subversion
Create a textfile ~/.subversion/servers with the following lines (substituting your MOSRS username instead of tobymarthews):
[groups]
metofficesharedrepos = code*.metoffice.gov.uk
[metofficesharedrepos]
username = tobymarthews
store-plaintext-passwords = no
Alternatively, if you have used Subversion on this system before then you need to modify the file at ~/.subversion/servers: find the [groups] and [metofficesharedrepos] sections and amend them to have the extra few lines specified above, leaving the rest of the file unmodified.
STEP 3: Install FCM from Git:
cd ~/.local
git clone https://github.com/metomi/fcm.git
cd fcm
git tag -l
#Install the latest version available on that list, e.g.:
git checkout tags/2021.05.0
cd ~
Now you need to append the FCM command set to your library. This must be done every time you log on, so best to add the following line to the end of your ~/.bashrc file to accomplish this:
export PATH=$HOME/.local/fcm/bin:$PATH
and then do:
cd ~;chmod -R 755 ~/.local
Now, log off and log in again.
STEP 4: Now check the installation:
fcm --version
All done: FCM should be installed (typing FCM_EXEC=$(which fcm);echo $FCM_EXEC will tell you where it is installed).
You need to have your Met Office Science Repository Service (MOSRS) password cached on your profile every time you run JULES, so easiest to set it up so that this is done in your ~/.bashrc file.
STEP 5: Cache your MOSRS password
Download two MOSRS utilities from here:
firefox https://code.metoffice.gov.uk/trac/home/raw-attachment/wiki/AuthenticationCaching/GpgAgent/mosrs-setup-gpg-agent
Put in your MOSRS password, save the file and close Firefox (the file will appear in ~/Downloads/).
firefox https://code.metoffice.gov.uk/trac/home/raw-attachment/wiki/AuthenticationCaching/GpgAgent/mosrs-cache-password
Again, put in your MOSRS password, save the file and close Firefox.
mv ~/Downloads/mosrs* ~/.local/
export PATH=$HOME/.local:$PATH
cd ~;chmod -R 755 ~/.local
Now activate:
. mosrs-setup-gpg-agent
Test this with the following commands, which should NOT ask for your password **:
rosie hello
Add the following lines to the end of your ~/.bashrc file (n.b. they MUST go after the source ... activate command (above) where you enter the virtual environment, if you are doing that bit):
export PATH=$HOME/.local:$PATH
# Password caching. MetO advice from https://code.metoffice.gov.uk/trac/home/wiki/AuthenticationCaching/GpgAgent
[[ "$-" != *i* ]] && return #Stop here if not running interactively
. mosrs-setup-gpg-agent
Finally, log out and log in again.
STEP 1: Check whether FCM is already installed using fcm --version . If you get a version number, then go to step XXX; if you get Command not found, then you need to install FCM.
STEP 2: *** SKIP THIS STEP IF FCM ALREADY INSTALLED ***:
You need to link your FCM Subversion repository to the MOSRS (this is explained here). Two possibilities here - type:
ls ~/.subversion/servers
If this says ‘No such file or directory’ then you have not used Subversion before on this system so you need to create that ~/.subversion/servers file:
mkdir ~/.subversion
Create a textfile ~/.subversion/servers with the following lines (substituting your MOSRS username instead of tobymarthews):
[groups]
metofficesharedrepos = code*.metoffice.gov.uk
[metofficesharedrepos]
username = tobymarthews
store-plaintext-passwords = no
Alternatively, if you have used Subversion on this system before then you need to modify the file at ~/.subversion/servers: find the [groups] and [metofficesharedrepos] sections and amend them to have the extra few lines specified above, leaving the rest of the file unmodified.
STEP 3: Install FCM from Git:
cd ~/.local
git clone https://github.com/metomi/fcm.git
cd fcm
git tag -l
#Install the latest version available on that list, e.g.:
git checkout tags/2021.05.0
cd ~
Now you need to append the FCM command set to your library. This must be done every time you log on, so best to add the following line to the end of your ~/.bashrc file to accomplish this:
export PATH=$HOME/.local/fcm/bin:$PATH
and then do:
cd ~;chmod -R 755 ~/.local
Now, log off and log in again.
STEP 4: Now check the installation:
fcm --version
All done: FCM should be installed (typing FCM_EXEC=$(which fcm);echo $FCM_EXEC will tell you where it is installed).
You need to have your Met Office Science Repository Service (MOSRS) password cached on your profile every time you run JULES, so easiest to set it up so that this is done in your ~/.bashrc file.
STEP 5: Cache your MOSRS password
Download two MOSRS utilities from here:
firefox https://code.metoffice.gov.uk/trac/home/raw-attachment/wiki/AuthenticationCaching/GpgAgent/mosrs-setup-gpg-agent
Put in your MOSRS password, save the file and close Firefox (the file will appear in ~/Downloads/).
firefox https://code.metoffice.gov.uk/trac/home/raw-attachment/wiki/AuthenticationCaching/GpgAgent/mosrs-cache-password
Again, put in your MOSRS password, save the file and close Firefox.
mv ~/Downloads/mosrs* ~/.local/
export PATH=$HOME/.local:$PATH
cd ~;chmod -R 755 ~/.local
Now activate:
. mosrs-setup-gpg-agent
Test this with the following commands, which should NOT ask for your password **:
rosie hello
Add the following lines to the end of your ~/.bashrc file (n.b. they MUST go after the source ... activate command (above) where you enter the virtual environment, if you are doing that bit):
export PATH=$HOME/.local:$PATH
# Password caching. MetO advice from https://code.metoffice.gov.uk/trac/home/wiki/AuthenticationCaching/GpgAgent
[[ "$-" != *i* ]] && return #Stop here if not running interactively
. mosrs-setup-gpg-agent
Finally, log out and log in again.