⑴VNC是一款远程控制工具,免费的开源软件,通过VNC能够实现强大的远程控制,且是Linux有图形化的操作界面,下面小编就以CentOS .为例,给大家介绍下VNC在CentOS .下的安装和配置。
⑵,安装GNOME桌面环境
⑶[root ~]# yum -y groupinstall “GNOME Desktop Environment”
⑷, 安装KDE桌面环境
⑸[root ~]# yum groupinstall “X Window System” “KDE (K Desktop Environment”
⑹,安装VNC服务器
⑺[root ~]# yum -y install vnc-server
⑻Loaded plugins: fastestmirror, refresh-packagekit, security
⑼Loading mirror speeds from cached hostfile
⑽* base: mirror-fpt-tele.fpt.
⑾* extras: mirror-fpt-tele.fpt.
⑿* updates: mirror-fpt-tele.fpt.
⒀Setting up Install Process
⒁Resolving Dependencies
⒂–》 Running transaction check
⒃—》 Package tigervnc-server.i :..-..svn.el will be installed
⒄–》 Finished Dependency Resolution
⒅Dependencies Resolved
⒆================================================== ==============================
⒇Package Arch Version Repository
⒈================================================== ==============================
⒉Installing:
⒊tigervnc-server i ..-..svn.el base . M
⒋Transaction Summary
⒌================================================== ==============================
⒍Install Package(s
⒎Total download size: . M
⒏Installed size: . M
⒐Downloading Packages:
⒑tigervnc-server-..-..svn.el.i.rpm | . MB :
⒒warning: rpmts_HdrFromFdno: Header V RSA/SHA Signature, key ID cbde: NOKEY
⒓Retrieving key from
⒔Importing GPG key xCBDE:
⒕Userid : CentOS- Key (CentOS Official Signing Key
⒖Installed:
⒗tigervnc-server.i :..-..svn.el
⒘plete!
⒙[root ~]#
⒚[root ~]# su -jackiebui
⒛[jackiebuitanvps ~]# vncpasswd
①Password:******
②verify:******
③[jackiebuitanvps ~]# ls .vnc/
④,编辑VNC配置文件
⑤[root ~]# vi /etc/sysconfig/vncservers
⑥# The VNCSERVERS variable is a list of display:user pairs.
⑦# Unment the lines below to start a VNC server on display :
⑧# 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 work is
Ⅱ# untrusted! For a secure way of using VNC, see this URL:
Ⅲ# Use “-nolisten tcp” to prevent X connections to your VNC server via TCP.
Ⅳ# Use “-localhost” to prevent remote VNC clients connecting except when
Ⅴ# doing so through a secure tunnel. See the “-via” option in the
Ⅵ# `man vncviewer’ manual page.
ⅦVNCSERVERS=”:jackiebui” //Unment last lines, and edit your VNC user
ⅧVNCSERVERARGS[]=”-geometry × -nolisten tcp -localhost” // Save and exit
Ⅸ[root ~]# vncserver
Ⅹ[root ~]# chkconfig vncserver on //设置为开机启动
㈠上面就是CentOS.安装设置VNC的方法介绍了,在安装VNC前,需要先安装GNOME、KDE桌面环境,安装完VNC后需要对其进行相关配置。