免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3712 | 回复: 5
打印 上一主题 下一主题

vnc连接问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-02 17:53 |只看该作者 |倒序浏览
F10系统
成功安装了vnc4.1.3,如下所示
[root@localhost down]# rpm -ivh vnc-4_1_3-x86_linux.rpm

Preparing...                ########################################### [100%]
        package vnc-4.1.3-1.fc10.i386 (which is newer than vnc-4.1.3-1.i386) is already installed
        file /usr/bin/vncviewer from install of vnc-4.1.3-1.i386 conflicts with file from package vnc-4.1.3-1.fc10.i386
        file /usr/share/doc/vnc-4.1.3/README from install of vnc-4.1.3-1.i386 conflicts with file from package vnc-4.1.3-1.fc10.i386
        file /usr/share/man/man1/vncviewer.1.gz from install of vnc-4.1.3-1.i386 conflicts with file from package vnc-4.1.3-1.fc10.i386
[root@localhost down]# vncserver

You will require a password to access your desktops.

Password:
Verify:

New 'localhost.wuhaoshu:1 (root)' desktop is localhost.wuhaoshu:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.wuhaoshu:1.log
[root@localhost down]# vncserver

New 'localhost.wuhaoshu:1 (root)' desktop is localhost.wuhaoshu:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.wuhaoshu:1.log

我的本机内网ip为192.168.1.44,关闭了防火墙,为什么不能本机vnc访问不能成功呢?
问题如下:
[root@localhost down]# vncviewer 192.168.1.44:1

VNC Viewer Free Edition 4.1.3 for X - built Oct 15 2008 12:49:56
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Fri Apr  3 00:45:12 2009
main:       unable to connect to host: Connection refused (111)

问题补充:我发现系统好像好像没有打开端口5801
[root@localhost down]# netstat -antp|grep 5901
[root@localhost down]# netstat -antp|grep 5801
[root@localhost down]#

[ 本帖最后由 昊猪猪 于 2009-4-2 18:08 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-04-02 18:13 |只看该作者

回复 #1 昊猪猪 的帖子

[root@localhost down]# gedit /root/.vnc/xstartup

不知是不是桌面的问题,我用的是gnome,不知写成startgnome & 对不对

[ 本帖最后由 昊猪猪 于 2009-4-2 18:18 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-04-02 23:26 |只看该作者
好像得vncserver :1吧。忘了什么参数了

论坛徽章:
0
4 [报告]
发表于 2009-04-03 09:07 |只看该作者
原帖由 emmoblin 于 2009-4-2 23:26 发表


好像得vncserver :1吧。忘了什么参数了

vncserver是服务端,开启这个服务,vncviewer就可通过ip:num这样的格式访问了

论坛徽章:
0
5 [报告]
发表于 2009-04-03 09:52 |只看该作者

回复 #4 昊猪猪 的帖子

贴出我的出错log文件,请大侠帮我分析分析:
[root@localhost .vnc]# cat localhost.wuhaoshu:1.log
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc


Fri Apr  3 17:34:39 2009
vncext:      VNC extension running!
vncext:      Listening for VNC connections on port 5901
vncext:      Listening for HTTP connections on port 5801
vncext:      created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
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/Speedo/, removing from list!
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/CID/, 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!

Fatal server error:
could not open default font 'fixed'
xsetroot:  unable to open display 'localhost.wuhaoshu:1'
vncconfig: unable to open display "localhost.wuhaoshu:1"

** (gnome-session:22636): WARNING **: Cannot open display:

论坛徽章:
0
6 [报告]
发表于 2009-04-03 16:54 |只看该作者
哪位知道的,发个贴吧!
谢谢了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP