1- Yes Matlab works as expected without going through ssh.
2- Repeat the above but first do a "ssh -X localhost" triggers the problem.
3- Both scenarios hold regardless of how I login ("Ubuntu", "Ubuntu on Xorg" or "Unity").
As you mentionned the DISPLAY variable I checked the following (maybe it was obvious, but not to me):
- ssh@localhost
- echo $DISPLAY returns localhost:10.0
- export DISPLAY=:0
- matlab & then plot(1,1).
- it works. (tested in "Ubuntu", "Ubuntu on Xorg" and "Unity")
1- Yes Matlab works as expected without going through ssh.
2- Repeat the above but first do a "ssh -X localhost" triggers the problem.
3- Both scenarios hold regardless of how I login ("Ubuntu", "Ubuntu on Xorg" or "Unity").
As you mentionned the DISPLAY variable I checked the following (maybe it was obvious, but not to me):
- ssh@localhost
- echo $DISPLAY returns localhost:10.0
- export DISPLAY=:0
- matlab & then plot(1,1).
- it works. (tested in "Ubuntu", "Ubuntu on Xorg" and "Unity")