Obviously I'm not looking to open another terminal and ssh without -X. I'm actually doing this with running Matlab on another server. So after ssh'ing into my remote server with the -X option, I type matlab and the graphics forward in as expected.

How do I run matlab with X11 forwarding enabled but without graphics?

  • 2
    so you want it to not connect to the X11 display and just use the console? try DISPLAY= foobar where foobar is your command. – strugee Jun 15 '14 at 0:05

You can run matlab with the -nodesktop option.


                      ss #1

Source: Launching MATLAB without the desktop


You should be able to invoke matlab with the -nodisplay option

matlab -nodisplay

or simply unset the DISPLAY environment variable e.g. in bash

DISPLAY= matlab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.