Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions source/compute/portal/ondemand/matlab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,28 @@ Before you connect
.. tab-item:: KU Leuven/UHasselt
:sync: kuluh

(NA)
MATLAB automatically generates several hidden folders in your ``$VSC_HOME``,
including the folder ``.MathWorks``, which can become quite big over time. To
prevent ``$VSC_HOME`` from filling up, we recommend creating symlinks to
redirect this folder to your ``$VSC_DATA`` directory. If this folder already
exists, you can safely delete it. Execute the following commands to accomplish this:

.. code-block:: bash

rm -rv ~/.MathWorks
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps rm -rf ~/.MathWorks, instead?

mkdir -pv $VSC_DATA/.MathWorks
ln -sv $VSC_DATA/.MathWorks ~/.MathWorks

In case you're trying this on a login node and you previously ran Matlab
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe start like this: Please refrain from running MATLAB on the login nodes; but, in case you had opened MATLAB on the login nodes, you might ...

on that login node, you might have to kill any existing MathWorksServiceHost
processes running there:

.. code-block:: bash

# look for the PID of the MathWorksServiceHost process
ps aux | grep MathWorksServiceHost
kill <process_id>


.. tab-item:: VUB
:sync: vub
Expand All @@ -42,8 +63,7 @@ Before you connect
including the folder ``.MathWorks``, which can become quite big over time. To
prevent ``$VSC_HOME`` from filling up, we recommend creating symlinks to
redirect this folder to your ``$VSC_DATA`` directory. If this folder already
exists, you can safely delete it. Execute the following commands to automate the
process:
exists, you can safely delete it. Execute the following commands to accomplish this:

.. code-block:: bash

Expand Down