在CentOS上如何安装设置VNC


VNC是一款远程控制工具,免费的开源软件,通过VNC能够实现强大的远程控制,且是Linux有图形化的操作界面,下面小编就以CentOS 6.3为例,给大家介绍下VNC在CentOS 6.3下的安装和配置。

1,安装GNOME桌面环境

[root@ linuxidc.com ~]# yum -y groupinstall GNOME Desktop Environment

2, 安装KDE桌面环境

[root@ linuxidc.com ~]# yum groupinstall X Window System KDE (K Desktop Environment)

3,安装VNC服务器

[root@ linuxidc.com ~]# yum -y install vnc-server

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirror-fpt-telecom.fpt

* extras: mirror-fpt-telecom.fpt

* updates: mirror-fpt-telecom.fpt

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@ linuxidc.com ~]#

4,配置VNC

[root@ linuxidc.com ~]# su -jackiebui

[jackiebui@tanvps ~]# vncpasswd

Password:******

verify:******

[jackiebui@tanvps ~]# ls .vnc/

5,编辑VNC配置文件

[root@ 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:

# 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

[root@ linuxidc.com ~]# vncserver

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

上面就是CentOS6.3安装设置VNC的方法介绍了,在安装VNC前,需要先安装GNOME、KDE桌面环境,安装完VNC后需要对其进行相关配置。


上一篇:为Linux新增静态路由的步骤

下一篇:Linux如何使用OpenSSL命令行


CentOSvnc CentOSvnc安装 CentOSvnc配置
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器