首页 > 系统服务 > 详细

linux下安装VNC

时间:2016-08-05 18:05:36      阅读:255      评论:0      收藏:0      [点我收藏+]

VNC-viewerlinux下安装和配置

VNC-viewer

http://www.realvnc.com/download/get/1795/details/随便填一下带*号的就可以下载了

 

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

安装:yum –y intsll vnc *vnc-server*


配置:vi /etc/sysconfig/vncservers


[root@Linux ~]# vim/etc/sysconfig/vncservers

修改为以下形式:

# The VNCSERVERS variable is a list ofdisplay: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 preventX connections to your VNC server via TCP.

# Use "-localhost" to preventremote VNC clients connecting except when
# doing so through a secure tunnel.  See the "-via" option inthe
# `man vncviewer‘ manual page.

 VNCSERVERS="2:root"
 VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

第三步、设置vnc链接密码

[root@Linux ~]# vncpasswd  /admin123 # 输入两次密码

第四步、重启vncserver

[root@Linux ~]# service vncserver restart

 

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

[root@Linux ~]# service iptables stop

[root@localhost ~]# iptables -I INPUT -ptcp --dport 5901 -j ACCEPT

[root@localhost ~]# iptables -I INPUT -ptcp --dport 5902 -j ACCEPT

 

第六步、在win7 下载 VNC-Viewer 

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

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


 2、实现Win7CentOS数据传输

用的时SSH Secure File Transfer Client 

打开并输入 Host Name  192.168.0.6

                         User Name  Your name

      点击链接 提示输入密码  OK 


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


本文出自 “黄了的树叶” 博客,请务必保留此出处http://wenyilin523.blog.51cto.com/7671384/1834719

linux下安装VNC

原文:http://wenyilin523.blog.51cto.com/7671384/1834719

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!