CentOS 6.3 - Win7 安装VNC-VNCviewer


操作目的:1、实现Win7上图形化远程 CentOS
                  2、实现Win7与CentOS数据传输

1、实现Win7上图形化远程 CentOS

第一步:检测CentOS上是否已安装vnc-server

[root@Linux ~]# rpm -qa|grep vnc
tigervnc-server-1.1.0-5.el6_4.1.i686
tigervnc-1.1.0-5.el6_4.1.i686
tigervnc-server-module-1.1.0-5.el6_4.1.i686

因为已经装好 所以显示以上三个包,如未安装则按以下命令安装:

[root@Linux ~]# yum install tigervnc-server.i686 tigervnc.i686
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.grandcloud.cn
 * rpmforge: ftp.riken.jp
 * updates: mirrors.grandcloud.cn
Setting up Install Process
Package tigervnc-server-1.1.0-5.el6_4.1.i686 already installed and latest version
Package tigervnc-1.1.0-5.el6_4.1.i686 already installed and latest version
Nothing to do

第二步:配置VNC

[root@Linux ~]# vim /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:
# http://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:chen 2:root"
 VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

其中

 VNCSERVERS="1:chen 2:root"

格式为 (桌面号:用户)  可以加多个

第三步、设置vnc链接密码

[root@Linux ~]# vncpasswd

第四步、重启vncserver

[root@Linux ~]# service vncserver restart
Shutting down VNC server: 1:chen 2:root                    [  OK  ]
Starting VNC server: 1:chen
New 'Linux:1 (chen)' desktop is Linux:1

Starting applications specified in /home/chen/.vnc/xstartup
Log file is /home/chen/.vnc/Linux:1.log

2:root
New 'Linux:2 (root)' desktop is Linux:2

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Linux:2.log

                                                          [  OK  ]

第五步、要么设置防火墙规则 ,要么关闭防火墙

[root@Linux ~]# service iptables stop

第六步、在win7 下载 VNC-Viewer 

下载好运行并输入  ip:桌面号  eg: 192.168.0.6:1    接着提示输入密码  OK。

至此已经可以实现win7下图形界面访问CentOs 桌面。


 2、实现Win7与CentOS数据传输

用的时SSH Secure File Transfer Client 

打开 并输入 : Host  Name  : 192.168.0.6

                          User Name  :Your name

      点击链接 提示输入密码  OK 


至此 文章开始的两个功能都已实现!

VNC的安装配置

CentOS 6.3安装和配置VNC

Linux下强制不检测依赖安装VNC

CentOS6 VNC服务安装配置

VNC远程控制安装和设置

Windows远程桌面访问Ubuntu 12.04 之安装VNC

相关内容