Why do I obtain this error: 'Error 'Invalid MIT-MAGIC-COOKIE-1' when I do sudo to lauch MATLAB on a Linux machine in MATLAB (R2012b)?

When I remode desktop to a Linux machine, where MATLAB is installed, I obtain the error:
Error 'Invalid MIT-MAGIC-COOKIE-1'
Could you help? Thanks!

 채택된 답변

Please note that we do not support Remote Desktop Connections. But the follwoing quick fix will solve the issue.
The issue is due to XAUTH and/or XHOST when you are trying to be a super-user and make connections through the X server.
The workaround is to execute the following in the terminal, as a normal user:
xhost local:root
Then sudo to MATLAB.
sudo matlab
You may want to automate it in a script and create an alias for launching MATLAB as a super-user.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by