View Full Version : x11 problem
abhishekit
Nov 11, 2003, 11:01 AM
hi people
i have some problem figuring out x11. i have matlab in my office machine which is linux, when i am logging on it with my ibook, and running matlab its not showing me the gui...i installed x11 from apple;s site...still same problem
any clues will be appreciated
cheers
abhi
cubist
Nov 11, 2003, 11:10 AM
You need to run the X11 application (X11.app) which is in Applications or Applications/Utilities.
On the matlab machine, you need to do "export DISPLAY=nn.nn.nn.nn:0" where nn.nn.nn.nn is the IP address of your Mac. If you are going though a NAT router, I'm not sure what you do there. Are you using a VPN?
will
Nov 11, 2003, 11:18 AM
You may also need to authorise X connections from your Linux machine to your OS X box. To do this open an X11 terminal on your Apple box and type:
xhost +<IP of Linux box>
e.g.
[powerx:~] will% xhost +172.29.160.23
172.29.160.23 being added to access control list
You can see the current list of allowed hosts by typing xhost by itself.
abhishekit
Nov 11, 2003, 11:38 AM
Originally posted by cubist
You need to run the X11 application (X11.app) which is in Applications or Applications/Utilities.
On the matlab machine, you need to do "export DISPLAY=nn.nn.nn.nn:0" where nn.nn.nn.nn is the IP address of your Mac. If you are going though a NAT router, I'm not sure what you do there. Are you using a VPN?
well i am logging on to my schools wireless network and then doin ssh into my linux machine.
i did export DISPLAY , but still i cant see any gui.
also i did xhost+ on both linux as well as my ibook..
what should i try next?
will
Nov 11, 2003, 11:44 AM
You should only need to run xhost on the Mac. Can the two boxes see each other correctly? When you ssh from the Mac box to the Linux box are you using the -X option, which enables X forwarding? Note it's a capital X, lowercase disables, see man ssh for more.
abhishekit
Nov 11, 2003, 11:51 AM
hey thanks a lot will....
bingo it works ......
u saved my day today...
cheers
abhi
65505201
Feb 21, 2005, 05:36 PM
I know this is an old thread....but perhaps you guys can help.
I've finally managed to get MATLAB to open via SSH on a school server. However, I get that my OpenGL drivers are not installed correctly. However, MATLAB still loads up.
Next, I tried loading Ansys but failed. Since it's such a graphics intensive program, I didn't really expect it to work....with the 'missing OpenGL drivers'.
The exact error msg I get when opening MATLAB is:
Warning: Could not query OpenGL.
Warning: OpenGL appears to be installed incorrectly.
Help?
yellow
Feb 21, 2005, 07:34 PM
Chances are pretty high that OpenGL is installed (and correctly) on your Mac. It may be that it's an old version of MatLab that cannot cope/find with newer versions of OpenGL?
65505201
Feb 21, 2005, 11:44 PM
Chances are pretty high that OpenGL is installed (and correctly) on your Mac. It may be that it's an old version of MatLab that cannot cope/find with newer versions of OpenGL?
I don't think it's MatLab.
1. I'm using the newest version of OSX (10.3.8).
2. The newest version of MatLab is 7.
3. I can run Matlab 7 natively (installation on my HD).
4. The version of Matlab that I'm connecting to is also 7...but on a Unix machine.
However...I'm getting conflicting information. Some people are saying to manually assign my $DISPLAY settings to 'IP-addy':0.0. Others are saying to simply log in using 'ssh -X XXX@XXXX.ca' and let X forwarding handle the display.
When I type 'echo $DISPLAY' after using 'ssh -X XXX@XXXX.ca', I get 'localhost:10.0'
Now...I would assume that if the $DISPLAY parameter was messed...I wouldn't even get the MatLab window popping up...but that isn't the case! I can do calculations...but I can't plot graphs. I get
"??? Error using ==> plot
MATLAB : Graphics Plot."
P.S. I'm not violating any forum rules by responding this quickly am I? :confused:
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.