How can I permanently disable Matlab Drive in Linux?

17 次查看(过去 30 天)
I would like to permanently disable Matlab Drive in Linux (R2023b). I have no use for this functionality, and do not want unnecessary services running on my machine (especially when I am not even running Matlab!)
I have tried uninstalling ServiceHost, but then Matlab will not start.

回答(1 个)

Pratyush
Pratyush 2023-11-21
编辑:Pratyush 2023-11-21
Hi Lionel,
I understand that you want to disable MATLAB Drive permanently on your system.
  • You can follow this link to logout from MATLAB Drive connector. https://in.mathworks.com/matlabcentral/answers/452867-how-can-i-log-out-of-matlab-drive-connector
  • After this, navigate to the directory where Matlab is installed. This is typically "/usr/local/MATLAB/R2023b" or a similar location.
  • Within this directory, find the "toolbox/matlab/drive" folder. This is where the Matlab Drive service is located. Remove this folder.
  • Check if there are any startup scripts related to Matlab Drive in userpath. If you find any, you can disable them using the appropriate commands for your Linux distribution.
Refer to the following documentation link to know about startup script and userpath.
Hope this helps.
  2 个评论
LionelB
LionelB 2023-11-21
编辑:LionelB 2023-11-21
Hi Pratyush,
I have followed all those steps as far as possible, but that doesn't seem to do the job. The problem in those instructions appears to be the "... and reinstall" part. Without reinstalling the Service Host, Matlab will not start; after reinstalling it, however, MathWorksServiceHost always starts up - and lingers even after exiting from Matlab.
I have checked for, and deleted, all autostart scripts set up by Service Host, and there are no drive-related scripts on userpath or any startup files.
I note also that there was no directory called drive in <matlab-installation-path>/toolbox/matlab (or anywhere else on the installation path) for R2023b.
Lucas Ritzdorf
Lucas Ritzdorf 2024-1-26
I've also followed the above steps, and am encountering the same issue as LionelB above — specifically, the service host still lingers after exiting MATLAB proper. Also similarly, no drive directory was present for me in the specified location. Is some other component starting the service host, and forgetting to kill it upon exit?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by