出现的问题: /usr/local/MATLAB/R2012a/bin/matlab-nojvm -nosplash -r "ls;exit;"Warning: No displayspecified. You will not be able to display graphics on the screen. http://www.mathworks.com/matlabcentral/newsreader/view_thread/165074 ThreadSubject: error message " no display specified" Subject: errormessage " no display specified" DearFriends, When I try to open the matlab installed on remoteserver to work on the files located at the same server,byusing Xterm on windows XP OS, I get the message "NoDisplay specified. You will not be able to displaygraphics on the screen." Please suggest me somesolution. Thanks Subject: errormessage " no display specified" Inarticle PeterJohansson <johansson2006@hotmail.com> wrote: >DearFriends, >When I try to open the matlab installed on remoteserver to >work on the files located at the sameserver,by using Xterm >on windows XP OS, I get themessage "No Display specified. >You will not beable to display graphics on the screen." On the remotehost, define a global environment variable named DISPLAY whichis your PC's hostname (or IP address) followed by ':0'. Themeans to define this variable will depend upon the shell youare using, and upon the operating system. For example forthe original Bourne shell('sh'), DISPLAY=johansson.hotworks.com:0 exportDISPLAY For the Korn shell or modern Bourne shell, theabove would work as would exportDISPLAY=johansson.hotworks.com:0 For csh and derivatives,you would likely need something similar to setenv DISPLAYjohansson.hotworks.com:0 On some Unix systems assigningDISPLAY can be done automatically in /etc/profile by a linesuch as [ ! -z "${REMOTEHOST:-}" ] &&DISPLAY=$REMOTEHOST:0 export DISPLAY Once you haveDISPLAY defined on the remote system, you might need to"authorize" the remote system to display onto yourlocal system. The mechanisms for that vary according to whichX11 you are running (e.g., Hummingbird eXceed or cygwin) butthe typical unix-like mechanism would be to use the 'xauth'command. xauth has two major modes of operation. The easier ofthe two is not permitted in some security environments. Itwould look like xauth +SERVERNAME such as xauth+matserv.hotworks.com Sometimes you have to use IPaddresses for DISPLAY and for xauth . -- "Productof a myriad various minds and contending tongues, compactof obscure and minute association, a language hasits own abundant and often recondite laws, in thehabitual and summary recognition of whichscholarship consists." -- Walter Pater |
GMT+8, 2024-11-24 21:38 , Processed in 0.033962 second(s), 16 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.