错误一:连接时出现:Can't open display: localhost:10.0
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known
/usr/bin/xterm Xt error: Can't open display: localhost:10.0
解决方法:
在/etc/hosts 中加入
127.0.0.1 localhost
之后能进入图形界面,注意是实际ip和机器名
参考:http://blog.sina.com.cn/s/blog_5112c0a60100rmpp.html