运行完vncserver以后,打开窗口是一片灰。别急,看下面:shell
编辑: vi ~/.vnc/xstartupsession
注释掉全部行。spa
而后加入下面两行:code
vncconfig -nowin & exec gnome-session