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)

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值