Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

Access in the FMRIB cluster's Open OnDemand service - remote desktop/apps and cluster monitoring

The FMRIB cluster offers a virtual Linux desktop facility allowing you to run graphical programs on central servers. This service is accessed via a web browser, allowing use from virtually any computing device with a display.

Access to this service is limited to University of Oxford networks (including Oxford's Eduroam WiFi), so if you are accessing from outside of these locations you will need to connect to a University VPN first.

To access this facility visit the web site https://ood.fmrib.ox.ac.uk and use your WIN computer account credentials to login.

Open OnDemand home pageOpen OnDemand home page

Along the top of the screen there are the following menu options:

  • Files - a file system browser
  • Jobs - a cluster job viewer and composer
  • Clusters - a short lived interactive shell session
  • Interactive Apps - the interactive desktop and other graphical services including Jupyter, RStudio and MATLAB
  • My Interactive Sessions (usually only visiable as two overlapping squares) - your currently running interactive apps.

On the right of the screen you will find a Help menu (the ?) and the log out button (square + arrow).

The Open OnDemand file browser

The Files menu has two options within, links to your home and scratch folders. Select the location you would like to visit - for access to a /vols/Data location, choose either option and then change the folder in the file browser.

Files menuFiles menu

The Files interface allows you to examine your folders, upload and download files, add new files and directories and view select file types (those that a web browser understands, e.g. text files and images/videos.

Open OnDemand file browserOpen OnDemand file browser

The Open in Terminal option will launch a Clusters > FMRIB Cluster Shell Access session in the currently displayed folder.

Refresh will update the view to take account of any files/directories modified on other computers.

To access /vols/Data folders, click on Change directory and then enter the full path to the folder you wish to view.

 

View your currently running cluster jobs

The Jobs menu has two options, Active Jobs and Job Composer.

The Active Jobs option will present a view of your cluster jobs.

At the top of the view you can change Your Jobs to All Jobs to get an overview of the whole cluster state and use the filter box to identify specific jobs.

Using the trash can icon you can remove jobs that you know to be pointless due to errors in submission.

Open OnDemand cluster job listOpen OnDemand cluster job list

The Job Composer allows for the submission of jobs - we would ordinarily recommend the use of the fsl_sub command inside an interactive desktop or shell session, so use of this facility is not covered here.

Running simple shell commands via Open OnDemand

The Clusters menu item allows you to start an interactive text session on our interactive Linux server clint.fmrib.ox.ac.uk.

Warning - this session will only remain running whilst you are connected to VPN/University network and have the browser tab open. Any task left running when the connection is lost will terminate. For long running tasks please use the interactive desktop facility.

 

Starting and using a Linux remote desktop

When you select the Remote Desktop option from the Interactive Apps menu you will be presented with a form to define the facilities you require for your remote desktop session.

Interactive Apps menu

Open OnDemand New Virtual Desktop SessionOpen OnDemand New Virtual Desktop Session

 

First, choose your session size - there are five, Small > XXLarge, each offering twice as many cores and memory as the previous option. Please choose the minimum that you require to ensure that we have sufficient resource for all users. For simple job submission and FSL Eyes use the Small or Medium options will be adequate and you should only choose Large upwards if you definitely need the additional memory.

Next enter a duration - minimum 1 day, maximum 10 days. This is the maximum duration of your session.

Finally, if you job absolutely requires a CUDA device then you can select the GPU option (which will expose more options for GPU type and quantity {default 1}). We have very limited numbers of GPU enabled hosts, so you may experience significant delays in obtaining your session.

Now click on Launch to request a desktop session. You will now be taken to the My Interactive Sessions page where you can view your current sessions. There may be a delay whilst your job starts on the cluster, during this period the pending job will have a blue section header. Once it is running this will turn green.

Open OnDemand Interactive SessionsOpen OnDemand Interactive Sessions

 

In the example here, there are two sessions, a MATLAB one and a FMRIB Desktop, both of which use Virtual Network Computing (VNC) technology to provide the graphical interface. The Interactive sessions card has the following information/links:

  • The header shows the job ID (in parentheses) on the left, the number of course and state on the right
  • Host details the cluster machine the job is running on, Created at, the start time, a count down of the time remaining for the session.
  • The Session ID link takes you to a folder view for the job. This includes logs and files that may assist IT support when diagnosing problems, but ordinarily you don't need to look in here.
  • Submit support ticket takes you to the support submission form. The View Only link may be requested by support so that they can follow along with the issue that you are seeing.
  • The Delete button terminates this session - any unsaved work will be lost.
  • The two sliders along the bottom of the card allow you to adjust the compression level and image quality - increase compression and decrease quality if you are on a slow network link, e.g. WiFi or non-full fibre home internet connections.
    Warning - do NOT set compression to '0' - this is likely to cause 'Incomplete zlib block' errors in the VNC session. 
  • The Launch Remote Desktop button begins your VNC session in a new web browser tab.

The VNC session is provided by noVNC and runs a Mate desktop environment.

To the right of the view is the noVNC menu, click the tag to open the icon bar. The icons within are dependent on the device you are accessing from (touch devices get mouse options), but the basic icons are:

  • 'A' - a pallete with modifier keys that may not map to keys on your keyboard
  • Clipboard - allows for capturing the desktop clipboard or sending your clip board to the remote server
  • Cog - settings, ordinarily you don't need to change these, but you may wish to change the Scaling mode and quality sliders.
  • The final icon disconnects you from noVNC - once disconnected, your current VNC session is terminated - to return to your desktop you will need to relaunch via the My Interactive Sessions page.

The Mate Desktop

The Mate desktop has two panels by default, the top housing the application menus and application launcher icons (file browser, terminal, Firefox web browser and Thunderbird mail client by default) and on the far right the date and time. The bottom panel has a button to show the desktop and then on the far right, four virtual desktop switchers allowing you to organise your windows by task.

Most interactions with the FMRIB cluster will be via the terminal application which provides a command line from which you can launch FSL applications and submit to the cluster via fsl_sub. Most software packages need activating using environment modules - use the module commands to list/activate/deactive.

How to request and use a dedicated MATLAB session on the FMRIB cluster

The Open OnDemand Interactive Apps/MATLAB option allows you to start an interactive session housing only MATLAB. Whilst you can of course use MATLAB via the Remote Desktop app, this option uses less server resources, and can be considered to be similar to 'ssh -Y' but with session persistence.

The MATLAB app configuration form required the following information:

  • MATLAB version - 'default' will choose the newest version installed, or you can choose a specific version.
  • Extra modules script - this allows you to specify the full path to a text file that will load environment modules before starting MATLAB.
  • Number of CPU cores / memory required - please keep these as low as is required for your work - these are limited resources, so requesting many cores and lots of memory may mean you wait a long time for your job to start. Ordinarily aim for a maximum of 16GB for every two cores you request (based on one of the cores being a 'virtual thread') to align with the memory capacity of our servers.
  • Number of hours - this is the maximum duration of your session, subject to the maxium job duration on the interactive (or gpu_short) partitions (5 days). Again, to allow others to use the facility please limit this to your expected run time + time for you to save results.
  • GPU toggle - GPUs are a finite resource, so selecting a GPU may mean you wait for a long time to get your session - please only do this if your task requires CUDA. This will add two additional options to specify a specify GPU type and to request more than one GPU - if you need one GPU of any type then leave these boxes as they are.

Click Launch to submit your job to the queue. This will take you to the My Interactive Sessions page when you can launch the VNC session - see the Interactive Remote Desktop instructions for details on using the VNC viewer.

Open OnDemand MATLAB

Running RStudio on the FMRIB cluster

The Open OnDemand server allows you to run RStudio via a cluster job.

To start a session, select RStudio Server from the Interactive Apps menu, this provides a form you can use to setup your RStudio session, and requires the following information:

  • R Studio Server version - 'default' will use the latest version installed, or you can select a specific version (if available) using the drop down menu.
  • Extra modules script - if you need to load any environment modules before starting R, create a text file containing the appropriate `module load` commands and specify the full path to the script here.
  • Cores/RAM - choose an appropriate amount of cores and memory for your task. Try to keep these as low as possible, and aim for a maximum of 16GB for every two CPU cores you request (based on one of those cores being a virtual thread).
  • Enter the number of hours you need the session for - this is subject to the maximum time configured on the interactive (or gpu_short) partition.
  • Finally, if your software requires a CUDA device then you can tick the GPU box. This will add two additional fields allowing you to select a specific GPU type and specfiy that you require more than one GPU (default is one GPU). Please be aware that there are a limited number of GPUs you may have to wait some time for your session to start.

Open OnDemand RStudio ServerOpen OnDemand RStudio Server

 

Once submitted you will be taken to you My Interactive Session page where you can monitor the progress of your job, connect to your session and shut it down.

When your job is running (the card heading has turned green), you can use the Connect to RStudio Server button to open a new web bowser tab with your session within.

Launching Jupyter on the FMRIB Cluster

The Jupyter Interactive App allows you to launch a Jupyter session on the FMRIB cluster, which you can then interact with using a web browser.

Before you can launch Jupyter you need to prepare a script that will provide the jupyter command. Typically this would be achieved using a conda environment. As a basic example, create a conda environment `jupyter` using a desktop, shell or SSH session:

conda create -y -n jupyter jupyter

create a text file in your home folder called `jupyter.sh` containing:

#!/bin/bash
. $HOME/.bashrc
conda activate jupyter

In the Jupyter form, enter the full path to this file, /home/fs0/<username>/jupyter.sh in the first text field (first red oval below)

Now choose from Jupyter Notebook, the classic view, or Jupyter Lab, which offers an Integrated Development Environment (IDE) interface.

Specify the startup folder, for example /vols/Scratch/<username>/<myanalysis> in the next field (second red oval).

  • Cores/RAM - choose an appropriate amount of cores and memory for your task. Try to keep these as low as possible, and aim for a maximum of 16GB for every two CPU cores you request (based on one of those cores being a virtual thread).
  • Enter the number of hours you need the session for - this is subject to the maximum time configured on the interactive (or gpu_short) partition.
  • Finally, if your software requires a CUDA device then you can tick the GPU box. This will add two additional fields allowing you to select a specific GPU type and specfiy that you require more than one GPU (default is one GPU). Please be aware that there are a limited number of GPUs you may have to wait some time for your session to start.

Click Launch to request your session.

Open OnDemand JupyterOpen OnDemand Jupyter

 

You will now be taken to the My Interactive Sessions page where you can wait for the job to launch.

Once the card heading turns green (from blue), your session has started and you will find a button 'Connect to Jupyter' that will launch your web session.

NB At present, unlike other interactive apps this will not launch a new tab/window - we do not currently understand why this occurs.