启动MindStudio时,出现“Failed to initialize graphics environment”、“Unable to detect graphics environment ”或“Can't connect to X11 window server using 'localhost:xxx' as the value of the DISPLAY variable”报错信息,如图1、图2或图3所示。
使用登录系统的用户重新启动MindStudio用户。
yum install xorg-x11-xauth
apt-get install x11-apps
vi /etc/ssh/sshd_config
cat /etc/ssh/sshd_config |grep -i X11Forwarding
若输出“X11Forwarding yes”,则表示X11Forwarding项配置生效。
cat /etc/ssh/sshd_config |grep -i X11UseLocalhost
若输出“X11UseLocalhost no”,则表示X11UseLocalhost项配置生效。
service sshd restart
service ssh restart