一。启动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
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/