Hi Arsenios,
The error messages "Gtk-Message": Failed to load module "canberra-gtk-module" and "Gtk-Message": Failed to load module "pk-gtk-module" are related to the GTK graphical user interface toolkit that MATLAB uses for rendering its interface on Linux systems.
The fact that this issue only occurs when you're connecting remotely suggests that there might be a difference in the environment configuration between local and remote sessions. Here are some possible workarounds:
- Environment Variables: Remote sessions may not initialize all the same environment variables as local sessions. Check if the "LD_LIBRARY_PATH" and "GTK_PATH" environment variables are set correctly in the remote session.
- If you need to use MATLAB remotely and cannot resolve the GTK module issue, you could consider using "MATLAB Online", which provides access to MATLAB from a web browser without any installation.
- You could also try launching MATLAB in no-display mode (without the GUI) by using the '-nodesktop' option when starting MATLAB in the remote session.
>> matlab -nodesktop
I hope this helps!