标签:vnc安装配置和使用
1. VNC简介
vnc是虚拟网络计算机的缩写,它是windows 系统远程连接到linux及unix的远程控制工具。VNC是在基于UNIX和Linux操作系统的免费的开源软件,远程控制能力相当强大。
VNC基本上是由两部分组成:一部分是客户端的应用程序(vncviewer);另外一部分是服务器端的应用程序(vncserver)。VNC的基本运行原理和一些Windows下的远程控制软件很相象。VNC的服务器端应用程序在UNIX和Linux中适应性很强,图形用户界面十分友好,看上去和Windows下的软件界面也很类似。在任何安装了客户端的应用程序(vncviewer)的Linux平台的计算机都能十分方便的和安装了服务器端的应用程序(vncserver)的计算机相互连接。
另外,服务器端 (vncserver)还内建了Java Web接口,这样用户通过服务器端对其他计算机的操作就能通过Netscape显示出来了,这样的操作过程和显示方式比较直观方便。
2. VNC安装
在安装之前,先确认光盘是否连接。
系统信息:
[root@host17 ~]# uname -a Linux host17 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux [root@host17 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.4 (Santiago)
rpm -qa |grep vnc查看一下是否安装过vnc
建立目录,挂载光盘
[root@localhost ~]# rpm -qa |grep vnc [root@localhost ~]# mount /dev/cdrom /mnt/cdrom mount: block device /dev/sr0 is write-protected, mounting read-only
安装vnc包和vnc-server包
[root@host17 ~]# yum -y install vnc Running Transaction Installing : tigervnc-1.1.0-5.el6.x86_64 1/1 rhel-source/productid | 1.7 kB 00:00 ... Verifying : tigervnc-1.1.0-5.el6.x86_64 1/1 Installed: tigervnc.x86_64 0:1.1.0-5.el6 Complete!
[root@host17 ~]# yum -y install tigervnc-server Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Repository rhel-source is listed more than once in the configuration Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package tigervnc-server.x86_64 0:1.1.0-5.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: tigervnc-server x86_64 1.1.0-5.el6 rhel-source 1.0 M Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 1.0 M Installed size: 2.6 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : tigervnc-server-1.1.0-5.el6.x86_64 1/1 Verifying : tigervnc-server-1.1.0-5.el6.x86_64 1/1 Installed: tigervnc-server.x86_64 0:1.1.0-5.el6 Complete!
查看安装过的vnc包
[root@host17 ~]# rpm -qa|grep vnc tigervnc-1.1.0-5.el6.x86_64 tigervnc-server-1.1.0-5.el6.x86_64
service iptables stop关闭防火墙
[root@host17 ~]# service iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ]
运行vncserver
[root@host17 ~]# vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /root/.Xauthority xauth: (stdin):1: bad display name "host17:1" in "add" command New ‘host17:1 (root)‘ desktop is host17:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/host17:1.log
3. 在客户机上登陆验证
(客户机上需要安装VNC viewer才能连接)
输入要连接的linux系统的密码:
连接成功:
标签:vnc安装配置和使用
原文地址:http://wanyi.blog.51cto.com/9273880/1555325