`

vnc服务启动异常 | hostname related to SUSE Linux Enterprise Server 11 SP1 (x86_64)

 
阅读更多

问题

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-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
9.123.106.155   wplccdlvm310.cn.ibm.com
9.123.115.136   dom65ldap.cn.ibm.com
9.110.183.212   feb01.cn.ibm.com
9.110.183.212   linux.site linux

 检查如下配置

feb01:~ # cat /proc/sys/kernel/hostname
linux
feb01:~ # hostname
linux
feb01:~ # uname
Linux

 

 

再次运行vncserver 成功

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


Running applications in /root/.vnc/xstartup

VNC Server signature: 47-d5-a4-96-38-70-d6-16
Log file is /root/.vnc/linux:3.log
New desktop is linux:3 (9.110.183.212:3)

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics