系統(tǒng)之家 - 系統(tǒng)光盤下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > 在CentOS上安裝設(shè)置VNC

在CentOS上如何安裝設(shè)置VNC

時間:2015-03-26 17:19:48 作者:qipeng 來源:系統(tǒng)之家 1. 掃描二維碼隨時看資訊 2. 請使用手機(jī)瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20150326/42964.html 手機(jī)查看 評論

  VNC是一款遠(yuǎn)程控制工具,免費的開源軟件,通過VNC能夠?qū)崿F(xiàn)強(qiáng)大的遠(yuǎn)程控制,且是Linux有圖形化的操作界面,下面小編就以CentOS 6.3為例,給大家介紹下VNC在CentOS 6.3下的安裝和配置。

 在CentOS上如何安裝設(shè)置VNC

  1,安裝GNOME桌面環(huán)境

 。踨oot@ www.linuxidc.com ~]# yum -y groupinstall “GNOME Desktop Environment”

  2, 安裝KDE桌面環(huán)境

 。踨oot@ www.linuxidc.com ~]# yum groupinstall “X Window System” “KDE (K Desktop Environment)”

  3,安裝VNC服務(wù)器

 。踨oot@ www.linuxidc.com ~]# yum -y install vnc-server

  Loaded plugins: fastestmirror, refresh-packagekit, security

  Loading mirror speeds from cached hostfile

  * base: mirror-fpt-telecom.fpt.net

  * extras: mirror-fpt-telecom.fpt.net

  * updates: mirror-fpt-telecom.fpt.net

  Setting up Install Process

  Resolving Dependencies

  –》 Running transaction check

  —》 Package tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6 will be installed

  –》 Finished Dependency Resolution

  Dependencies Resolved

  ================================================== ==============================

  Package Arch Version Repository

  Size

  ================================================== ==============================

  Installing:

  tigervnc-server i686 1.0.90-0.17.20110314svn4359.el6 base 1.1 M

  Transaction Summary

  ================================================== ==============================

  Install 1 Package(s)

  Total download size: 1.1 M

  Installed size: 2.9 M

  Downloading Packages:

  tigervnc-server-1.0.90-0.17.20110314svn4359.el6.i686.rpm | 1.1 MB 00:02

  warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

  Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

  Importing GPG key 0xC105B9DE:

  Userid : CentOS-6 Key (CentOS 6 Official Signing Key)

  Installed:

  tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6

  Complete!

  [root@ www.linuxidc.com ~]#

  4,配置VNC

 。踨oot@ www.linuxidc.com ~]# su -jackiebui

  [jackiebui@tanvps ~]# vncpasswd

  Password:******

  verify:******

 。踛ackiebui@tanvps ~]# ls .vnc/

  5,編輯VNC配置文件

 。踨oot@ www.linuxidc.com ~]# 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:

  # https://kbase.RedHat.com/faq/docs/DOC-7028

  # 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 user

  VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -localhost” // Save and exit

  啟動VNC

 。踨oot@ www.linuxidc.com ~]# vncserver

  [root@ www.linuxidc.com ~]# chkconfig vncserver on //設(shè)置為開機(jī)啟動

  上面就是CentOS6.3安裝設(shè)置VNC的方法介紹了,在安裝VNC前,需要先安裝GNOME、KDE桌面環(huán)境,安裝完VNC后需要對其進(jìn)行相關(guān)配置。

標(biāo)簽 CentOS VNC

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統(tǒng)之家立場

其他版本軟件

熱門教程

人氣教程排行

Linux系統(tǒng)推薦

官方交流群 軟件收錄