You are not logged in.
When I try to start up matlab from the console I get the error:
Invalid MIT-MAGIC-COOKIE-1 key
I couldn't find anything about it anywhere. Please help.
Offline
from the console...
Matlab is (per default at least) a gui application. It needs to run in a X11 session unless it has an option / flag to run specifically in text-mode / REPL which it might (but I can't find any man page for it).
I'm not sure why the error didn't mention a missing DISPLAY variable (did you set one manually?) but this error is similar in that it is looking for an X11 display server.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
leouscin wrote:from the console...
Matlab is (per default at least) a gui application. It needs to run in a X11 session unless it has an option / flag to run specifically in text-mode / REPL which it might (but I can't find any man page for it).
I'm not sure why the error didn't mention a missing DISPLAY variable (did you set one manually?) but this error is similar in that it is looking for an X11 display server.
Yes, I set
export DISPLAY=:0
Offline
And why would you do that? That's (mostly) hypothetical ... don't do that. If that export is in any config or shellrc file, get rid of it.
Then, if you want to run X11 applications, start an X11 session (Xorg [or really xinit or a DM or similar] will set DISPLAY for you - from the user point of view that should be seen as a read-only variable, much like TERM should be).
Last edited by Trilby (2023-07-07 18:17:39)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
And why would you do that? That's (mostly) hypothetical ... don't do that. If that export is in any config or shellrc file, get rid of it.
Then, if you want to run X11 applications, start an X11 session (Xorg [or really xinit or a DM or similar] will set DISPLAY for you - from the user point of view that should be seen as a read-only variable, much like TERM should be).
I didn't start the conversation to talk about the DISPLAY variable. I am having a problem firing up matlab becaus it constantly throws the error "Invalid MIT-MAGIC-COOKIE-1 key" and I don't have a clue how to fix it.
Offline
I didn't start the conversation to talk about the DISPLAY variable.
No, but it is EXTREMELY relevant to
I am having a problem firing up matlab becaus it constantly throws the error "Invalid MIT-MAGIC-COOKIE-1 key"
xauth -v list
ls -l /tmp/.X11-unix
loginctl session-status
hostnamectl
If you want to debate whether you want to post the output of those commands while none of them will start matlab: talk to a wall.
Offline
Whether you want to talk about it or not isn't relevant: you cant run an X11 client program except within a running X11 server. Period.
Last edited by Trilby (2023-07-09 23:06:39)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline