gedit打开文件报错:
Unable to init server: Could not connect: Connection refused (gedit:3278): Gtk-WARNING **: 10:39:36.
原因:xserver默认情况下不允许别的图形程序显示在当前屏幕上
解决办法:
vncserver :1
export DISPLAY=localhost:1
xhost +
输出:access control disabled, clients can connect from any host