[gavin@centos ~]$ rpm -q vnc vnc-server package vnc is not installed vnc-server-4.0-8.1 cent os 5已包含vnc的安装包
2.将用户名称加入到配置文件: (注:这里的”用户名”是指linux系统用户的名称)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[gavin@centos ~]$ vi /etc/sysconfig/vncservers # # Uncomment the line below to start a VNC server on display :1 # as my 'myusername' (adjust this to your own). You will also # need to set a VNC password; run 'man vncpasswd' to see how # to do that. # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, see # http://www.uk.research.att.com/vnc/sshvnc.html>. # VNCSERVERS="1:myusername" # VNCSERVERS="1:gavin 2:john" # use the method for more user VNCSERVERS="1:gavin 2:root 3:root" # VNCSERVERARGS[1]="-geometry 800x600" VNCSERVERARGS[1]="-geometry 1024x768"