CentOS 6.3安装和配置VNC

对于用惯了WIN系统的朋友来说,没有图形化操作界面的Linux用起来实在太难受了。实际上,Linux也是有图形化操作界面的,,这就是VNC。接下来本文将告诉大家如何在CentOS 6.3下安装和配置 VNC图形化操作界面。

1,安装GNOME桌面环境

[root@ ~]# yum -y groupinstall “GNOME Desktop Environment”2, 安装KDE桌面环境

[root@ ~]# yum groupinstall “X Window System” “KDE (K Desktop Environment)”3,安装VNC服务器

[root@ ~]# yum -y install vnc-serverLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile* base: mirror-fpt-telecom.fpt.net* extras: mirror-fpt-telecom.fpt.net* updates: mirror-fpt-telecom.fpt.netSetting up Install ProcessResolving Dependencies–> Running transaction check—> Package tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6 will be installed–> Finished Dependency ResolutionDependencies Resolved================================================== ==============================Package Arch Version RepositorySize================================================== ==============================Installing:tigervnc-server i686 1.0.90-0.17.20110314svn4359.el6 base 1.1 MTransaction Summary================================================== ==============================Install 1 Package(s)Total download size: 1.1 MInstalled size: 2.9 MDownloading Packages:tigervnc-server-1.0.90-0.17.20110314svn4359.el6.i686.rpm | 1.1 MB 00:02warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6Importing GPG key 0xC105B9DE:Userid : CentOS-6 Key (CentOS 6 Official Signing Key)

Installed:tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6Complete![root@ ~]#4,配置VNC

[root@ ~]# su -jackiebui[jackiebui@tanvps ~]# vncpasswdPassword:******verify:******[jackiebui@tanvps ~]# ls .vnc/5,编辑VNC配置文件

[root@ ~]# vi /etc/sysconfig/vncservers# The VNCSERVERS variable is a list of display:user pairs.## Uncomment the lines below to start a VNC server on display :2# 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 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=”1:jackiebui” //Uncomment 2 last lines, and edit your VNC userVNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -localhost” // Save and exit启动VNC

[root@ ~]# vncserver[root@ ~]# chkconfig vncserver on //设置为开机启动

孜孜不倦的追求奋斗,加油。

CentOS 6.3安装和配置VNC

相关文章:

你感兴趣的文章:

标签云: