+ # (exporting SimGrid_PATH is only needed if SimGrid is installed in a non-standard path)
+ $ export SimGrid_PATH=/where/to/simgrid
+
+ $ git clone https://framagit.org/simgrid/simgrid-template-s4u.git
+ $ cd simgrid-template-s4u/
+ $ cmake .
+ $ make
+
+ If you struggle with the compilation, then you should double-check
+ your :ref:`SimGrid installation <install>`. On need, please refer to
+ the :ref:`Troubleshooting your Project Setup
+ <install_yours_troubleshooting>` section.
+
+ .. group-tab:: Python
+
+ To take the tutorial on your machine, you first need to :ref:`install
+ a recent version of SimGrid <install>` and ``pajeng`` to visualize the
+ traces. You may want to install `Vite <http://vite.gforge.inria.fr/>`_ to get a first glance at the traces.
+ On Debian and Ubuntu for example, you can get them as follows:
+
+ .. code-block:: console
+
+ $ sudo apt install simgrid pajeng vite
+
+ An initial version of the source code is provided on framagit.
+ If SimGrid is correctly installed, you should be able to clone the `repository
+ <https://framagit.org/simgrid/simgrid-template-s4u>`_ and execute it as follows:
+
+ .. code-block:: console
+
+ $ git clone https://framagit.org/simgrid/simgrid-template-s4u.git
+ $ cd simgrid-template-s4u/
+ $ python master-workers.py small_platform.xml master-workers_d.xml
+
+ If you get some errors, then you should double-check
+ your :ref:`SimGrid installation <install>`. On need, please refer to
+ the :ref:`Troubleshooting your Project Setup <install_yours_troubleshooting>` section.
+
+.. warning::
+
+ If you use the stable version of Debian 11, Ubuntu 21.04 or Ubuntu 21.10, then you need the right version of this tutorial
+ (add ``--branch simgrid-v3.25`` as below). These distributions only contain SimGrid v3.25 while the latest version of this
+ tutorial needs at least SimGrid v3.27.
+
+ .. code-block:: console
+
+ $ git clone --branch simgrid-v3.25 https://framagit.org/simgrid/simgrid-template-s4u.git
+
+For R analysis of the produced traces, you may want to install R
+and the `pajengr <https://github.com/schnorr/pajengr#installation/>`_ package.
+
+.. code-block:: console
+
+ # install R and necessary packages
+ $ sudo apt install r-base r-cran-devtools r-cran-tidyverse
+ # install pajengr dependencies
+ $ sudo apt install git cmake flex bison
+ # install the pajengr R package
+ $ Rscript -e "library(devtools); install_github('schnorr/pajengr');"