我不认为自己是白痴,但显然我是。所以请帮助白痴。我在vmware上运行了全新的Ubuntu 14.04.1 LTS全新安装。我希望从Windows 7计算机访问它。听起来很容易,所以我去了一个终端并运行vncserver,它要求我设置密码,然后才似乎正在运行。
然后,我在Windows 7计算机(仅Viewer)上安装了UltraVNC,然后尝试连接。输入密码(确认我已到达计算机)后,得到的只是一个空白屏幕。经过大量谷歌搜索后,这似乎是正常的反应。我研究了许多Google文章,其中大多数涉及一种或另一种形式的神奇咒语,但我无能为力。
vncserver日志文件抱怨“打开安全策略文件/ etc / X11 / xserver / SecurityPolicy时出错”,后跟一堆消息“无法初始化字体路径元素...。”
在那之后,它显示出似乎有效的连接或断开连接,但是我永远都无法在屏幕上显示任何东西。当然,这应该可以立即使用。
我决定从Ubuntu计算机上添加此帖子,以便可以添加,以便可以使用剪切和粘贴添加日志和xstartup文件。
Sun Feb 22 17:42:13 2015
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/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
Sun Feb 22 17:42:42 2015
Connections: accepted: 0.0.0.0::54270
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)
Sun Feb 22 17:42:49 2015
SConnection: AuthFailureException: Authentication failure
Connections: closed: 0.0.0.0::54270 (Authentication failure)
Sun Feb 22 17:43:21 2015
Connections: accepted: 0.0.0.0::54281
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)
Sun Feb 22 17:43:28 2015
VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
VNCSConnST: Client pixel format depth 16 (16bpp) little-endian rgb565
Sun Feb 22 17:43:41 2015
Connections: closed: 0.0.0.0::54281 (Clean disconnection)
SMsgWriter: framebuffer updates 3
SMsgWriter: ZRLE rects 4, bytes 1380
SMsgWriter: raw bytes equivalent 3146800, compression ratio 2280.289855
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec sh /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &
在Steeldriver的帮助下,解决方案非常简单。忘记vncserver,而是搜索“桌面共享”。回答问题,然后使用VNC连接到端口5900或:0。可能有必要,具体取决于您的客户端以禁用加密。可以使用以下命令在终端上完成此操作:
gsettings set org.gnome.Vino require-encryption 'false'
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句