我正在尝试使用 Linode VPS 作为我的 Rails 项目的开发箱,所以我想设置一个 GUI 环境来运行一些基础知识,比如用于调试的谷歌浏览器。
有上安装VPC和Gnome一个很好的教程在这里,我已经紧随其后了。一切似乎都运行正常,但是当我尝试从 VNC 客户端登录时,我收到一条消息:
Failed to load session 'ubuntu.'
Run Code Online (Sandbox Code Playgroud)
这是在带有注销按钮和黑色 X 的默认灰色屏幕上。
我认为问题出在我的.vnc/startup文件上,但我不确定从哪里开始进行故障排除。我尝试从 Windows 和本地 Ubuntu 机器上的不同客户端登录。我也尝试从一开始就重建 VPS 并得到相同的结果。
有什么建议?
编辑:我检查了会话日志文件,这里是报告的错误。我认为字体错误不是什么大问题,但安全策略错误似乎是一个问题。
Xvnc Free Edition 4.1.1 - built Sep 7 2011 11:26:15
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc
Sat Nov 12 04:54:40 2011
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/Type1/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
Run Code Online (Sandbox Code Playgroud)
小智 3
添加一些参数以在 ~/.vnc/xstartup 文件中启动 gnome-session
gnome-session --session=gnome-classic &
Run Code Online (Sandbox Code Playgroud)
或者
exec gnome-session --session=gnome-classic &
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4942 次 |
| 最近记录: |