centOS5.5-64内置xvnc连接失败问题解决: 改端口5902

本文详细介绍了在CentOS系统中配置VNC服务的方法,包括启动服务、设置密码及解决连接失败的问题,并提供了如何调整VNC桌面显示效果的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一。启动vnc服务:跟32位CentOs不同,需要手工改动(如下),并使用5902端口连接,成功:

Step 1
You need to modify /etc/sysconfig/vncservers
Here you would put the desktop number and name. The name is a user on
the system.

VNCSERVERS="2:someuser"

不要uncomment下边那行:vncserverARGS

Step 2 run chkconfig and make sure vncserver is enabled and on the
levels you wanted it to run on.

Step 3

As root

su - someuser

Run vncpasswd and generate a vnc password

Step 4
Start vnc
service vncserver start

来自: http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-03/0545.html

过程:上述4步后、vnc启动成功;但还是连不上,提示failed to connect..开始以为看 /var/log/messages可以搞定,但完全没用,其他log目录下的内容也看了,一样没用;再后来:ps -ef|grep vncserver,得到了一行信息,其中有 port=5902字样,马上在viewer上ip地址后增加5902,搞定!、


二。开始vnc连到的桌面极其简陋,需要调整xmanager:

You might prefer the VNC desktop session to look and behave the same as the login session you would normally see. To do that, edit the file/home/username/.vnc/xstartup and remove the# from the beginning of the two lines that follow the line reading "Uncomment the following two lines for normal desktop."


这里的/home/username,可用~ 代替。


摘自:http://www.redhat.com/magazine/006apr05/features/vnc/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值