操作目的: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:1Starting applications specified in /home/chen/.vnc/xstartup
Log file is /home/chen/.vnc/Linux:1.log2:root
New "Linux:2 (root)" desktop is Linux:2Starting 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的安装配置 http://www.linuxidc.com/Linux/2013-05/84941.htmCentOS 6.3安装和配置VNC http://www.linuxidc.com/Linux/2013-05/84668.htmLinux下强制不检测依赖安装VNC http://www.linuxidc.com/Linux/2013-05/84075.htmCentOS6 VNC服务安装配置 http://www.linuxidc.com/Linux/2013-04/82510.htmVNC远程控制安装和设置 http://www.linuxidc.com/Linux/2013-01/77769.htmWindows远程桌面访问Ubuntu 12.04 之安装VNC http://www.linuxidc.com/Linux/2012-07/64801.htm更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14Ubuntu下搭建MSP430开发环境(MSPGCC)30个实例详解TOP命令相关资讯 VNC
- 远程管理之VNC 详解 (今 21:04)
- Linux 开启VNC远程管理服务的图形 (05月12日)
- 在CentOS 6.5设置VNC多用户登录 (12/19/2015 13:44:13)
| - CentOS 7下安装配置 VNC Server (07月03日)
- CentOS 5.11开启VNC访问 (01月22日)
- CentOS 6.5 安装VNC Server实现图 (12/14/2015 20:15:51)
|
本文评论 查看全部评论 (0)
评论声明- 尊重网上道德,遵守中华人民共和国的各项有关法律法规
- 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
- 本站管理人员有权保留或删除其管辖留言中的任意内容
- 本站有权在网站内转载或引用您的评论
- 参与本评论即表明您已
|