读书人

vnc服务启动错误

发布时间: 2013-10-18 20:53:13 作者: rapoo

vnc服务启动异常

问题

linux:~ # vncserver
VNC(R) Server 5.0.5 (r106461)
Built on Mar? 4 2013 12:57:38
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt

xauth: (argv):1:? bad display name "linux:1" in "add" command
Error: could not run xauth
检查hostname

linux:~ # hostname
linux
修改/etc/hosts文件

 #               used at boot time, when no name servers are running.#               On small systems, this file can be used instead of a#               "named" name server.# Syntax:## IP-Address  Full-Qualified-Hostname  Short-Hostname#127.0.0.1        localhost#127.0.0.1 feb01.cn.ibm.com# special IPv6 addresses::1             localhost ipv6-localhost ipv6-loopbackfe00::0         ipv6-localnetff00::0         ipv6-mcastprefixff02::1         ipv6-allnodesff02::2         ipv6-allroutersff02::3         ipv6-allhosts9.123.106.155   wplccdlvm310.cn.ibm.com9.123.115.136   dom65ldap.cn.ibm.com9.110.183.212   feb01.cn.ibm.com9.110.183.212   linux.site linux

?检查如下配置

feb01:~ # cat /proc/sys/kernel/hostnamelinuxfeb01:~ # hostnamelinuxfeb01:~ # unameLinux

?

?

再次运行vncserver 成功

linux:~ # vncserverVNC(R) Server 5.0.5 (r106461)Built on Mar  4 2013 12:57:38Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txtRunning applications in /root/.vnc/xstartupVNC Server signature: 47-d5-a4-96-38-70-d6-16Log file is /root/.vnc/linux:3.logNew desktop is linux:3 (9.110.183.212:3)

?

?

?

读书人网 >操作系统

热点推荐